|
9549bead
|
2012-11-28T20:57:23
|
|
Retrieve the shader model number instead of a shader model 3 support boolean.
TRAC #22072
Signed-off-by: Daniel Koch
Signed-off-by: Geoff Lang
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1495 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
dedd1a0f
|
2012-11-28T20:57:11
|
|
Eliminate D3D9 from Context.
TRAC #22016
Signed-off-by: Daniel Koch
Signed-off-by: Geoff Lang
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1494 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
97400dd3
|
2012-11-28T20:57:00
|
|
Clean up passing around translated index data.
TRAC #22016
Signed-off-by: Daniel Koch
Signed-off-by: Geoff Lang
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1493 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
91207b79
|
2012-11-28T20:56:43
|
|
Move the index data manager and draw calls into the renderer implementation.
TRAC #22016
Signed-off-by: Daniel Koch
Signed-off-by: Geoff Lang
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1492 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
41cb9428
|
2012-11-28T20:56:34
|
|
Remove Intel specific workaround.
TRAC #22179
Reverts https://codereview.appspot.com/6460100
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1491 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
2c1d0abe
|
2012-11-28T20:55:42
|
|
Removed clear implementation from Context.
TRAC #22125
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1487 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
084a257e
|
2012-11-28T20:55:17
|
|
Changed the Renderer::clear method parameters to use the new ClearParameters structure.
TRAC #22125
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1485 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
5fbf177c
|
2012-11-28T20:54:43
|
|
Moves applyShaders to Renderer
TRAC #22154
Signed-off-by: Geoff Lang
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1482 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
67094ee4
|
2012-11-28T20:53:04
|
|
Move the vertex data manager and vertex declaration cache from Context to Renderer9.
TRAC #22016
Signed-off-by: Daniel Koch
Signed-off-by: Shannon Woods
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1474 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
92025f56
|
2012-11-28T20:52:54
|
|
Pull Context dependencies out of applyVertexBuffer().
TRAC #22016
Signed-off-by: Daniel Koch
Signed-off-by: Shannon Woods
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1473 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
e3e826d4
|
2012-11-28T19:42:35
|
|
Fixed some warnings on GCC
Mozilla has recently made using NULL as integer an error (via
-Werror=conversion-null GCC flag), which caused ANGLE to no longer compile on
mingw in Mozilla tree. The ones that may not be obvious are removal of some <0
checks. They are not needed because they were done on unsigned types.
Author: Jacek Caban
http://codereview.appspot.com/6679049
(With changes to apply to dx11proto branch)
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1464 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
e06bda99
|
2012-11-28T19:42:18
|
|
Context::applyRenderTargets now uses Renderer::applyRenderTargets.
TRAC #22124
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1462 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
3ca082cc
|
2012-11-28T19:41:07
|
|
Context now uses Renderer::setViewport.
TRAC #22116
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1455 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
3884e2c2
|
2012-11-28T19:41:00
|
|
Context now uses a Rectangle struct for storing viewport.
TRAC #22116
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1454 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
b743e1d7
|
2012-11-28T19:40:45
|
|
Removed unused Display member of Context.
TRAC #22116
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1452 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
d62d7142
|
2012-11-28T19:40:28
|
|
Removes calls from Context to retrieve d3d9 surfaces
TRAC #22094
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1450 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
d186dc7f
|
2012-11-28T19:40:16
|
|
Pass the RenderTarget, not the D3D surface, up the Renderbuffer heirarchy.
TRAC #22094
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1449 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
6c872174
|
2012-11-28T19:39:33
|
|
Adds renderer functions for rendertarget operations.
TRAC #22093
Signed-off-by: Geoff Lang
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1444 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
48ab81ce
|
2012-11-28T19:39:21
|
|
Use ANGLE's rect instead of D3D's in blitFramebuffer.
TRAC #22093
Signed-off-by: Geoff Lang
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1443 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
39cee2e7
|
2012-11-28T19:39:14
|
|
Stores render target description without D3D9 reliance.
TRAC #22093
Signed-off-by: Geoff Lang
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1442 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
08c331d4
|
2012-11-28T19:38:39
|
|
Moved the stencilRef and stencilBackRef back to Context's state structure.
TRAC #22044
stencilRef and stencilBackRef are now set through the setDepthStencilState on
Renderer.
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Geoff Lang
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1438 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
b9bb2793
|
2012-11-28T19:36:49
|
|
Make egl::Surface independent of the Renderer implementation.
TRAC #21926
Signed-off-by: Daniel Koch
Signed-off-by: Geoff Lang
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1427 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
8a8b24c7
|
2012-11-28T19:36:26
|
|
Fixed issues with state force flag initialization and applyRenderTarget placement.
TRAC #22041
Fixed the state force flags being incorrectly initialized in Renderer9's
destructor, they are now in the constructor. Renderer::applyRenderTarget
is now correctly called fromt he begining of Context::applyRenderTarget
instead of the end.
Signed-off-by: Daniel Koch
Author: Geoff Lang
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1425 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
2e258644
|
2012-11-28T19:36:18
|
|
Removed the dirty state flags from Context.
TRAC #22041
Renderers will now be minimizing state changes themselves.
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Geoff Lang
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1424 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
d084c620
|
2012-11-28T19:36:05
|
|
Added an abstract Renderer::clear method.
TRAC #22041
Unimplemented in Renderer11 and Renderer9 only forces the depth stencil state
to reset.
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Geoff Lang
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1423 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
f39967e1
|
2012-11-28T19:35:56
|
|
Context now uses the new structures storing state.
TRAC #22041
Context now uses the new structures for holding rasterizer, blend, depth
stencil and scissor state andcalls the new set methods on the Renderer
interface to set state.
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Geoff Lang
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1422 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
682a37c5
|
2012-11-28T19:34:44
|
|
Renames es2dx and dx2es namespaces to something better.
TRAC #22002
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1415 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
de8a7fff
|
2012-11-28T19:34:13
|
|
Moves the Blitter into the Renderer's domain
TRAC #22001
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1413 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
70062c98
|
2012-11-28T19:32:30
|
|
Passes the Renderer to various objects at construction time.
TRAC #22000
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1406 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
16418b11
|
2012-11-28T19:32:22
|
|
Passes pointer to Renderer to Framebuffer at construction.
TRAC #22000
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1405 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
370482e7
|
2012-11-28T19:32:13
|
|
Pass the Renderer to the ResourceManager at construction time.
TRAC #22000
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1404 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
ad62987f
|
2012-11-28T19:32:06
|
|
Eliminates usage of Display from Context::makeCurrent.
TRAC #22000
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1403 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
03d39094
|
2012-11-28T19:31:59
|
|
Pass the Renderer to the Context at construction time
TRAC #22000
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1402 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
ae4f4d4b
|
2012-11-28T19:31:06
|
|
Moved Renderer creation/destruction out of Context.cpp into Renderer.cpp.
TRAC #21925
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1398 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
76d3e6e0
|
2012-10-31T19:55:33
|
|
Rename renderer namespace to rx
Trac #21999
Author: Shannon Woods
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1379 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
95ffbc10
|
2012-10-31T19:55:27
|
|
Handle software device creation at the Renderer9 level.
TRAC #21963
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1378 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
bdfb3914
|
2012-10-31T19:55:21
|
|
Explicitly retrieve a Renderer9 or Renderer interface from Display.
TRAC #21963
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1377 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
d8e3656a
|
2012-10-31T19:52:19
|
|
Moves portions of utilities specific to D3D9 to the Renderer's domain
TRAC #21931
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1376 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
20d36667
|
2012-10-31T19:51:43
|
|
Mostly eliminates usage of getD3DFormat in Texture.
TRAC #21906
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1367 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
408caa53
|
2012-10-31T18:47:01
|
|
Eliminated the dependency of VertexDataManager and IndexDataManager on Context.
TRAC #21963
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1360 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
2507f41e
|
2012-10-31T18:46:48
|
|
Split Renderer into version independent interface and Renderer9 implementation.
TRAC #21963
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1358 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
7cb796e7
|
2012-10-31T18:46:44
|
|
Eliminated isD3d9ExDevice().
TRAC #21963
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1357 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
4ca789e5
|
2012-10-31T18:46:40
|
|
Eliminated D3DADAPTER_IDENTIFIER9 uses.
TRAC #21963
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1356 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
024786d7
|
2012-10-31T18:42:55
|
|
Pass swapchain to DepthStencil constructor instead of d3d9 surface
Trac #21810
Signed-off-by: Nicolas Capens
Also get rid of unused StencilBuffer and Depthbuffer constructors
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1355 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
96c3893c
|
2012-10-31T18:42:52
|
|
Pass swapchain to Colorbuffer constructor instead of a d3d9 surface
Trac #21810
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1354 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
3c72078a
|
2012-10-31T18:42:34
|
|
Add renderer::SwapChain class and move functionality from egl::Surface
Trac #21810
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1351 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
21290e67
|
2012-10-31T18:38:28
|
|
Removes mConfig from Context, as it was only used for setting unused default values.
TRAC #21819
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1345 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
06eef170
|
2012-10-31T18:31:50
|
|
Removes getContext calls from Colorbuffer and DepthStencilbuffer constructors.
TRAC 21817
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1343 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
b783398c
|
2012-10-31T18:31:46
|
|
Moves multisample support data to Renderer from Context.
TRAC #21817
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1342 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
6716a278
|
2012-10-31T18:31:39
|
|
Removes d3d9 device usage from IndexDataManager and subjugate classes.
TRAC #21816
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1341 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
b7386999
|
2012-10-31T18:29:58
|
|
Remove d3d9 devices from use in VertexDataManager and subjugate classes
TRAC #21816
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1340 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
5f4c136e
|
2012-10-31T18:29:00
|
|
Removes D3DCaps from Context and Display, instead querying Renderer for support status.
TRAC #21611
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1339 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
a734f27c
|
2012-10-31T18:07:48
|
|
Move SetTexture calls to the renderer class
Trac #21727
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1337 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
ba0570ef
|
2012-10-31T18:07:39
|
|
Move sampler state setting to the Renderer
Trac #21727
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1336 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
ebf139fe
|
2012-10-31T18:07:32
|
|
Move texture sampler state into a separate sampler state structure.
Trac #21727
Conflicts:
src/libGLESv2/Texture.cpp
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1335 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
e4733d7e
|
2012-10-31T18:07:01
|
|
Move shader cache into Renderer
Trac #21727
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1333 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
f688c0d1
|
2012-10-31T17:52:57
|
|
Make testDeviceLoss able to perform the notifications
Trac #21727
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1332 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
ef21ab29
|
2012-10-31T17:52:47
|
|
Move query and sync support to Renderer
Trac #21727
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1331 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
621ce053
|
2012-10-31T17:52:29
|
|
Add Renderer class and move functionality from Display
Trac #21727
Conflicts:
src/libGLESv2/Texture.cpp
src/libGLESv2/libGLESv2.vcxproj
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1329 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
6452adf7
|
2012-10-17T18:22:35
|
|
Tracks sized internal formats for textures.
TRAC #21609
Signed-off-by: Daniel Koch
Author: Shannon Woods <shannon.woods@transgaming.com>
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1301 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
42944b02
|
2012-09-27T17:45:57
|
|
Adds support for per-framebuffer IMPLEMENTATION_COLOR_READ_FORMAT and TYPE
TRAC #21607
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1283 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
087e5789
|
2012-09-17T21:28:47
|
|
Skip drawing points when gl_PointSize isn't written.
Trac #21574
Bug=365
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1277 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
aa48067a
|
2012-09-05T19:32:38
|
|
Replace D3DXFloat16To32Array.
Method described here: ftp://ftp.fox-toolkit.org/pub/fasthalffloatconversion.pdf
Review URL: https://codereview.appspot.com/6506058
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1270 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
29ab9525
|
2012-08-27T16:25:37
|
|
Minor GCC fixes
- Added missing typename keyword
- Use proper filenames includes (this matters when cross compiling on case sensitive OSes)
- Added <string> include where GCC requires it
- Avoid collision between enum variables and template params
Issue=358
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1261 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
909f21cc
|
2012-08-17T20:06:02
|
|
Reset shaders to null in makeCurrent.
Review URL: https://codereview.appspot.com/6460100
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1253 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
989c1c85
|
2012-07-24T18:40:38
|
|
Make ProgramBinary a refcount object and use Binding pointers to maintain it's lifetime on context and program.
Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
This fixes the underlying bug since it allows the context to keep the program binary alive, after a relink has occurred.
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1242 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
12394cf7
|
2012-07-24T18:37:59
|
|
Install new program binary when current program is successfully relinked or reloaded
Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1240 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
95d29424
|
2012-07-24T18:36:10
|
|
redirect the LinkProgram and ProgramBinary calls through the context.
Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1238 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
834af913
|
2012-07-24T18:35:17
|
|
Explicitly track the current program binary instead of just caching it.
Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1237 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
7f3bfe13
|
2012-07-24T18:34:39
|
|
Don't erase the cached program binary on deletion.
Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
This is unnecessary since the current program can never be deleted, only flagged for deletion.
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1236 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
62a2846c
|
2012-07-24T18:33:59
|
|
Cache the current program binary instead of the current program.
Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
Everywhere we used the currentProgram it was immediately used to get the program's binary.
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1235 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
e6af4f93
|
2012-07-24T18:31:31
|
|
Use the ProgramBinary's serial to track changed D3D9 shaders instead of the Program's
Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
This is necessary since the shaders can change every time a new ProgramBinary is created
(eg when re-linking or loading a new binary).
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1233 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
5ae3ccc3
|
2012-07-24T18:29:38
|
|
Pass the programBinary directly to applyDeclaration
Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1231 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
68715287
|
2012-07-12T23:28:41
|
|
Scale up non-multiple-of-4 dxt textures
D3D doesn't support DXT textures that aren't a multiple of 4 in size, so multiply the sizes by 2 or 4 so they work. Then ensure sampler parameters are set up correctly so they don't sample the unuploaded miplevels.
BUG=https://code.google.com/p/angleproject/issues/detail?id=237
TEST=
Review URL: https://codereview.appspot.com/6287045
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1222 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
07ab841a
|
2012-07-12T15:17:09
|
|
Implement Anisotropic Texture filtering support
Bug=297
Authored-by: Conor Dickinson, Cloud Party, Inc.
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1219 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
144f2804
|
2012-07-12T01:42:34
|
|
Enable OES_get_program_binary.
Review URL: https://codereview.appspot.com/6349053
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1216 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
13be3e43
|
2012-07-04T19:16:24
|
|
Increase the maximum point size to what is reported by Direct3D.
TRAC #21121
Issue=345,305
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1191 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
253b8d20
|
2012-06-22T19:27:21
|
|
Refactor program info log out of ProgramBinary and in to Program.
Tested by setting breakpoint in esLoadProgram with the broken program.
Review URL: https://codereview.appspot.com/6305114
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1164 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
9616e583
|
2012-06-22T18:27:01
|
|
Merge no-flip-rows r1142 to trunk.
Review URL: https://codereview.appspot.com/6304052
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1162 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
3ce8dbcd
|
2012-06-08T17:52:30
|
|
Add placeholder entry points for GL_OES_get_program_binary.
Review URL: https://codereview.appspot.com/6279054
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1146 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
ea09f9b4
|
2012-06-08T00:45:32
|
|
Move ProgramBinary into new file.
Review URL: https://codereview.appspot.com/6299058
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1144 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
e2a59bba
|
2012-06-07T21:09:53
|
|
Refactor Program into Program and ProgramBinary.
Program manages the state and lifetime of the program object.
ProgramBinary holds the linked program and the code to do the linking.
There should be no functional change. WebGL conformance tests did not regress.
Review URL: https://codereview.appspot.com/6267047
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1143 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
92d620c3
|
2012-05-31T01:16:31
|
|
Advertise support for ANGLE_depth_texture
Trac #20875
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1116 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
68145c6f
|
2012-05-31T01:14:46
|
|
Apply the depth texture correctly as the DepthStencil surface in applyRenderTarget
Trac #20875
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1115 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
63e6afe9
|
2012-05-31T01:14:42
|
|
Ensure all getDepthStencil and getRenderTarget calls consistently handle references to the underlying d3d surfaces
Trac #20875
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1114 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
1c49f79d
|
2012-05-31T01:14:02
|
|
Detect depth texture support using INTZ and NULL textures
Trac #20875
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1103 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
56c62636
|
2012-05-09T15:42:45
|
|
Optimize Context::applyTextures by avoiding repeated getTextureSerial calls
Issue=301
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1073 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
11399d5d
|
2012-04-28T00:35:14
|
|
Make sure the internal DX uniforms get updated after re-linking.
TRAC #20659
Issue=321
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1063 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
563c0a53
|
2012-03-23T21:18:42
|
|
Fence has pointer to the associated egl::Display.
I think the assumption that getDisplay() returns a valid display in the Fence destructor is wrong.
I'm trying to fix a crash in the field that looks like this:
Thread 0 *CRASHED* ( EXCEPTION_ACCESS_VIOLATION_READ @ 0x00000000 )
0x69582e38 [libglesv2.dll - fence.cpp:27 gl::Fence::~Fence()
0x69582f29 [libglesv2.dll + 0x00022f29] gl::Fence::`scalar deleting destructor'(unsigned int)
0x6958077d [libglesv2.dll - context.cpp:1020 gl::Context::deleteFence(unsigned int)
0x69582b9b [libglesv2.dll - context.cpp:195 gl::Context::~Context()
0x69582dcb [libglesv2.dll + 0x00022dcb] gl::Context::`scalar deleting destructor'(unsigned int)
0x69582df2 [libglesv2.dll - context.cpp:4259 glDestroyContext
0x73166ab8 [libegl.dll - display.cpp:768 egl::Display::destroyContext(gl::Context *)
0x73168393 [libegl.dll - libegl.cpp:861 eglDestroyContext
0x6e18f1db [chrome.dll - gl_context_egl.cc:76 gfx::GLContextEGL::Destroy()
0x6e18f40d [chrome.dll - gl_context_egl.cc:43 gfx::GLContextEGL::~GLContextEGL()
Here's the disassembly:
69582E21 push esi
69582E22 mov esi,ecx
69582E24 cmp dword ptr [esi+4],0
69582E28 mov dword ptr [esi],695CBBE0h
69582E2E je 69582E3F
69582E30 call 695743F5 // this is getDisplay()
69582E35 push dword ptr [esi+4]
69582E38 mov edx,dword ptr [eax] // crashes here because EAX is zero
69582E3A mov ecx,eax
69582E3C call dword ptr [edx+24h] // this is freeEventQuery()
69582E3F pop esi
69582E40 ret
It looks like getDisplay() returns null.
http://code.google.com/p/chromium/issues/detail?id=117817
Review URL: https://codereview.appspot.com/5875044
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1008 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
c6f7f9d5
|
2012-01-27T15:40:00
|
|
Centralize detection of instancing support.
TRAC #19489
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@976 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
dce02fda
|
2012-01-27T15:39:51
|
|
Expose the ANGLE_instanced_arrays extension.
TRAC #19489
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@975 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
d644931c
|
2012-01-27T15:39:32
|
|
Work around a bug observed with ATI graphics cards where instanced draw calls fail when all attributes are non-instanced, by repeating the draw call.
TRAC #19489
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@974 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
6c4b5e00
|
2012-01-27T15:39:12
|
|
Re-implement line loops by constructing a 'looping' index buffer, so it is compatible with instanced draws.
TRAC #19489
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@973 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
f654945b
|
2012-01-27T15:39:08
|
|
Implement glDrawArraysInstanced by constructing a 'counting' index buffer since D3D9 only supports instancing on indexed draw calls.
TRAC #19489
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@972 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
2fc9f908
|
2012-01-27T15:39:00
|
|
Adjust the amount of streaming buffer space required for instanced attributes.
TRAC #19489
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@970 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
8ca9c6e7
|
2012-01-27T15:38:54
|
|
Set the stream source frequencies for instanced draw calls. Searches for an indexed (non-instanced) attribute to ensure it gets mapped to stream 0.
TRAC #19489
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@969 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
d2820bfb
|
2012-01-27T15:38:48
|
|
Add entry points and constants for GL_ANGLE_instanced_arrays.
TRAC #19489
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@968 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
a1d8059d
|
2012-01-25T21:52:10
|
|
Increase MSVC warning level to 4.
There are some exceptions, a subset of the exceptions used by Chromium. They didn't seem to be useful warnings.
In code which we don't change much, like the preprocessor, I just suppressed the warnings in the specific files rather than changing the code.
There should be no functional changes in this patch.
Review URL: https://codereview.appspot.com/5570066
git-svn-id: https://angleproject.googlecode.com/svn/trunk@964 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
86bdb824
|
2012-01-20T18:24:39
|
|
Adds support for EXT_occlusion_query_boolean
TRAC #19360
Signed-off-by: Daniel Koch
Authored-by: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@951 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
a5ddde91
|
2012-01-10T23:00:07
|
|
Move Context::sync to Display::sync.
This is a workaround for an Intel bug.
The crash looks like this:
0x5f816c53 [d3d9.dll + 0x00036c53] CQuery::~CQuery()
0x5f816bec [d3d9.dll + 0x00036bec] CQuery::`vector deleting
destructor'(unsigned int)
0x5f7e8129 [d3d9.dll + 0x00008129] CBaseObject::~CBaseObject()
0x5f9e19c7 [libglesv2.dll + 0x000319c7] gl::Fence::`vector deleting
destructor'(unsigned int)
0x5f9de78e [libglesv2.dll - context.cpp:975] gl::Context::deleteFence(unsigned
int)
0x5f9e1491 [libglesv2.dll - context.cpp:198] gl::Context::~Context()
0x5f9e182f [libglesv2.dll - context.cpp:3936] glDestroyContext
0x717654ec [libegl.dll -
display.cpp:749] egl::Display::destroyContext(gl::Context *)
0x7176a3da [libegl.dll - libegl.cpp:907] eglDestroyContext
0x64fbaf33 [chrome.dll - gl_context_egl.cc:75] gfx::GLContextEGL::Destroy()
This is a crash in deleteFence but the same could happen in flush. Fix for the former to follow.
The vendor ID is always 8086 (Intel). Not an XP issue - it's happening on Win
7.
Tested by stepping through a call to glFinish in the debugger and ensuring that
it sleeps but eventually returns.
Review URL: http://codereview.appspot.com/5503094
git-svn-id: https://angleproject.googlecode.com/svn/trunk@940 736b8ea6-26fd-11df-bfd4-992fa37f6226
|