Commit Graph

  • 4f1a86395b Add helper functions to determien if addition and mulutiplication of unsigned values will cause an overflow. Jamie Madill 2013-09-24 10:13:04 -04:00
  • 486a1af83c Add a couple missed files types to .gitattributes's CRLF list. Jamie Madill 2013-09-24 15:21:54 -04:00
  • cc4ec64cda Use the same mechanism to process int/float literals Zhenyao Mo 2013-09-23 14:57:10 -04:00
  • ac44cd2b07 Add an option in ANGLE shader translator to initialize gl_Position to vec4(0.0, 0.0, 0.0, 1.0). Zhenyao Mo 2013-09-23 14:57:09 -04:00
  • a15f3e84bf Expose the packing function so we can check varyings packing per program Zhenyao Mo 2013-09-23 14:57:08 -04:00
  • f1d723c698 Clamp numeric overflow rather than failing with an error Zhenyao Mo 2013-09-23 14:57:07 -04:00
  • b41ebf5798 Fix compile errors in the essl to hlsl standalone translator. Jamie Madill 2013-09-23 14:57:06 -04:00
  • d2d340b0da Add static_use to shader variable info query. Zhenyao Mo 2013-09-23 14:57:05 -04:00
  • fa3c346fe9 Build fix: not all types support precisions. Zhenyao Mo 2013-09-23 14:57:04 -04:00
  • a5a1dfc6ec Support precision for sampler types. Zhenyao Mo 2013-09-23 14:57:03 -04:00
  • bc3f1ac660 Minor refactoring of TSymbolTable. Alok Priyadarshi 2013-09-23 14:57:02 -04:00
  • 74da9f2f24 Expose varying variables and also precision for all variables. Zhenyao Mo 2013-09-23 14:57:01 -04:00
  • 3c6344e7ad add TRACE_EVENT to ANGLE (reland) Al Patrick 2013-09-23 14:57:00 -04:00
  • 0b67bfbf4a Print token string into the syntax error message. Alok Priyadarshi 2013-09-23 14:56:59 -04:00
  • 8156b6be06 Fixed memory leak associated with TLS. Alok Priyadarshi 2013-09-23 14:56:58 -04:00
  • 36be856c98 Generate a new grammar with the Bison 2.7.1, the latest cygwin version. Jamie Madill 2013-09-23 14:56:57 -04:00
  • ba615196a8 Normalize line endings of tracked files in the repository. Jamie Madill 2013-09-24 14:07:39 -04:00
  • 5d2e95949f Add .gitattributes to handle end-of-line normalization on commit and checkout. Jamie Madill 2013-09-20 10:48:49 -04:00
  • 402bdcca20 Re-generate our compiled shaders with the new version of FXC. Jamie Madill 2013-09-24 13:01:24 -04:00
  • cc9aa0f516 Support the Windows 8 SDK version of fxc by default in generate_shaders.bat. Jamie Madill 2013-09-04 11:10:22 -04:00
  • f84ef70bc7 Restructure the tests gyp so they can be included in chromium Zhenyao Mo 2013-09-23 13:24:28 -07:00
  • a21eea36fb Add pixel unpack buffer stubs to the Renderer classes. Jamie Madill 2013-09-18 14:36:25 -04:00
  • 89a0bf5005 Add initial implementation for PixelTransfer11, which will enable GPU buffer to texture and texture to buffer copies. Jamie Madill 2013-09-18 14:36:24 -04:00
  • d3f0f1ec81 Expose and generalize Clear11's CompareStates function, and add methods for equality test and initialization. Jamie Madill 2013-09-20 13:31:08 -04:00
  • 10b411df79 Add a helper method to gl::RenderTarget to return the extents of the texture (width/height/depth). Jamie Madill 2013-09-18 14:36:23 -04:00
  • c2da55ccbe Make CompilePS a shared utility method in the d3d11 namespace, and add methods for vertex and geometry shaders. Jamie Madill 2013-09-18 14:36:22 -04:00
  • bdfa22896d Move and adjust the name of the Blit11 local functions to be consistent with our coding style. Jamie Madill 2013-09-18 14:36:21 -04:00
  • 3466a4d0e5 Add a helper method to return the number of components in a texture format. Jamie Madill 2013-09-18 14:36:20 -04:00
  • 02f20dd8be Fix compile error regressions in OutputGLSL and OutputESSL. Jamie Madill 2013-09-12 12:07:42 -04:00
  • 88f18f458d Use the context's PixelUnpackState as an argument to Texture's implementation of setImage and subImage. Jamie Madill 2013-09-18 14:36:19 -04:00
  • 950a775ecc Move the pixel pack and unpack related state into separate structs, for easy parameter passing. Jamie Madill 2013-09-18 14:36:18 -04:00
  • 666e2866a0 Ensure the 'slice' pixel unpack/pack alignment is only aligned based on the row stride. Jamie Madill 2013-09-10 12:04:29 -04:00
  • 384b60415e Add missing varying in and out qualifiers to the interpolation qualifier switch statement. Jamie Madill 2013-09-13 10:06:24 -04:00
  • 300b1eb501 . Scott Graham 2013-09-17 13:28:00 -07:00
  • f77f46b761 Adds InitializeGLPosition to the VS proj files to address build breakage Shannon Woods 2013-09-16 17:24:59 -04:00
  • abef680725 Remove an unnecessary and non-compliant format check from the SubImage family of calls. Jamie Madill 2013-09-05 16:54:19 -04:00
  • 978911ca3e InputLayoutCache only hashes input layout keys up to last used element. Al Patrick 2013-08-15 12:43:29 -07:00
  • 3841b8e068 Revert "Eliminate bitfield enum members." Shannon Woods 2013-09-10 18:23:12 -04:00
  • 0d7e7d49a2 Ignore files generated by GYP. Alok Priyadarshi 2013-08-13 15:09:00 -07:00
  • 3f2daa89f2 Presort reverse mapping of ProgramBinary::mSemanticIndex. Al Patrick 2013-08-07 12:58:57 -07:00
  • b11713fb9c Made multiple calls to ShInitialize not assert. Alok Priyadarshi 2013-08-01 16:02:39 -07:00
  • 0fd7786d0f Change the backing for integer 32-bit three-channel textures internally to four components. Jamie Madill 2013-09-09 16:24:06 -04:00
  • 1d855fed3a Fix an incorrect type entry for RGB565 in the ES3 formats table. Jamie Madill 2013-09-09 16:24:05 -04:00
  • 18a44701a5 Fix the format table entry for RGB10_A2UI to be RGBA_INTEGER instead of RGBA. Also add a missing format mapping. Jamie Madill 2013-09-09 16:24:04 -04:00
  • f382bffa9a Use the same mechanism to process int/float literals Zhenyao Mo 2013-09-09 13:20:27 -07:00
  • 73438870f2 Remove literal overflow error reporting in compiler. Zhenyao Mo 2013-09-09 13:16:30 -07:00
  • 66192b3e00 Add GL_STRUCT_ANGLEX case handling to the variable row and column count methods. Jamie Madill 2013-09-09 15:41:37 -04:00
  • 5609378dbf Add full support for uniform structs. Jamie Madill 2013-08-30 13:21:11 -04:00
  • 5b085dc344 Add a field to uniforms to track which element within a register the uniform should be uploaded to. Jamie Madill 2013-08-30 13:21:11 -04:00
  • 28167c62a2 Add support for struct varyings, and more robust varying link validation. Jamie Madill 2013-08-30 13:21:10 -04:00
  • 94599669c4 Ensure struct varyings maintain the proper interpolation qualifier for the child fields. Jamie Madill 2013-08-30 13:21:10 -04:00
  • 86a97a1a16 Use the proper register count for structs in HLSL uniforms and varyings. Jamie Madill 2013-08-30 13:21:09 -04:00
  • 2b538b85b8 Rename some constants in BlockLayoutEncoder for clarity. Jamie Madill 2013-08-30 13:21:09 -04:00
  • c2141fb314 Consolidate the register counting functions to a single location in the HLSL layout encoder source. Jamie Madill 2013-08-30 13:21:08 -04:00
  • 77456f28ad Allow block encoders to work with a NULL pointer for the output list structure. Jamie Madill 2013-08-30 13:21:07 -04:00
  • a6da33a1eb Remove the gl::Varying class, and replace all usages with sh::Varying. Jamie Madill 2013-08-30 13:21:07 -04:00
  • 139b90912c Simplify the gl::Varying struct to be more like sh::Varying. Jamie Madill 2013-08-30 13:21:06 -04:00
  • ce79dda155 Change the varyings list type from a linked list to a vector type. Jamie Madill 2013-08-30 13:21:06 -04:00
  • 1cb333ebfc Rename compiler/Uniform.cpp+h to ShaderVariable.cpp+h. Jamie Madill 2013-08-30 13:21:05 -04:00
  • 47fdd13e7c Pass varyings to the GLES API from the translator using a direct pointer. Jamie Madill 2013-08-30 13:21:04 -04:00
  • 9d2ffb1d4a Refactor sh::Uniform and sh::ShaderVariable into a shader variable base type with different child types. Jamie Madill 2013-08-30 13:21:04 -04:00
  • 912cbfe8de Allow the block encoder classes to encode types directly passed by value, instead of as a compound type. Jamie Madill 2013-08-30 13:21:03 -04:00
  • bcb6a1e0a8 Simplify the varying priority sorting logic, and add more verbose comments. Jamie Madill 2013-08-30 13:21:03 -04:00
  • fc75e21762 Add an option in ANGLE shader translator to initialize gl_Position to vec4(0.0, 0.0, 0.0, 1.0). Zhenyao Mo 2013-09-09 10:59:31 -07:00
  • 921968ca30 Worked around an issue that causes a TDR timeout when Blit11::copyDepthStencil is called repeatedly. Geoff Lang 2013-09-04 16:59:22 -04:00
  • 125deab624 Moved the clipping of blit rectangles to bounds or scissors into the Renderers since rounding to integers can cause errors when stretching in ES3. Geoff Lang 2013-08-09 13:34:16 -04:00
  • c832516a87 Added a Context::getScissorParams method. Geoff Lang 2013-08-09 13:26:56 -04:00
  • 8cdc21c284 Image11::map now takes a parameter to specify if the mapping is for reading or writing. Geoff Lang 2013-09-09 10:17:29 -04:00
  • 7f6562b28a Prepend the GLSL code in a comment to the generated HLSL shaders when compiled in debug mode. Geoff Lang 2013-08-28 09:37:27 -04:00
  • 536d726502 Replaced the char pointers with std::strings in the Shader classes. Geoff Lang 2013-08-26 17:04:20 -04:00
  • 42359ca9f0 Implemented glClearBuffer* Geoff Lang 2013-08-21 13:25:17 -04:00
  • 0b83323dc5 Perform validation of glClear parameters at the API level. Geoff Lang 2013-08-21 10:13:29 -04:00
  • da507fea06 Refactored the ClearParameters type and moved Renderer11's clear logic into a Clear11 helper class. Geoff Lang 2013-08-20 12:01:42 -04:00
  • 0bd6d11778 Expose the packing function so we can check varyings packing per program Zhenyao Mo 2013-08-29 15:23:27 -07:00
  • 521c836415 Clamp numeric overflow rather than failing with an error Zhenyao Mo 2013-08-29 15:17:04 -07:00
  • 646559fe65 Add support for the remaining ES3 framebuffer attachment parameter queries. Geoff Lang 2013-08-15 11:08:15 -04:00
  • 0a804796c9 Add Renderbuffer::getComponentType and Renderbuffer::getColorEncoding methods. Geoff Lang 2013-08-13 13:09:43 -04:00
  • b2f3d05cbe Replaced the custom component type and SRGB bool with GLenums. Geoff Lang 2013-08-13 12:49:27 -04:00
  • 6440d14b46 Fix compile errors in the essl to hlsl standalone translator. Jamie Madill 2013-08-27 12:03:32 -04:00
  • 9060a4e0c6 Fix some missing UBO qualifier link validation errors. Jamie Madill 2013-08-12 16:22:57 -07:00
  • 1957181804 Add more robust support for interpolation and storage qualifiers with varyings for GLSL ES 3.00. Jamie Madill 2013-08-12 15:26:34 -07:00
  • f2e0f9bb46 Moved the code to combine interpolation and stoarge qualifiers to the parse helper. Jamie Madill 2013-08-26 16:39:42 -04:00
  • 9b4f384967 Fix using the incorrect vertex count in instancing drawing using the streaming buffer. Jamie Madill 2013-08-26 15:29:30 -04:00
  • 12505491c8 Fix a regression in VertexBuffer9::spaceRequired. Jamie Madill 2013-08-26 18:00:16 -04:00
  • ff989da25c Fix using the incorrect vertex count in instancing drawing using the streaming buffer. Jamie Madill 2013-08-26 15:11:32 -04:00
  • 96b67e39c7 Make gl::Buffer::size() a const method. Jamie Madill 2013-08-26 15:29:29 -04:00
  • 0bbd11c1e2 Fix Texture2DArray calling Texture::set/subImage with invalid pointers when the pixels pointer is NULL. Geoff Lang 2013-08-21 14:42:01 -04:00
  • 90442f68fc Make gl::Buffer::size() a const method. Jamie Madill 2013-08-26 15:00:58 -04:00
  • 41159326ab Add static_use to shader variable info query. Zhenyao Mo 2013-08-22 16:18:03 -07:00
  • c144974ca7 Add the validation files to the gyp file. Geoff Lang 2013-08-15 14:18:10 -04:00
  • 827fb6ad61 Build fix: not all types support precisions. Zhenyao Mo 2013-08-19 18:05:59 -07:00
  • 15934d523b Adds API-level functionality for indexed query functions Shannon Woods 2013-08-19 14:28:49 -04:00
  • 1b2fb85341 Implements indexed query functionality Shannon Woods 2013-08-19 14:28:48 -04:00
  • 5fe0caa1cb Adds size and offset queries to BindingOffsetPointer Shannon Woods 2013-08-19 14:28:47 -04:00
  • 6d3511e0df update version Zhenyao Mo 2013-08-19 10:59:05 -07:00
  • 9754ff4eb1 Support precision for sampler types. Zhenyao Mo 2013-08-19 10:54:40 -07:00
  • 2ae614ede1 Fixes sign mismatch warning in comparison. legacy Shannon Woods 2013-08-19 13:42:55 -04:00
  • a6829d576a Minor refactoring of TSymbolTable. Alok Priyadarshi 2013-08-15 14:19:41 -07:00
  • a612ed8e54 InputLayoutCache only hashes input layout keys up to last used element. Al Patrick 2013-08-15 12:43:29 -07:00
  • 79031cb5ad TextureStorage11::updateSubresourceLevel will now use the blitter if it is updating a depth stencil texture. Geoff Lang 2013-08-12 12:55:17 -04:00