Commit Graph
11 Commits
Author SHA1 Message Date
Geoff Lang e2bfe2cd97 Revert "Implement gl_FragDepth for GLES SL 3.0"
assertion failures in WebGL2 CTS.

This reverts commit 544809610a.

Change-Id: I2e0c7045c5b6ef9031a6e6c5916504fe68f51077
Reviewed-on: https://chromium-review.googlesource.com/287910
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2015-07-23 21:26:00 +00:00
Kimmo Kinnunen 544809610a Implement gl_FragDepth for GLES SL 3.0
Makes it an error to access gl_FragDepthEXT  in #version 300 es shader.

TODO:
Lacks the feature to make "#extension GL_EXT_frag_depth : require" an
error for #version 300 es.

BUG=angleproject:1102
TEST=angle_unittest

Change-Id: Ic313a0e1ed6369550d53885290f300fab1aaf304
Reviewed-on: https://chromium-review.googlesource.com/287570
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2015-07-23 15:40:53 +00:00
Kimmo Kinnunen 0932df6158 Expose GL built-in output variables in ShGetOutputVariables
Expose GL built-in output variables in ShGetOutputVariables.
Currently gl_FragColor, gl_FragData and gl_FragDepthEXT are exposed.

The output variable names in the returned array are the input shader names,
not the output shader names.

This is needed in future features in which the emulation layer (command
buffer/libANGLE) needs to know which output variables caller used.

Example of such a feature is EXT_blend_func_extended, where
gl_SecondaryFragColorEXT and gl_SecondaryFragDataEXT cause the need
to bind the emulated output variables to their respective color
indices.

BUG=angleproject:1085
TEST=angle_unittests

Change-Id: I7ca3e0fe6bdd3e3c66113518aa771cbb013fc014
Reviewed-on: https://chromium-review.googlesource.com/287230
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Tested-by: Kimmo Kinnunen <[email protected]>
2015-07-23 12:19:09 +00:00
Jamie Madill 55def58323 translator: Fix variable collection for gl_DepthRange.
*re-land with Linux fixes, and fix for locations*

This built-in uniform wasn't being collected in VariableInfo.cpp.
Also remove the existing workaround for D3D gl_DepthRange
collection.

BUG=angleproject:991
BUG=478570

Change-Id: Iba84651bfc58f82fd4ce039421874f561f83c348
Reviewed-on: https://chromium-review.googlesource.com/268840
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2015-05-04 17:21:28 +00:00
Jamie Madill 26e1a466df Revert "translator: Fix variable collection for gl_DepthRange."
Build errors on Linux:

error: comparison of integers of different signs: 'const int' and 'const unsigned int'

BUG=angleproject:991
BUG=478570

This reverts commit f1ae954b66.

Change-Id: I217aba1b32dc0e70d6153337a1f0ccef0483a0e1
Reviewed-on: https://chromium-review.googlesource.com/268792
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2015-05-01 19:19:34 +00:00
Jamie Madill f1ae954b66 translator: Fix variable collection for gl_DepthRange.
This built-in uniform wasn't being collected in VariableInfo.cpp.
Also remove the existing workaround for D3D gl_DepthRange
collection.

BUG=angleproject:991
BUG=478570

Change-Id: Ie254132e37c307323ba9e6e1705d138eea67b520
Reviewed-on: https://chromium-review.googlesource.com/268524
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2015-05-01 18:43:52 +00:00
Jamie Madill 559a2e8cdc Move the ANGLE tests project to src/
*re-re-land with fix for Chrome's angle tests*

BUG=angleproject:945

Change-Id: I3c64e2edc776c299791440f65f22450855eb6dfa
Reviewed-on: https://chromium-review.googlesource.com/260448
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-03-16 21:38:50 +00:00
Jamie Madill 96e3f556d6 Revert "Move the ANGLE tests project to src/"
Still causing build issues on Chrome.

This reverts commit 64a3b2a92f.

Change-Id: I8d40fe3dfd0a877343357153a02b8ef66d571c64
Reviewed-on: https://chromium-review.googlesource.com/260425
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2015-03-16 21:24:56 +00:00
Jamie Madill 64a3b2a92f Move the ANGLE tests project to src/
*re-land with fix for Chromium build*

BUG=angleproject:945

Change-Id: I82bff1760e681987fb26e479734aa62fb845898a
Reviewed-on: https://chromium-review.googlesource.com/260362
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-03-16 21:02:51 +00:00
Jamie Madill 5491fe6667 Revert "Move the ANGLE tests project to src/"
Causing build break in Chromium.

This reverts commit 71c2d85c4a.

Change-Id: Iedf001c1f4c60a759f69009610fbce978d193d17
Reviewed-on: https://chromium-review.googlesource.com/260370
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2015-03-16 17:59:48 +00:00
Jamie Madill 71c2d85c4a Move the ANGLE tests project to src/
BUG=angleproject:945

Change-Id: I2eb44ac43f65b916ddd838d39e6aae62580d7fa0
Reviewed-on: https://chromium-review.googlesource.com/258903
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Brandon Jones <[email protected]>
2015-03-16 17:34:40 +00:00