src/libGLESv2/VertexDataManager.cpp


Log

Author Commit Date CI Message
daniel@transgaming.com 4a186ed8 2012-11-28T20:56:15 Moved VertexDeclarationCache to its own header and source file. TRAC #22016 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1490 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 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
daniel@transgaming.com 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
daniel@transgaming.com 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
daniel@transgaming.com 113f0eb7 2012-10-31T18:46:58 Encapsulated memory pool details for vertex and index buffer creation. TRAC #21963 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1359 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 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
daniel@transgaming.com 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
daniel@transgaming.com 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
daniel@transgaming.com 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
daniel@transgaming.com 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
daniel@transgaming.com 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
apatrick@chromium.org 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
apatrick@chromium.org 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
daniel@transgaming.com 1f1b0d5d 2012-04-17T19:44:15 Fix signed 16.16 fixed-point conversion. TRAC #20561 ISSUE=320 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1045 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 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
daniel@transgaming.com 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
daniel@transgaming.com 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
daniel@transgaming.com 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
jbauman@chromium.org 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
daniel@transgaming.com fd80254e 2011-09-23T18:19:41 Validate the stride of static buffer attributes. TRAC #18268 ANGLEBUG=213 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@763 736b8ea6-26fd-11df-bfd4-992fa37f6226
jbauman@chromium.org 83b61bc6 2011-09-02T18:59:24 Avoid recreating constant vertex buffers unnecessarily. To avoid continually recreating constant vertex buffers instead use streaming buffers to hold that data. BUG= TEST= Review URL: http://codereview.appspot.com/4437072 git-svn-id: https://angleproject.googlecode.com/svn/trunk@744 736b8ea6-26fd-11df-bfd4-992fa37f6226
jbauman@chromium.org d8f3faad 2011-09-02T01:10:47 Avoid resending lots of D3D state This change uses trivial caching to determines whether to reset shaders, the viewport, and the currently set vertex declaration. It also caches the render target desc to avoid rereading that. Serial numbers are added to vertex and index buffers, so resending those can be avoided. These changes can give a big speedup (30% has been measured) on simple content, particularly when used directly or through pepper/native client. BUG= TEST=bunch of pages using webgl Review URL: http://codereview.appspot.com/4964057 git-svn-id: https://angleproject.googlecode.com/svn/trunk@743 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com cb325c8e 2011-08-02T12:34:36 Fix Static buffer invalidation regression Bug=139 Trac=#15143 Signed-off-by: Daniel Koch Author: Michael Braithwaite git-svn-id: https://angleproject.googlecode.com/svn/trunk@712 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 0608ad1f 2011-07-29T16:32:17 Win64: fix return value from lookupAttribute Issue=190 Author: Makoto Kato git-svn-id: https://angleproject.googlecode.com/svn/trunk@707 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com b0eb6978 2011-07-08T16:23:42 Fix an overflow issue when a static buffer is invalidated. Issue=104,139,179 TRAC #15143 Signed-off-by: Daniel Koch Author: Nicolas Capens Original-patch-by: Yore Apex git-svn-id: https://angleproject.googlecode.com/svn/trunk@702 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 58f76fe0 2011-06-21T14:21:07 Fix 64-bit support. Bug=55 TRAC #15606 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@697 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 78624ca0 2011-04-22T04:17:57 Heuristically optimize buffer usage. TRAC #16343 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@616 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 72b9e18c 2011-04-13T14:58:33 Optimized prepareVertexData and protect against NULL pointers. TRAC #14871 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@614 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com baa7451e 2011-04-13T14:56:47 Eliminate lookupAttributeMapping. TRAC #14871 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@612 736b8ea6-26fd-11df-bfd4-992fa37f6226
jbauman@chromium.org 2cec2f3a 2011-04-06T18:59:51 Profiling shows that creating and destroying vertex declarations is extremely expensive, so we can keep a 16-element cache around to speed that up. BUG= TEST=JSGameBench Review URL: http://codereview.appspot.com/4358051 git-svn-id: https://angleproject.googlecode.com/svn/trunk@609 736b8ea6-26fd-11df-bfd4-992fa37f6226
daniel@transgaming.com 8fd34bd6 2011-02-18T02:52:14 Move geometry files. TRAC #15649 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@564 736b8ea6-26fd-11df-bfd4-992fa37f6226