- 03 Dec, 2015 2 commits
-
-
Alexis Hetu authored
A few minor fixes: - In FramebufferRenderbuffer, if renderbuffer isn't 0, it must be a valid object. - In FramebufferTexture2D, I moved the isCompressed check AFTER the textarget validation, to avoid using an invalid textarget. - In GetFramebufferAttachmentParameteriv, not using GL_BACK, GL_DEPTH or GL_STENCIL for the default framebuffer should produce GL_INVALID_ENUM instead of GL_INVALID_OPERATION. - In GetFramebufferAttachmentParameteriv, when attachmentObjectType is GL_NONE, in ES3, the query for GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME should return 0. Change-Id: I913cadd5961fa473b54ddfe174772bb7270dfdc5 Reviewed-on: https://swiftshader-review.googlesource.com/4333Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Since the new headers have been committed, a larger amount of color attachments enums can be supported. Added the new enums where appropriate. Change-Id: Idd7210fbeaeb7828ca6c094bed115addd90b497c Reviewed-on: https://swiftshader-review.googlesource.com/4332Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 02 Dec, 2015 4 commits
-
-
Alexis Hetu authored
This cl doesn't entirely enable integer texture sampling, but it adds the required cases in SamplerCore. To fully enable these types, only a few small selection functions will be required so that the proper types use the proper sampling code. Change-Id: Ie101d782dd9b43c96d8e0198c49fe9ec6855b007 Reviewed-on: https://swiftshader-review.googlesource.com/4150Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
This is odd, but stencil masking was simply disabled, so clearing the stencil buffer would only work if the mask was 0xFF, or it would simply skip the clearing entirely. I removed this condition to fix the issue. Also removed some dead code and added an early exit if the mask is 0. Change-Id: I359b10ed3382b75cb9d078470f237e68f1a6e7b9 Reviewed-on: https://swiftshader-review.googlesource.com/4303Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
To make it easier to branch on the different texture fetching options, a new TextureFunction class is introduced here, which performs the string comparisons and identifies the different options. I also had to add a 5th argument for textureGradOffset and textureProjGradOffset. I added function stubs (with the UNIMPLEMENTED markers) for all new texture functions. Change-Id: I58cde91a2bacb0012bdc34ec85b0befa19a85326 Reviewed-on: https://swiftshader-review.googlesource.com/4116Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
According to the ES3 spec, there's no requirement for a renderbuffer to be allocated until it is bound and any non-zero renderbuffer bound must be allocated. Change-Id: Id47083c7ec6e3b3698e176d6feff31121983e446 Reviewed-on: https://swiftshader-review.googlesource.com/4331Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 01 Dec, 2015 6 commits
-
-
Nicolas Capens authored
Change-Id: I12fdf25465176ed9b0c2e95ef398b8b469419b6e Reviewed-on: https://swiftshader-review.googlesource.com/4311Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I9cff8a31cac858e14c2364a79f61c028996e91dd Reviewed-on: https://swiftshader-review.googlesource.com/4304Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Greg Hartman <ghartman@google.com> Reviewed-by:
Keun Soo Yim <yim@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: Ifff92974ea41be61244ae1c09e2d54e299c10eeb Reviewed-on: https://swiftshader-review.googlesource.com/4160Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I401c06e523d945d6e629c3326bb7cbb2054c48f1 Reviewed-on: https://swiftshader-review.googlesource.com/4307Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I0790163f89116469f73ad9ff15c71dc7366a6f65 Reviewed-on: https://swiftshader-review.googlesource.com/4306Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I68685932934caba4d9fab7b45014d24316ce45a8 Reviewed-on: https://swiftshader-review.googlesource.com/4293Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 27 Nov, 2015 2 commits
-
-
Alexis Hetu authored
Added both RGB8 and BGR8 formats to the blitter and related functions so that these formats may be used with glReadPixels. Change-Id: I22ee13f837b66af5f2135abc77fe81cc2e995fec Reviewed-on: https://swiftshader-review.googlesource.com/4294Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
The "clear" operation can now be done through the blitter. The few changes are: - The blitter now supports RGBA masking - The blitter now supports RGB565 - When in "clear" mode, the blitter does a one read/multiple writes The old clearing code has been deleted from Surface. Change-Id: I970c3a0323f63ee5c89f02d94a2705e4bcf83866 Reviewed-on: https://swiftshader-review.googlesource.com/4291Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 26 Nov, 2015 1 commit
-
-
Alexis Hetu authored
It is now possible to use floating point renderbuffers and read the data back from them. The changes include: - Modified glReadPixels so that it always uses the blitter to copy the data to the external buffer. - Added new types to both Framebuffer and some utility functions. - Added the new ValidReadPixelsFormatType function to validate the glReadPixels format/type combo, which had a bit more possibilities than the RGBA/UNSIGNED BYTE combo previously used. Change-Id: I1726ea57c4f7aa85bf0ffa7f323dc6a16abc34ff Reviewed-on: https://swiftshader-review.googlesource.com/4260Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 25 Nov, 2015 1 commit
-
-
Alexis Hetu authored
Fragment outputs weren't given a proper index, so a fragment output array has been added to fix this. Change-Id: Id9be21f60cc23528bf1af078a8b3ca2df28e7ee4 Reviewed-on: https://swiftshader-review.googlesource.com/4295Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 24 Nov, 2015 1 commit
-
-
Alexis Hetu authored
Added some extra constructors that simply truncate from a type which has a higher number of bits. The new constructors are: - Byte from UInt - Byte from UShort - SByte from Int - SByte from Short - UShort from UInt Also added an implementation of the RoundUInt function using the UInt from Float constructor, which had to be fixed since it was using createFPToSI instead of createFPToUI. Change-Id: Ie7ee21ef20fbb8133b9f7c74afa1fec9e6c51957 Reviewed-on: https://swiftshader-review.googlesource.com/4300Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 20 Nov, 2015 1 commit
-
-
Alexis Hetu authored
Conversion from a float format to a non float format was broken in the blitter because the clamp operation, either to the [0,1] range or the [-1,1] range, was happening after the scaling operation, so non float types were becoming either -1, 0 or 1, which was wrong. Change-Id: I3e1290313043fc49030454916b6e4ea6666f8343 Reviewed-on: https://swiftshader-review.googlesource.com/4290Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 16 Nov, 2015 1 commit
-
-
Alexis Hetu authored
Implemented the missing pieces for multiple draw buffers support: - Fixed Context::getScissoredImage() to use the drawbuffer parameter properly - Enabled setting multiple render targets - Added dynamic indexing of gl_FragData using a new dynOut flag to figure out which channels are being written to. Change-Id: Id3d95c46a980a698f71e99f7781cc6287e880e9d Reviewed-on: https://swiftshader-review.googlesource.com/4220Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 13 Nov, 2015 5 commits
-
-
Nicolas Capens authored
Change-Id: I51c1774a35706639481c030b4365ee2e5d7ccd4d Reviewed-on: https://swiftshader-review.googlesource.com/4255Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
RGB_565 is now as fast if not faster than 32-bit formats. Change-Id: I6358e35557164541601ac76ae11028afba439084 Reviewed-on: https://swiftshader-review.googlesource.com/4253Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
crbug/546671 Change-Id: Ie43f8e34fa22bb0d23e4a123e789c429f2024ebb Reviewed-on: https://swiftshader-review.googlesource.com/4254Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Greg Hartman authored
This forces clang to avoid use init_array for all initialization rather than splitting the initialization between init_array and ctors. Local builds do this anyway, but for some reason the builds on go/ab do not. Setting this flag makes the builds consistent (and unbroken on JB-MR1). I already checked this in on cloud-android-current-release because I wanted to test it before submitting. Bug 25597090 Change-Id: I5a7195ba53531835fb8333b698ed39d21ff847a6 (cherry picked from commit 95c7182f118cc686df27c3f49db7d3c7908e0e59) Reviewed-on: https://swiftshader-review.googlesource.com/4271Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Greg Hartman <ghartman@google.com>
-
Nicolas Capens authored
Bug 25638876 Change-Id: If6d84c6e0778e0e45af27b74c92c861001669409 Reviewed-on: https://swiftshader-review.googlesource.com/4252Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Greg Hartman <ghartman@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 10 Nov, 2015 2 commits
-
-
Alexis Hetu authored
Also added the exports to allow enabling ES3 entirely on Linux. Change-Id: Ia13d229b9ce1104a74a2bbd1f620296686cf18d4 Reviewed-on: https://swiftshader-review.googlesource.com/3064Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Greg Hartman authored
Bug 25597090 Change-Id: Ie6bc4f55b5105a3e75cdc1b636f3e5716c10cc61 Reviewed-on: https://swiftshader-review.googlesource.com/4240Tested-by:
Greg Hartman <ghartman@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 06 Nov, 2015 1 commit
-
-
Nicolas Capens authored
Bug 25563277 Change-Id: I1721f060e313c135e713915ddd2dbdbca5239380 Reviewed-on: https://swiftshader-review.googlesource.com/4221Reviewed-by:
Keun Soo Yim <yim@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Greg Hartman <ghartman@google.com> Reviewed-by:
Greg Hartman <ghartman@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
- 05 Nov, 2015 1 commit
-
-
Nicolas Capens authored
Bug 24300960 Change-Id: I10a97536bb6559ea7b302b475d0b6936a495b65a Reviewed-on: https://swiftshader-review.googlesource.com/4210Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 03 Nov, 2015 2 commits
-
-
Greg Hartman authored
Change-Id: I2940ff65144f001d811b069b3e017b0849f310d1 Reviewed-on: https://swiftshader-review.googlesource.com/4201Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Greg Hartman authored
Bug 25432320 Change-Id: I3fd6d123cc1c15f04092a888a8e5c996d1bd4231 Reviewed-on: https://swiftshader-review.googlesource.com/4200Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Greg Hartman <ghartman@google.com>
-
- 02 Nov, 2015 1 commit
-
-
Nicolas Capens authored
On some platforms the default is undefined if neither RTLD_GLOBAL nor RTLD_LOCAL is specified. Bug 25282950 Change-Id: I0aea6a9f604afa0412a8f6d9c614b18987fbf514 Reviewed-on: https://swiftshader-review.googlesource.com/4190Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 30 Oct, 2015 6 commits
-
-
Nicolas Capens authored
Change-Id: Ic54eefe422f5d0478b7cdd8dfaa19ccb2e1a8a8e Reviewed-on: https://swiftshader-review.googlesource.com/4131Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 25390254 Change-Id: I434e6d319335be00204eff88f09c98b2dd4f2acc Reviewed-on: https://swiftshader-review.googlesource.com/4188Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 25390254 Change-Id: I6ac37912435e2c73f5e905db7c78af7884f0c93c Reviewed-on: https://swiftshader-review.googlesource.com/4187Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 25390254 Change-Id: Ibd8fc3a957f9ecf5480490e9504fa7041c7c9fa2 Reviewed-on: https://swiftshader-review.googlesource.com/4186Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Only configs with formats that match the system's framebuffer format should advertised the EGL_FRAMEBUFFER_TARGET_ANDROID attribute. Bug 25390254 Change-Id: I81e1a0365e151ed7082e3315399748e93c531ccc Reviewed-on: https://swiftshader-review.googlesource.com/4185Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 25390254 Change-Id: I21ed5b6d4a918bb6c3ac9ccc31ee5d47e193bd7f Reviewed-on: https://swiftshader-review.googlesource.com/4184Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 29 Oct, 2015 3 commits
-
-
Nicolas Capens authored
Change-Id: I8fb7499ac9d7d858a785c81d1e8e0a8511cab73c Reviewed-on: https://swiftshader-review.googlesource.com/4182Reviewed-by:
Greg Hartman <ghartman@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Veranika Liaukevich authored
Definitions of variables inside functions should be located in a scope different from function's arguments scope. Change-Id: I89fe1f527681c68963f4a69c71b78975787a410c Reviewed-on: https://swiftshader-review.googlesource.com/4180Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Veranika Liaukevich <veranika@google.com>
-
Veranika Liaukevich authored
For this patch lexer and parser files were regenerated with newer versions of Flex(2.5.39) and Bison(3.0.2). Because YYLEX_PARAM was deprecated and removed from Bison, it was replaced with %param. The change was inspired by Angle source code. Change-Id: I7ac60041aabb78567860653a0663ec9adb205e8a Reviewed-on: https://swiftshader-review.googlesource.com/4115Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Veranika Liaukevich <veranika@google.com>
-