Log

Author Commit Date CI Message
Jamie Madill a2d4e55d 2013-10-10T15:12:01 Add support for pixel unpack buffers to TexImage3D. TRAC #23846 Signed-off-by: Shannon Woods Signed-off-by: Geoff Lang
Jamie Madill 065e1a32 2013-10-10T15:11:50 Add support for pixel unpack buffers to TexSubImage2D. TRAC #23845 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 171ca0ea 2013-10-10T15:10:31 Refactor direct buffer storage to only create two backing buffers, for constant buffers and all other bindings. This simplifies the logic used in retrieving the ID3D11Buffer. TRAC #23844 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 4461f097 2013-10-10T15:10:39 Add support for the "fast path" (GPU copy) pixel unpack buffers in TexImage2D. TRAC #23844 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 0e0510fd 2013-10-10T15:46:23 Place the method responsible for checking for fast pixel unpack buffer support into the Renderer. TRAC #23997 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 851a4f66 2013-10-10T15:15:36 Add precompiled D3D11 shaders for pixel unpack buffers. TRAC #23844 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill c8c102b5 2013-10-10T15:10:24 Add a helper method to return the native format backing a GL texture type. TRAC #23844 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 8cc7d975 2013-10-10T15:51:55 Refactor the fast path for pixel unpack buffers, and fix a few validation gaps with texture completeness. TRAC #23997 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 6b9cb259 2013-10-17T10:45:47 Rename ParseHelper.cpp/h to ParseContext.cpp/h. TRAC #24002 Signed-off-by: Shannon Woods Signed-off-by: Geoff Lang
Jamie Madill ee7010d4 2013-10-17T10:45:47 Add support for querying major and minor GL version in ES3 contexts. TRAC #23989 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 455a6f5c 2013-10-17T10:45:46 Expose gl_MaxDrawBuffers to ESSL 3.00 shaders. Previously was only exposed in ESSL 1.00. TRAC #23990 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Geoff Lang e26b15a2 2013-10-17T14:18:42 Regenerate project files.
Geoff Lang 61af78d1 2013-10-17T12:05:24 Add a project update script. TRAC #24017 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
Geoff Lang 4a9e236b 2013-10-17T10:31:32 Fixed issues compiling gtest in using the visual studio 2012 compiler.
Geoff Lang 216644ba 2013-10-15T10:40:30 Regenerate project files.
Geoff Lang 31f0dc0a 2013-10-08T13:29:13 Merge a0bd8ef0aca9eab29a0e5a437b803c5d95a777c6 from master. Use ANGLE_TRANSLATOR_STATIC to enforce a static build of the translator in chromium. This prevents strange warnings from defining COMPONENT_BUILD=0. Also rename COMPILER_IMPLEMENTATION to ANGLE_TRANSLATOR_IMPLEMENTATION for better consistency in chromium. ANGLEBUG=477 R=zmo@chromium.org BUG=
Geoff Lang 5e5f990e 2013-10-08T11:46:54 Merge 7692ca41dbfe20e6acf3319a37aa38b8160f51c6 from master. Remove %(AdditionalDependencies) from gyp linker deps, and add full windows dependency library list. ANGLEBUG=477 BUG= R=zmo@chromium.org Review URL: https://codereview.appspot.com/14161043
Geoff Lang 8690da8b 2013-10-08T10:57:09 Merge 49cbc5768c15d930d5d8751f5263e9546a07d037 from master. Fix a typo introduced in "GCC Compiler Fixes". ANGLEBUG=478 BUG= R=shannonwoods@chromium.org Review URL: https://codereview.appspot.com/14155043
Geoff Lang 8622e554 2013-10-08T10:52:52 Merge 16a3eb3e9fdee83ab9ed15769ec629eab4bc4174 from master. Fix compiler test initialization issues. We should call ShInitialize() / ShFinalize() once per process, so moving them out of individual test's Setup() / Shutdown() to the test main(). BUG= R=alokp@chromium.org Review URL: https://codereview.appspot.com/13568048
Geoff Lang 2b6008c9 2013-10-08T10:44:05 Merge 366229430ea056cf7f33917a4fa37b721512a42c from master. Create a static translator project and allow the previous translator project to be used in component builds.
Geoff Lang 7c697201 2013-10-07T17:18:14 Deleted manually maintained visual studio projects and replaced them with gyp generated ones.
Geoff Lang 179b0046 2013-10-08T16:43:03 Enabled multiprocessor compilation.
Geoff Lang ce1d3c48 2013-10-08T16:42:47 Added flags to disable or enable generation of samples and test projects.
Geoff Lang 0049e43d 2013-10-07T17:07:33 Fixed the DEPS folder and added a .gclient file so gclient sync will now work.
Geoff Lang 6850947e 2013-10-07T17:06:30 Added a define that removes d3d includes from the common directory so that d3d9 headers are not included in the translator project.
Geoff Lang c3597523 2013-09-05T11:12:14 Refactored the tests.gyp file.
Geoff Lang 0e435467 2013-09-03T15:21:51 Refactored the samples.gyp file.
Geoff Lang 39d5166d 2013-08-29T16:08:23 Moved the gyp libGLESv2 and libEGL projects into their own gyp files. Renamed build_angle.gpy* to angle.gyp* but kept build_angle.gyp for chrome compatability.
Geoff Lang 17732823 2013-08-29T13:46:49 Moved the compiler source files into directories based on their project and added a compiler.gypi to generate the compiler projects.
Geoff Lang d47e0fcc 2013-08-29T11:40:43 Split the d3d9 and d3d11 backends into folders and updated the gyp file to use a python script to generate the file lists for the libGLESv2 and libEGL projects.
Geoff Lang 401a0bc5 2013-10-16T13:20:49 Fix D3D9 attributes being marked as requireing conversion when they did not. R=jmadill@chromium.org,shannonwoods@chromium.org Review URL: https://codereview.appspot.com/14737043
Jamie Madill 71cc91fc 2013-09-18T12:51:22 Remove an assert statement to do with uniforms and element indexes. This assert could trigger false positives on sampler types. We should eventually replace our uniform handling logic with something more consistent with D3D11's "everything is a constant buffer" model. TRAC #23749 Signed-off-by: Shannon Woods Signed-off-by: Nicolas Capens
Geoff Lang 5925a4e4 2013-10-10T10:16:47 Only check for missmatched HWND process IDs if swap chain creation fails. R=shannonwoods@chromium.org,zmo@chromium.org,jmadill@chromium.org Review URL: https://codereview.appspot.com/14540050
Jamie Madill 152ed093 2013-10-09T17:01:15 Do not dereference a NULL pointer when retrieving the base level image of an empty 2D array texture. TRAC #23957 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Shannon Woods bfc93bba 2013-10-09T11:36:53 Use cube textures as 2D texture arrays in rendertarget SRVs This fixes mipmapping for renderable cube textures in D3D11. Signed-off-by: Geoff Lang Signed-off-by: Jamie Madill
Geoff Lang f5ef21cd 2013-10-03T11:20:48 Add a define to force off the vertical sync for profiling. TRAC #23973 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
Geoff Lang d311019e 2013-09-24T11:52:47 Fix incorrect mip sizes for cube maps when creating them with TexStorage2D. TRAC #23913 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
Geoff Lang 01c21d28 2013-09-24T11:52:16 Fix incorrect targets for TexStorage2D with cube maps. TRAC #23913 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
Geoff Lang d0f8e82b 2013-09-30T15:21:53 Implement META_ASSERT with static_assert if the compiler supports it. TRAC #23948 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
Geoff Lang d1e9a9a6 2013-09-30T15:22:57 Add missing ES3 unsized internal formats and properly return 1 for alpha in integer formats with no alpha channel. TRAC #23949 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
Geoff Lang f6d6901c 2013-10-07T12:10:37 Fall back to LoadLibrary if preloading d3d compiler modules fails. TRAC #23985 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
Jamie Madill c1f8b16b 2013-10-07T10:46:38 Move validation of API errors out of Texture*::generateMipmaps() to the API. TRAC #23959 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 35d1501b 2013-10-07T10:46:37 Clean up the validation logic in glGenerateMipmap by using the generic base format property methods. TRAC #23959 Signed-off-by: Shannon Woods Signed-off-by: Geoff Lang
Jamie Madill 33f9c2ef 2013-10-07T10:46:36 In GenerateMipmap, determine if texture is a compressed or depth texture via generic methods instead of from the typed class. Part of GenerateMipmap cleanups. TRAC #23959 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill d3d2a342 2013-10-07T10:46:35 Add methods to return the properties of the base level image of a texture. We can call these of any texture type. These methods are only well-defined for complete textures (IE, not cube maps with one face defined in one level). TRAC #23957 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Shannon Woods 93780289 2013-10-04T11:04:55 Update to most recent khrplatform.h Signed-off-by: Geoff Lang Signed-off-by: Jamie Madill
Nicolas Capens ef2c2b83 2013-09-26T10:06:07 Eliminate bitfield enum members to avoid GCC compile error. BUG=448 R=shannonwoods@chromium.org Review URL: https://codereview.appspot.com/14302044
Geoff Lang b04b708c 2013-09-30T15:54:57 Refactored the generate_shaders.bat script to use a function to compile the shaders and have the option of creating debug shaders. TRAC #23907 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
Geoff Lang 63b5f1fd 2013-09-23T14:52:14 Removed parameter validation from Texture::set* calls since validation is already done in ValidateTexParamParameters. TRAC #23908 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
Geoff Lang d4f180b2 2013-09-24T13:57:44 Validate compressed texture dimensions based on the per-format compressed block sizes rather than hard-coded values. TRAC #23630 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
Geoff Lang ce635695 2013-09-24T13:56:32 Context now returns maximum texture levels per texture type, updated validation to validate mip level based on the texture target. TRAC #23630 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
Geoff Lang 784a8fd5 2013-09-24T12:33:16 Defer early-exit due to zero-sized copies until after all other validation for CopyTex*Image. TRAC #20925 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
Jamie Madill 1beb1db8 2013-09-18T14:36:28 Enable unpack buffer support for initializing 2D textures in TexImage2D. TRAC #23843 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill efb2a6ff 2013-09-24T10:22:42 Add the proper API errors for pixel unpack buffers. 1. For overflowing the currently bound pixel unpack buffer in TexImage and TexSubImage calls. 2. Enforce unpack buffer offset alignment for TexImage and TexSubImage calls. We'll have to check for currently mapped buffers when we implement map. TRAC #23842 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 4f1a8639 2013-09-24T10:13:04 Add helper functions to determien if addition and mulutiplication of unsigned values will cause an overflow. TRAC #23842 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 486a1af8 2013-09-24T15:21:54 Add a couple missed files types to .gitattributes's CRLF list. TRAC #23896
Zhenyao Mo cc4ec64c 2013-09-23T14:57:10 Use the same mechanism to process int/float literals This also fixes the float overflow errno leaking bug. BUG= R=alokp@chromium.org Review URL: https://codereview.appspot.com/13368050
Zhenyao Mo ac44cd2b 2013-09-23T14:57:09 Add an option in ANGLE shader translator to initialize gl_Position to vec4(0.0, 0.0, 0.0, 1.0). This is to work around driver bugs where shader compile or program link would fail incorrectly if gl_Position is not set in vertex shader. At the moment at least Linux NVIDIA driver has this bug. ANGLEBUG=472 R=alokp@chromium.org, kbr@chromium.org Review URL: https://codereview.appspot.com/13509043
Zhenyao Mo a15f3e84 2013-09-23T14:57:08 Expose the packing function so we can check varyings packing per program ANGLEBUG=471 R=kbr@chromium.org Review URL: https://codereview.appspot.com/13322043
Zhenyao Mo f1d723c6 2013-09-23T14:57:07 Clamp numeric overflow rather than failing with an error BUG=249086 ANGLEBUG=468 TEST= R=alokp@chromium.org, kbr@chromium.org Review URL: https://codereview.appspot.com/13195043
Jamie Madill b41ebf57 2013-09-23T14:57:06 Fix compile errors in the essl to hlsl standalone translator. ANGLEBUG=469 R=shannonwoods@chromium.org Review URL: https://codereview.appspot.com/13281043
Zhenyao Mo a5a1dfc6 2013-09-23T14:57:03 Support precision for sampler types. BUG= R=alokp@chromium.org Review URL: https://codereview.appspot.com/12833045
Alok Priyadarshi bc3f1ac6 2013-09-23T14:57:02 Minor refactoring of TSymbolTable. Used pointers for precision-stack entries as well to avoid unnecessarily re-allocating PrecisionStackLevel whenever the vector needs to resize. Added a scoped class to properly restore symbol-table level after each compile. R=kbr@chromium.org Review URL: https://codereview.appspot.com/12583047
Zhenyao Mo d2d340b0 2013-09-23T14:57:05 Add static_use to shader variable info query. BUG=249018 ANGLEBUG=465 R=kbr@chromium.org Review URL: https://codereview.appspot.com/13158043
Zhenyao Mo fa3c346f 2013-09-23T14:57:04 Build fix: not all types support precisions. Currently Angle translator made the wrong assumption that all variables have a precision, and ASSERT that. BUG=276031 TBR=alokp@chromium.org Review URL: https://codereview.appspot.com/13113044
Zhenyao Mo 74da9f2f 2013-09-23T14:57:01 Expose varying variables and also precision for all variables. ANGLEBUG=457 R=alokp@chromium.org, kbr@chromium.org Review URL: https://codereview.appspot.com/12487043
Al Patrick 3c6344e7 2013-09-23T14:57:00 add TRACE_EVENT to ANGLE (reland) Tracing code the same as previous CL: https://codereview.appspot.com/12699047/ Setup code simplified, and follows the GetProcAddress model of other gl functions. R=shannonwoods@google.com
Alok Priyadarshi 0b67bfbf 2013-09-23T14:56:59 Print token string into the syntax error message. Bison calls yyerror("syntax error") when it cannot match any grammar rule. We used to append current token string to the error message, which got broken in r2202. This patch restores the original behavior. BUG=442 R=kbr@chromium.org Review URL: https://codereview.appspot.com/12876043
Alok Priyadarshi 8156b6be 2013-09-23T14:56:58 Fixed memory leak associated with TLS. We used to allocate thread-local memory on each compile. If the compile did not happen on the same thread as ShInitialize, we leaked the thread-local memory. It turns out that there is no need to allocate any thread-local memory. This patch cleans up all the unnecessary junk around TLS. BUG=crbug.com/181691 R=kbr@chromium.org Review URL: https://codereview.appspot.com/11679046 Conflicts: src/compiler/ConstantUnion.h src/compiler/ShaderLang.cpp src/compiler/Types.h src/compiler/ValidateLimitations.cpp
Jamie Madill 36be856c 2013-09-23T14:56:57 Generate a new grammar with the Bison 2.7.1, the latest cygwin version. TRAC #23854 Signed-off-by: Shannon Woods Signed-off-by: Nicolas Capens
Jamie Madill ba615196 2013-09-24T14:07:39 Normalize line endings of tracked files in the repository. TRAC #23896 Signed-off-by: Shannon Woods
Jamie Madill 5d2e9594 2013-09-20T10:48:49 Add .gitattributes to handle end-of-line normalization on commit and checkout. TRAC #23896 Signed-off-by: Shannon Woods
Jamie Madill 402bdcca 2013-09-24T13:01:24 Re-generate our compiled shaders with the new version of FXC. TRAC #23838 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill cc9aa0f5 2013-09-04T11:10:22 Support the Windows 8 SDK version of fxc by default in generate_shaders.bat. TRAC #23838 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill a21eea36 2013-09-18T14:36:25 Add pixel unpack buffer stubs to the Renderer classes. TRAC #23841 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 89a0bf50 2013-09-18T14:36:24 Add initial implementation for PixelTransfer11, which will enable GPU buffer to texture and texture to buffer copies. This is necessary for fast implementation of ES3 PBOs. TRAC #23841 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill d3f0f1ec 2013-09-20T13:31:08 Expose and generalize Clear11's CompareStates function, and add methods for equality test and initialization. TRAC #23841 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 10b411df 2013-09-18T14:36:23 Add a helper method to gl::RenderTarget to return the extents of the texture (width/height/depth). TRAC #23841 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill c2da55cc 2013-09-18T14:36:22 Make CompilePS a shared utility method in the d3d11 namespace, and add methods for vertex and geometry shaders. TRAC #23841 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill bdfa2289 2013-09-18T14:36:21 Move and adjust the name of the Blit11 local functions to be consistent with our coding style. TRAC #23841 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 3466a4d0 2013-09-18T14:36:20 Add a helper method to return the number of components in a texture format. TRAC #23841 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 02f20dd8 2013-09-12T12:07:42 Fix compile error regressions in OutputGLSL and OutputESSL. These were broken back with the symbol table changes. TRAC #23857 Signed-off-by: Nicolas Capens Signed-off-by: Shannon Woods
Jamie Madill 88f18f45 2013-09-18T14:36:19 Use the context's PixelUnpackState as an argument to Texture's implementation of setImage and subImage. We need to access the current unpack buffer for our implementation of PBOs. TRAC #23840 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 950a775e 2013-09-18T14:36:18 Move the pixel pack and unpack related state into separate structs, for easy parameter passing. TRAC #23840 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 666e2866 2013-09-10T12:04:29 Ensure the 'slice' pixel unpack/pack alignment is only aligned based on the row stride. TRAC #23837 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 384b6041 2013-09-13T10:06:24 Add missing varying in and out qualifiers to the interpolation qualifier switch statement. This was causing a benign assert in Debug mode with GLSL ES 1.00 shaders. TRAC #23746 Signed-off-by: Shannon Woods
Jamie Madill abef6807 2013-09-05T16:54:19 Remove an unnecessary and non-compliant format check from the SubImage family of calls. We were overly restricting the user's input data for SubImage calls. TRAC #23834 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Al Patrick 978911ca 2013-08-15T12:43:29 InputLayoutCache only hashes input layout keys up to last used element. R=geofflang@chromium.org Review URL: https://codereview.appspot.com/12676043 Conflicts: src/common/version.h src/libGLESv2/libGLESv2.vcxproj src/libGLESv2/renderer/InputLayoutCache.cpp
Shannon Woods 3841b8e0 2013-09-10T18:23:12 Revert "Eliminate bitfield enum members." This reverts commit 56702e6d60883f2d1e33641b907680a852cdb15a.
Alok Priyadarshi 0d7e7d49 2013-08-13T15:09:00 Ignore files generated by GYP. R=shannonwoods@chromium.org Review URL: https://codereview.appspot.com/12865044
Al Patrick 3f2daa89 2013-08-07T12:58:57 Presort reverse mapping of ProgramBinary::mSemanticIndex.
Alok Priyadarshi b11713fb 2013-08-01T16:02:39 Made multiple calls to ShInitialize not assert. BUG=456 R=apatrick@chromium.org, kbr@chromium.org Review URL: https://codereview.appspot.com/11916046 Conflicts: src/common/version.h src/compiler/ShaderLang.cpp
Jamie Madill 0fd7786d 2013-09-09T16:24:06 Change the backing for integer 32-bit three-channel textures internally to four components. On some systems three-channel int textures are not renderable in D3D11. TRAC #23822 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 1d855fed 2013-09-09T16:24:05 Fix an incorrect type entry for RGB565 in the ES3 formats table. TRAC #23823 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 18a44701 2013-09-09T16:24:04 Fix the format table entry for RGB10_A2UI to be RGBA_INTEGER instead of RGBA. Also add a missing format mapping. TRAC #23823 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
Jamie Madill 66192b3e 2013-09-09T15:41:37 Add GL_STRUCT_ANGLEX case handling to the variable row and column count methods. TRAC #23749 Signed-off-by: Nicolas Capens
Jamie Madill 5609378d 2013-08-30T13:21:11 Add full support for uniform structs. TRAC #23750 Signed-off-by: Geoff Lang Signed-off-by: Nicolas Capens
Jamie Madill 5b085dc3 2013-08-30T13:21:11 Add a field to uniforms to track which element within a register the uniform should be uploaded to. This is necessary to support HLSL-backed uniform structs. TRAC #23750 Signed-off-by: Geoff Lang Signed-off-by: Nicolas Capens
Jamie Madill 28167c62 2013-08-30T13:21:10 Add support for struct varyings, and more robust varying link validation. TRAC #23749 Signed-off-by: Geoff Lang Signed-off-by: Nicolas Capens
Jamie Madill 94599669 2013-08-30T13:21:10 Ensure struct varyings maintain the proper interpolation qualifier for the child fields. TRAC #23749 Signed-off-by: Geoff Lang Signed-off-by: Nicolas Capens