|
15ded51e
|
2012-02-22T05:07:44
|
|
Updates to ANGLE_pack_reverse_row_order
git-svn-id: https://angleproject.googlecode.com/svn/trunk@994 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
51b2685b
|
2012-02-21T23:53:23
|
|
Don't use strlen inside of loop
This could hurt performance quite a bit.
BUG=296
TEST=
Review URL: https://codereview.appspot.com/5675086
git-svn-id: https://angleproject.googlecode.com/svn/trunk@993 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
0725e7df
|
2012-02-17T18:02:20
|
|
Support reloading the shader compiler
Trac #19900
Issue=291
- Move compiler initialization to a separate function
- all this function to ensure the compiler is loaded when a compile is attempted
(previously if the compiler was released, you'd have to create a new shader object
to get it reloaded).
Signed-off-by: Shannon Woods
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@992 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
938009cf
|
2012-02-17T18:02:15
|
|
Add ability to recompile shader source
Trac# 19900
Issue=291
- add an 'uncompile' function to clear all results from any previous compile attempts
- allow compiling to be done multiple times on the same shader
- allow a shader to be compiled with no source specified (to produce an appropriate error).
Signed-off-by: Shannon Woods
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@991 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
cde6a610
|
2012-02-17T18:01:10
|
|
Rename the Shader 'varyings' member to 'mVaryings' to follow coding standard
Trac #19900
Issue=291
Signed-off-by: Shannon Woods
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@990 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
2cdf833c
|
2012-02-17T18:00:50
|
|
Provide better encapsulation for Shader member variables
Trac 19900
Issue=291
Moved a bunch of member variables from 'protected' to 'private'
Signed-off-by: Shannon Woods
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@989 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
f861b02c
|
2012-02-08T21:45:11
|
|
Update ANGLE_instanced_arrays spec.
git-svn-id: https://angleproject.googlecode.com/svn/trunk@986 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
b474de34
|
2012-02-08T18:55:41
|
|
Move translator_hlsl target into Windows specific section of build_angle.gyp.
Review URL: https://codereview.appspot.com/5639055
git-svn-id: https://angleproject.googlecode.com/svn/trunk@985 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
90f1eb81
|
2012-02-08T02:00:33
|
|
Remove 'chromium_code' from build_angle.gyp.
This is because the ninja build system, unlike make, builds translator_hlsl and fails on the clang warnings.
Review URL: https://codereview.appspot.com/5647048
git-svn-id: https://angleproject.googlecode.com/svn/trunk@984 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
cca2b70b
|
2012-02-08T00:59:46
|
|
Create D3D device when eglInitialize is called.
This is because some GPUs / drivers are unable to create the device once the Chromium GPU process sandbox has been locked down and waiting for the first context / surface to be created is too late.
Review URL: https://codereview.appspot.com/5647046
git-svn-id: https://angleproject.googlecode.com/svn/trunk@983 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
6c762d08
|
2012-02-03T23:31:53
|
|
Disable getting share handles when PIX is enabled.
PIX doesn't seem to work with share handles, so disable them when we detect that pix is enabled.
BUG=
TEST=
Review URL: https://codereview.appspot.com/5625048
git-svn-id: https://angleproject.googlecode.com/svn/trunk@982 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
cb37afdb
|
2012-02-01T18:10:40
|
|
The normalized argument of vertexAttribPointer should not affect float and fixed.
Issue=155
Signed-off-by: Nicolas Capens
Author: Pierre Leveille
git-svn-id: https://angleproject.googlecode.com/svn/trunk@981 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
9c3a393d
|
2012-01-30T20:03:32
|
|
Enabled MSVC warning 4389 : signed/unsigned mismatch.
I also fixed Config.cpp so it compiles without the warning.
This is because this is now a warning as error in Chromium.
Review URL: https://codereview.appspot.com/5600047
git-svn-id: https://angleproject.googlecode.com/svn/trunk@980 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
26f6e5d8
|
2012-01-27T22:57:16
|
|
Added missing printf format type.
%z was actually just a modifier.
Review URL: https://codereview.appspot.com/5569082
git-svn-id: https://angleproject.googlecode.com/svn/trunk@979 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
afcd3883
|
2012-01-27T22:13:25
|
|
Removed _HAS_TR1 macro definition from common.gypi.
Review URL: https://codereview.appspot.com/5569078
git-svn-id: https://angleproject.googlecode.com/svn/trunk@978 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
e4319635
|
2012-01-27T22:13:17
|
|
Fix printf format specifier in PoolAlloc.cpp.
%Iu is used for size_t printf arguments in MSVC. The GCC equivalent is %z. MSVC does not support %z though.
Review URL: https://codereview.appspot.com/5578050
git-svn-id: https://angleproject.googlecode.com/svn/trunk@977 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
|
|
c41a6fe3
|
2012-01-27T15:39:04
|
|
Ignore the 'first' parameter of glDrawArraysInstanced for instanced attributes.
TRAC #19489
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@971 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
|
|
21a849dc
|
2012-01-27T03:04:27
|
|
Add ANGLE_instanced_arrays spec
Trac #18156
git-svn-id: https://angleproject.googlecode.com/svn/trunk@967 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
c742fca5
|
2012-01-27T02:01:32
|
|
Fix warning in PoolAlloc.cpp.
Use "I" instead of "l" as printf type prefix for size_t.
Review URL: https://codereview.appspot.com/5572071
git-svn-id: https://angleproject.googlecode.com/svn/trunk@966 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
e057c5dd
|
2012-01-26T19:18:24
|
|
Fixed more warnings.
Clang warns about missing case in enum glslang_lex.cpp so I disabled that one as well.
MSVC, as Chromium is built at least, warns about things in its own STL headers in SymbolTable.cpp so disabled the warning for that file.
esTransform.c had a struct that the compiler could not determine was initialized so I explicitly initialized it.
Review URL: https://codereview.appspot.com/5577048
git-svn-id: https://angleproject.googlecode.com/svn/trunk@965 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
|
|
536888b8
|
2012-01-25T02:10:25
|
|
Explicitly disable warnings for auto-generated files.
I think this is better than modifying the auto-generated files.
Review URL: https://codereview.appspot.com/5569058
git-svn-id: https://angleproject.googlecode.com/svn/trunk@963 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
f3c92311
|
2012-01-25T00:51:19
|
|
Fix remaining compiler warnings in translator_common.
One MSVC warning and one GCC warning.
I also added a variable to build_angle.gyp that will enforce various rules not normally applied to third party software when built as part of chromium.
Review URL: https://codereview.appspot.com/5570061
git-svn-id: https://angleproject.googlecode.com/svn/trunk@962 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
e0f059c5
|
2012-01-24T23:21:52
|
|
Remove calls to new when modifying shader constants.
There were some unnecessary temporary copies we can remove, and the rest have a maximum size so we can allocate them on the stack.
BUG=276
TEST=
Review URL: https://codereview.appspot.com/5540071
git-svn-id: https://angleproject.googlecode.com/svn/trunk@961 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
9dc0a247
|
2012-01-24T21:45:37
|
|
Enable warnings as errors.
I didn't do it for translator_common though because it contains automatically generated code.
This is improve the signal to noise ratio in the chromium build logs.
Review URL: https://codereview.appspot.com/5572055
git-svn-id: https://angleproject.googlecode.com/svn/trunk@960 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
7e84fd68
|
2012-01-24T21:44:39
|
|
Fix MSVC warning in DetectRecursion.cpp.
In preparation for turning on warnings as errors.
Review URL: https://codereview.appspot.com/5564053
git-svn-id: https://angleproject.googlecode.com/svn/trunk@959 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
3efb99cf
|
2012-01-24T19:04:19
|
|
Added EGL_KHR_image_base and GL_OES_EGL_image_external entry points to esUtil.
Review URL: https://codereview.appspot.com/5574051
git-svn-id: https://angleproject.googlecode.com/svn/trunk@958 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
bb5223d0
|
2012-01-24T13:38:10
|
|
Fix float texture support test
Trac #19573
Issue=281
Signed-off-by: Shannon Woods
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@957 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
b66a7015
|
2012-01-23T20:04:48
|
|
Moved RefCountObject to common so it can be used by libEGL.
Review URL: https://codereview.appspot.com/5557064
git-svn-id: https://angleproject.googlecode.com/svn/trunk@956 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
551022eb
|
2012-01-23T19:56:54
|
|
Rename IslTextureTarget to IsInternalTextureTarget.
TEXTURE_EXTERNAL is not considered an internal texture target.
Review URL: https://codereview.appspot.com/5556067
git-svn-id: https://angleproject.googlecode.com/svn/trunk@955 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
77b95e1c
|
2012-01-23T17:09:06
|
|
Detect GNU Hurd and Debian kFreeBSD as ANGLE_OS_POSIX
See https://bugzilla.mozilla.org/show_bug.cgi?id=711353
Patch by Mike Hommey
git-svn-id: https://angleproject.googlecode.com/svn/trunk@954 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
d08aa75e
|
2012-01-20T23:50:06
|
|
Increase size of output buffer for pix to 32768
We output entire hlsl shaders into this buffer, so 4096 bytes was too small.
BUG=
TEST=
Review URL: https://codereview.appspot.com/5532094
git-svn-id: https://angleproject.googlecode.com/svn/trunk@953 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
|
|
b9f64aae
|
2012-01-20T00:35:15
|
|
Use a global ref-counted singleton for long name map.
This makes sure the same varying/uniform variables maps to the unique name in vertex/fragment shader.
BUG=
TEST=webgl conformance tests
Review URL: https://codereview.appspot.com/5556065
git-svn-id: https://angleproject.googlecode.com/svn/trunk@950 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
9996b8e6
|
2012-01-19T01:43:55
|
|
Rollback r942.
MapLongVariableNames inherits from TIntermTraverser, and TIntermTraverser uses ANGLE's memory allocator, thus the memory is released per compilation. Our design is for MapLongVariableNames to be a singleton across all compilations, thus, this is not working.
BUG=
TEST=
TBR=kbr
Review URL: https://codereview.appspot.com/5556053
git-svn-id: https://angleproject.googlecode.com/svn/trunk@949 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
2678b34b
|
2012-01-18T16:29:40
|
|
Changes the pointer from textures to their renderbuffer proxies to non-refcounted (2/2)
TRAC #19335
Issue=271
Instead, the texture maintains an internal refcount which causes the pointer to behave
kind of like a "weak" shared pointer-- its reference won't prevent the renderbuffer from
being deleted, but if the renderbuffer's refcount drops to zero, the texture should set
its pointer to the renderbuffer to null so that a new one can be created at the next
getRenderbuffer call.
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/trunk@948 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
0dc8a5ee
|
2012-01-18T16:29:34
|
|
Stores texture in RenderbufferTexture via a BindingPointer (1/2)
TRAC #19335
Issue=271
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/trunk@947 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
6575602e
|
2012-01-17T21:45:38
|
|
Finished off the GLSL compiler's support for parsing shaders using OES_EGL_image_external.
The GLSL to HLSL translator work is not done yet so the extension is disabled in Shader.cpp.
Review URL: https://codereview.appspot.com/5530081
git-svn-id: https://angleproject.googlecode.com/svn/trunk@946 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
c6489b15
|
2012-01-17T14:28:13
|
|
Update extension numbers for published extensions.
git-svn-id: https://angleproject.googlecode.com/svn/trunk@945 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
8983cbc5
|
2012-01-17T14:10:19
|
|
Refresh EGL/eglext.h from Khronos
git-svn-id: https://angleproject.googlecode.com/svn/trunk@944 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
35be8c1f
|
2012-01-17T14:10:08
|
|
Refresh GLES2/gl2ext.h from Khronos
git-svn-id: https://angleproject.googlecode.com/svn/trunk@943 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
4625d27b
|
2012-01-13T00:29:21
|
|
Long name mapping needs to be consistent between vertex/fragment shaders.
For example: varying variables, uniforms.
This CL makes MapLongVariableNames a ref-counted singleton and therefore, the map is shared by all shaders.
Also, function/variable names changes from Varying to Global because uniforms also need to be consistent, not just varying variables.
ANGLEBUG=279
TEST=webgl conformance tests, especially invalid-passed-params.html and glsl-long-variable-names.html
Review URL: http://codereview.appspot.com/5539046
git-svn-id: https://angleproject.googlecode.com/svn/trunk@942 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
f289ee8d
|
2012-01-11T20:03:29
|
|
Allocate D3D queries from a pool for the Display.
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()
The vendor ID is always 8086 (Intel). Not an XP issue - it's happening on Win
7.
With this change, D3D queries are only released when the display is destroyed or reset or if a very high number of D3D queries have been allocated.
Tested by stepping exercising the NV_fence entry points in a debugger.
Review URL: http://codereview.appspot.com/5534065
git-svn-id: https://angleproject.googlecode.com/svn/trunk@941 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
|
|
89c9813b
|
2012-01-06T02:17:03
|
|
Fix a bug in long variable name mapping.
Originally we only match varying variables in vertex/fragment shaders. However, we should also match uniform names. For example, if a uniform variable name is used in both vertex and fragment shader, and after mapping the names are different, then the name mapping table is no longer 1:1.
BUG=106638 (crbug)
TEST=http://seanseefried.com/chrome-bug/simple-broken.html shows a magenta square
Review URL: http://codereview.appspot.com/5520051
git-svn-id: https://angleproject.googlecode.com/svn/trunk@939 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
9a4d112c
|
2012-01-05T20:06:28
|
|
Fix off-by-one error in enforcement of WebGL's maximum struct nesting.
BUG=http://code.google.com/p/angleproject/issues/detail?id=275
TEST=WebGL conformance suite
TBR=nicolas
Review URL: http://codereview.appspot.com/5520049
git-svn-id: https://angleproject.googlecode.com/svn/trunk@938 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
56397df3
|
2011-12-22T19:39:18
|
|
Removes an unneeded GetDesc call from Clear
TRAC #19330
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Authored-by: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@930 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
c8d46066
|
2011-12-22T19:39:14
|
|
Ensure texture storage exists before retrieving serial
Trac #19330
Signed-off-by: Nicolas Capens
In some cases we were trying to retrieve a serial from
a rendertarget texture which didn't have the storage allocated yet.
This was resulting in a 0 serial which was indistinguishable from
the case where context was just marked dirty and we assumed
the target was up-to-date. This resulted in
failing to apply the correct rendertarget and as a result
some d3d clear calls were failing (picked up by debug runtime).
git-svn-id: https://angleproject.googlecode.com/svn/trunk@929 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
4d6c6d75
|
2011-12-22T19:36:50
|
|
Only allow renderable d3dformats to be flagged as rendertarget texstorage
Trac #19356
Issue=273
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@928 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
2e566dc3
|
2011-12-22T19:36:47
|
|
rename TextureStorage renderable flag to reflect it's actual usage
Trac #19356
Issue=273
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@927 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
b9aa00b2
|
2011-12-22T19:36:42
|
|
Refactor image renderability lookup
Trac #19356
Issue=273
Signed-off-by: Nicolas Capens
Based on preliminary patch from Ken Russell
Images are never renderable directly, so renaming the Image::isRenderable function clarifies that we are
only checking on the renderability of the format.
Also factor out the lookup to a static helper function (it will be used elsewhere in the next patch)
git-svn-id: https://angleproject.googlecode.com/svn/trunk@926 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
d9a54f98
|
2011-12-22T18:32:53
|
|
Fixed gl_FragCoord.y calculation
TRAC #19349
ANGLEBUG=272
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@925 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
e7289839
|
2011-12-16T23:30:52
|
|
Check device loss between GetData calls when blocking
Trac #19246
Issue=262
Some drivers don't properly return device lost
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@924 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
df363721
|
2011-12-16T23:29:53
|
|
Re-enable advertising EXT_texture_storage
Trac #19259
Issue=268
The problems on d3d9/winxp have been fixed.
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@923 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
ad0ca1c4
|
2011-12-16T23:28:52
|
|
make the renerable usage consistant and const
Trac #19259
Issue=268
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@922 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
92399aa2
|
2011-12-16T23:28:47
|
|
Add TextureStorage::getPool method
Trac #19259
Issue=268
Use it to avoid duplicate calls to getTexturePool
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@921 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
101f8697
|
2011-12-16T23:28:43
|
|
Let TextureStorage track the texture pool explicitly
Trac #19259
Issue=268
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@920 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
f5cffc91
|
2011-12-16T23:28:39
|
|
Rename various mTexture variables to mTexStorage to reflect what they really are
Trac #19259
Issue=268
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@919 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
63928d78
|
2011-12-16T23:28:34
|
|
Cache the computation of getD3DFormat
Trac #19259
Issue=268
Instead of looking this up every time, we'll just compute it when the type/format changes.
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@918 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
1dda3b18
|
2011-12-16T23:28:31
|
|
Move ConvertTextureFormatType
Trac #19259
Issue=268
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@917 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
38f28cba
|
2011-12-16T23:28:26
|
|
Track the texture pool explicitly in the Image class
Trac #19259
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@916 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
1d116b42
|
2011-12-16T23:28:22
|
|
Fix managed texturestorage textures
Trac #19259
Issue=268
managed textures need to be set on the images so they can be updated
properly and to avoid the additional system memory copy of the surfaces.
Also make sure track the managed state properly.
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@915 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
f71a339a
|
2011-12-16T23:28:18
|
|
Use the correct d3dformat for texstorage textures.
Trac #19259
Issue=268
The image we were trying to get the d3dformat from hadn't been initialized yet.
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@914 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
8d6252eb
|
2011-12-16T23:28:14
|
|
Add a static helper function to convert a GL format/type to d3dformat and call this from Image::getD3DFormat
Trac #19259
Issue=268
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@913 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
5f7dc33d
|
2011-12-13T22:48:00
|
|
Use the correct function to determine texture pool
Trac #19259
Issue=269
git-svn-id: https://angleproject.googlecode.com/svn/trunk@912 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
6a05be4c
|
2011-12-13T18:19:29
|
|
Update version.
git-svn-id: https://angleproject.googlecode.com/svn/trunk@911 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
93563fcf
|
2011-12-13T18:18:04
|
|
(Landing this on behalf of groby@chromium.org. Review the CL at http://codereview.appspot.com/5482053/)
Fix issue-242 (failure to compile any shader using cos() with
SH_EMULATE_BUILT_IN_FUNCTIONS)
ANGLEBUG=242
git-svn-id: https://angleproject.googlecode.com/svn/trunk@910 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
e19d8328
|
2011-12-13T17:30:48
|
|
Ensure the device states are reinitialized after a device Reset
Trac #19246
Issue=262
After a device lost the "mSceneStarted" variable was getting out
of sync and thus we were never restarting the scene before drawing.
It's probably best to ensure that any default states we need are
also set after a reset.
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@909 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
a5798959
|
2011-12-13T17:30:43
|
|
Fix more rendertarget leaks
Trac #19246
Issue=262
FBO rendertargets are explicitly refcounted.
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@908 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
29217fad
|
2011-12-13T01:46:18
|
|
Stop advertizing GL_EXT_texture_storage until issue 266 is resolved.
Review URL: http://codereview.appspot.com/5484055
git-svn-id: https://angleproject.googlecode.com/svn/trunk@907 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
82b28913
|
2011-12-12T21:01:35
|
|
Fix error reporting for lost contexts
Trac #19246
Issue=262
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@906 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
7f4dee14
|
2011-12-07T21:14:00
|
|
Guard against releasing NULL textures.
ANGLEBUG=265
TRAC #19196
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@905 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
d3552230
|
2011-12-07T19:11:33
|
|
Update version to 904.
Review URL: http://codereview.appspot.com/5449113
git-svn-id: https://angleproject.googlecode.com/svn/trunk@904 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
febbea88
|
2011-12-07T19:10:16
|
|
Fixed leak of render target associated with ColorBuffer.
Following r853, I am assuming that any render target returned by FrameBuffer::getRenderTarget has to be released. Updating the usage of getRenderTarget to reflect that.
This is not reproducible in Chrome at the moment but it will be once I start rendering to pbuffers.
I ran the WebGL conformance tests. No regressions or crashes.
Review URL: http://codereview.appspot.com/5451110
git-svn-id: https://angleproject.googlecode.com/svn/trunk@903 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
f4490e22
|
2011-12-06T02:05:22
|
|
Implemented EGL_NV_post_sub_buffer.
The change to the sample is just to demonstrate how I tested it. I won't check in the stuff under samples/.
It's not clear to me what eglPostSubBufferNV should do if EGL_POST_SUB_BUFFER_SUPPORTED_NV is false. At the moment it fails silently as though it was called on the wrong surface type:
"If <surface> is a back-buffered surface, then the requested portion
of the color buffer is copied to the native window associated with
that surface. If <surface> is a single-buffered window, pixmap, or
pbuffer surface, eglSwapBuffers and eglPostSubBufferNV have no
effect."
Review URL: http://codereview.appspot.com/5345050
git-svn-id: https://angleproject.googlecode.com/svn/trunk@902 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
343373ab
|
2011-11-29T19:42:32
|
|
Creates helper function for common subimage param checking
TRAC #18802
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@901 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
21f05d75
|
2011-11-29T19:42:28
|
|
Adds missing parameter checks to texture functions
TRAC #18802
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@900 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
f1286449
|
2011-11-29T19:42:23
|
|
Adds a level parameter to texture getWidth and getHeight
TRAC #18802
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@899 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
67d72526
|
2011-11-29T17:23:51
|
|
Checks parameters of matrices for under-fullness in shader constructor check.
TRAC #18906
Issue=218
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/trunk@898 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
805a49ab
|
2011-11-29T17:21:42
|
|
Fix post-build steps when spaces appear in directory names
TRAC #18901
Issue=245
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/trunk@897 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
4d04f90d
|
2011-11-24T22:34:26
|
|
Update major version.
git-svn-id: https://angleproject.googlecode.com/svn/trunk@895 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
ffc4e74d
|
2011-11-24T22:34:22
|
|
Add another contributor
git-svn-id: https://angleproject.googlecode.com/svn/trunk@894 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
f5cfcd2d
|
2011-11-24T22:34:18
|
|
Update contributors
git-svn-id: https://angleproject.googlecode.com/svn/trunk@893 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
102ca746
|
2011-11-24T22:34:14
|
|
Fix rendering for the closing line of line loops.
Trac #19035
Signed-off-by: Nicolas Capens
Line loops via DrawArrays were incorrect because the vertex buffer already
has the vertex offset factored in.
Line loops via DrawElements were incorrect because the vertex buffer was
offset by the minIndex. We need to use the same minIndex when rendering
the closing loop.
git-svn-id: https://angleproject.googlecode.com/svn/trunk@892 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
7a2fdc9c
|
2011-11-24T22:34:09
|
|
Avoid rendering the last pixel of lines.
Trac #19035
Issue=257
Author: Yuriy O'Donnell
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/trunk@891 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
4229f59f
|
2011-11-24T22:34:04
|
|
Fix HLSL translation for mod(vec2,vec2)
ANGLEBUG=258
Signed-off-by: Daniel Koch
Signed-off-by: Nicolas Capens
Author: Sam Hocevar
git-svn-id: https://angleproject.googlecode.com/svn/trunk@890 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
56d46abe
|
2011-11-23T14:53:10
|
|
Add GL_ANGLE_pack_reverse_row_order. Performs vertical flip in readPixels and
may write direct to client ptr.
Bug=none
Test= Tested in a modified version of Chromium using canvas2D.
Review URL: http://codereview.appspot.com/5373104
git-svn-id: https://angleproject.googlecode.com/svn/trunk@889 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
205fef33
|
2011-11-22T20:50:02
|
|
Added support for GL_ARB_texture_rectangle to shader validator.
Parser was regenerated with the flex/bison shipped with Ubuntu 10.04.
BUG=251
TEST=tested with new Core Animation plugin rendering path on Mac OS X
Review URL: http://codereview.appspot.com/5432044
git-svn-id: https://angleproject.googlecode.com/svn/trunk@888 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
afaa0490
|
2011-11-21T21:14:23
|
|
Upstream android's change for angle
BUG=
TEST=
Review URL: http://codereview.appspot.com/5410050
git-svn-id: https://angleproject.googlecode.com/svn/trunk@887 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
32b11443
|
2011-11-19T02:42:48
|
|
Checks level on relevant gl calls against implementation maximum.
TRAC #18905
Issue=243
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/trunk@885 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
059fc15f
|
2011-11-18T19:26:17
|
|
Fix count of elements in buffer
There can be one extra element at the end even if an entire stride doesn't fit.
BUG=
TEST=
Review URL: http://codereview.appspot.com/5401046
git-svn-id: https://angleproject.googlecode.com/svn/trunk@884 736b8ea6-26fd-11df-bfd4-992fa37f6226
|
|
1e44645a
|
2011-11-16T03:56:50
|
|
Immutable textures are always mipmap complete.
TRAC #18730
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@883 736b8ea6-26fd-11df-bfd4-992fa37f6226
|