Commit Graph
134 Commits
Author SHA1 Message Date
Jamie Madill cae611655e Update egl.h from khronos source.
Our header was out-of-date with some EGL 1.5 Image-related stuff.
This fixes the new dEQP compile which relies on the entry points
being defined.

BUG=angle:901

Change-Id: Ic6ecf45c9e626e4b8e5f715f5301a9fbba295f3e
Reviewed-on: https://chromium-review.googlesource.com/244443
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2015-01-30 15:36:24 +00:00
Austin Kinross 2bdcbb9a37 Enable Windows Phone 8.1 project generation
Change-Id: Iab44f6d634bdcd01348aa49de28b96c3b6086df7
Reviewed-on: https://chromium-review.googlesource.com/241945
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Austin Kinross <[email protected]>
2015-01-23 21:07:27 +00:00
Jamie Madill 3b141a6c63 Add OSX cases to EGL headers.
These changes we'll have to upstream at a later time.

BUG=angle:773

Change-Id: I18feb84ae58cb16e3e555c9ab65b6925ba35048e
Reviewed-on: https://chromium-review.googlesource.com/238443
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-01-05 21:07:27 +00:00
Erik Dahlström ea7a21219b Add GLSL/ESSL validator/translator support for GL_EXT_shader_framebuffer_fetch.
BUG=angle:834

Change-Id: I2d4e25909a8e1266b9bb7f1d4421324143157c8a
Reviewed-on: https://chromium-review.googlesource.com/231032
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Erik Dahlström <[email protected]>
2014-12-03 16:32:39 +00:00
Olli Etuaho 853dc1abd3 Add mediump and lowp precision emulation support for GLSL output
This implements the rounding as specified in WEBGL_debug_shader_precision
extension proposal for desktop GLSL and ESSL output. The bulk of the new
functionality is added in the form of a new EmulatePrecision AST
traverser, which inserts calls to the rounding routines angle_frm and
angle_frl in the appropriate places, and writes the rounding routines
themselves to the shader.

Compound assignments which are subject to emulation are transformed from
"x op= y" to "angle_compound_op_frm(x, y)", a call to a function which
does the appropriate rounding and places the result of the operation to
x.

The angle_ prefixed names should not clash with user-defined names if
name hashing is on. If name hashing is not on, the precision emulation
can only be used if the angle_ prefix is reserved for use by ANGLE.

To support the rounding routines in output, a new operator type is added
for internal helper function calls, which are not subject to name
hashing.

In ESSL output, all variables are forced to highp when precision
emulation is on to ensure consistency with how precision emulation
performs on desktop.

Comprehensive tests for the added code generation are included.

BUG=angle:787

Change-Id: I0d0ad9327888f803a32e79b64b08763c654c913b
Reviewed-on: https://chromium-review.googlesource.com/229631
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Olli Etuaho <[email protected]>
2014-11-26 14:57:35 +00:00
Geoff Lang 0a73dd85e4 Fix include guards.
BUG=angle:733

Change-Id: I08b2c11c4831f1161c178c1842b10e807185aced
Reviewed-on: https://chromium-review.googlesource.com/230831
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-11-24 18:10:03 +00:00
Geoff Lang 0d3683c425 Update ANGLE_platform_angle to allow requesting of Renderer versions.
Added enums to allow users to request major and minor versions of the
underlying API and if a WARP device is used.

BUG=angle:490

Change-Id: I0bfb2ac8d327da28a47cc8e6346300e47ab9538c
Reviewed-on: https://chromium-review.googlesource.com/225081
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-11-03 17:56:14 +00:00
Zhenyao Mo 4de44cb67e Change ShaderLang APIs from c style to c++ style.
BUG=angle:816
TEST=gpu_unittests,angle_unittests,webgl_conformance

Change-Id: I0b46c11f6055a82511bb946a6dc491360835526e
Reviewed-on: https://chromium-review.googlesource.com/226410
Reviewed-by: Zhenyao Mo <[email protected]>
Tested-by: Zhenyao Mo <[email protected]>
2014-10-31 16:48:50 +00:00
Zhenyao Mo db9b40b0d6 Reject shaders of a version that the compiler doesn't support.
For example, WebGL 1.0 compiler should not compile WebGL 2.0 shaders.

BUG=angle:
TEST=815

Change-Id: Iaec66fa5127426778aff6e3891e2c214048d7457
Reviewed-on: https://chromium-review.googlesource.com/226380
Tested-by: Zhenyao Mo <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2014-10-30 17:17:53 +00:00
Zhenyao Mo 409078f1e7 Remove ShGetVariableInfo() and related code.
BUG=angle:775
TEST=chromium builds and runs fine

Change-Id: Ic62d3a3c9a8f034880b77a96f7f1c6be2691985e
Reviewed-on: https://chromium-review.googlesource.com/226004
Tested-by: Zhenyao Mo <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
2014-10-29 20:54:39 +00:00
Kimmo Kinnunen 7c1cfd6154 Make ShBuiltInResources comparable with memcmp
Chromium builds a std::map with ShBuiltInResources as part of the key.
Comparator for == and < are needed for the map implementation.

Currently Chromium uses memcmp as the comparator. Padding
in ShBuiltInResources causes uninitialized reads.

Fix this by clearing the padding with memset during ShBuiltInResources
initialization.

Change-Id: I78aa3c59ce165503831aa2a67c96cf8af316c152
Reviewed-on: https://chromium-review.googlesource.com/223431
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Shannon Woods <[email protected]>
2014-10-21 20:45:35 +00:00
Cooper Partin 88d3b8cb73 Added IInspectable EGLNativeWindowType and ICoreWindow support
Change-Id: I6dd7fef72a73572d4a3deda7ce36a11da3a75c81
Reviewed-on: https://chromium-review.googlesource.com/224366
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-10-20 18:39:45 +00:00
Jamie Madill e020bed5a7 Revert "Added IInspectable EGLNativeWindowType and ICoreWindow support"
Causing regressions in the build: http://build.chromium.org/p/chromium.gpu.fyi/builders/GPU%20Mac%20Builder/builds/20182

This reverts commit 756aebfc7a.

Change-Id: I2f4bdb5aeb429c9bbc5e655a1761704f33737841
Reviewed-on: https://chromium-review.googlesource.com/224221
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2014-10-20 16:18:16 +00:00
Cooper Partin 756aebfc7a Added IInspectable EGLNativeWindowType and ICoreWindow support
Change-Id: I34e443b1e194800460e441ac6cee42cf68430564
Reviewed-on: https://chromium-review.googlesource.com/224302
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-10-20 15:58:08 +00:00
Shannon Woods 8858cf0a92 Revert "Added IInspectable EGLNativeWindowType and ICoreWindow support" due to build failures on Chromium FYI bots.
This reverts commit 406a3be91c.

Change-Id: Ica2abd2e557a4fd9852d85b7fc018e3d272b6edf
Reviewed-on: https://chromium-review.googlesource.com/224051
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Shannon Woods <[email protected]>
2014-10-17 20:53:49 +00:00
Cooper Partin 406a3be91c Added IInspectable EGLNativeWindowType and ICoreWindow support
Change-Id: I9ad82b7819bcca1c05e7aa60dc2baec4a7bc403c
Reviewed-on: https://chromium-review.googlesource.com/222360
Tested-by: Cooper Partin <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2014-10-17 20:05:34 +00:00
Zhenyao Mo ed13636ab9 Add type comparison, type retrieval, original name retrieval to ShaderVariable.
This is needed to effectively use the new APIs to get shader variable info.

BUG=angle::770
TEST=ShaderVariableTest

Change-Id: Ia591eb567868ebe898f4a7449c64167ad212f59b
Reviewed-on: https://chromium-review.googlesource.com/221388
Tested-by: Zhenyao Mo <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Kenneth Russell <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
2014-10-07 22:49:44 +00:00
Olli Etuaho e61209af1e Add option to support EXT_draw_buffers with NV_draw_buffers
After this patch, it is possible to set a flag to change
EXT_draw_buffers extension directives to NV_draw_buffers in ESSL.
This enables users of ANGLE to emulate EXT_draw_buffers by using
NV_draw_buffers in combination with GLES3.0.

Change-Id: I5dacdbd6cd0d0362424ea3791557342c42efd4bd
Reviewed-on: https://chromium-review.googlesource.com/219941
Reviewed-by: Olli Etuaho <[email protected]>
Tested-by: Olli Etuaho <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2014-10-03 14:39:24 +00:00
Jamie Madill a6f267f99e Fix row-major layout tracking in interface blocks.
Some block field types, such as nested structs, were bugged. This
only affects our "CollectVariables" path, not our current HLSL
UBO path.

BUG=angle:466

Change-Id: I2b8daf58aa7ec1ad06a80d38f57e76087eacccdc
Reviewed-on: https://chromium-review.googlesource.com/213503
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-08-28 13:25:29 +00:00
Jamie Madill 42bcf32e9d Refactor ShaderVariables to store fields in the base.
Instead of only storing structure information in Varyings, Uniforms
and Interface Block Fields, store it in the base class. Also only
store base variable information for struct fields, instead of fully
typed information. This works because stuff like interpolation type,
invariance, and other properties are for the entire variable, not
individual fields.

Also add new fields for interface block instance name, varying
invariance and structure name for all struct types.

BUG=angle:466

Change-Id: If03fc071e6becb7aad6dea5093989bba7daee69e
Reviewed-on: https://chromium-review.googlesource.com/213501
Reviewed-by: Zhenyao Mo <[email protected]>
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-08-26 20:21:31 +00:00
Zhenyao Mo e740addbc2 Add compiler option SH_REGENERATE_STRUCT_NAMES.
BUG=angle:701
TEST=webgl conformance tests

Change-Id: I13b35900956e7d840d5891a5bab90a400347cd6f
Reviewed-on: https://chromium-review.googlesource.com/209229
Tested-by: Zhenyao Mo <[email protected]>
Reviewed-by: Kenneth Russell <[email protected]>
2014-08-07 01:26:18 +00:00
Jamie Madill a2ad4e8a3e Export shader variables from the translator DLL.
This will allow us to use these methods when compiling the translator
as a DLL.

BUG=angle:466,697

Change-Id: Ic9169fb7c69fe0bf5f98addfc128a30ee6b2159d
Reviewed-on: https://chromium-review.googlesource.com/208752
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2014-08-06 20:13:53 +00:00
Jamie Madill e294bb8741 Add new shader inspection APIs.
Each new entry point corresponds to one of the variable types:
varyings, attributes, uniforms, output variables, and interface
blocks. They return a pointer to the vector with all of the
parsed variables, which then the app can copy to its own memory.

Currently we do not support the staticUse field in the HLSL
translator.

BUG=angle:466

Change-Id: I7dc09e761ab070feef5360ad27740110c44853b3
Reviewed-on: https://chromium-review.googlesource.com/208750
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-31 20:38:50 +00:00
Jamie Madill 13cfd276d3 Move shader variables header to include folder.
This allows the API to query for clear type introspection into the
parsed GL types from the translator. The returned types are not
expanded and have properly nested fields.

This patch uses the types from ShaderVars.h to return GL type
information. The app must include this header to get access to
the types structs.

BUG=angle:466

Change-Id: I28ad0d6f11a964804dd234ef0d00651f665d1ae3
Reviewed-on: https://chromium-review.googlesource.com/208751
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2014-07-31 20:38:33 +00:00
Jamie Madill 9fe25e9eaa Add a uniform register query to the translator.
This returns the uniform index that we assigned for default uniforms.
All the dependent structure offsets can be determined from the base
register, so we won't have to store uniform information in the shader
variable.

BUG=angle:466

Change-Id: I0dd05251e8dba00c20d09fd865dfb150de56738e
Reviewed-on: https://chromium-review.googlesource.com/207254
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-23 20:31:01 +00:00
Geoff Lang 591e6afe5a Add support for ANGLE_platform_angle.
BUG=angle:490

Change-Id: If3c897a9ae3d27b96e4b9bf9475a9ac23a1090ba
Reviewed-on: https://chromium-review.googlesource.com/185396
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-07-22 19:43:10 +00:00
Zhenyao Mo cd68fe7989 Add a compiler option to rewrite vec/mat constructors
If one of the parameters is a vec/mat, expand it into scalars.

This is to work around Linux NVIDIA/AMD and Mac NVIDIA driver bugs.

BUG=angle:695
TEST=webgl conformance test

Change-Id: I35e1e25167d99f873dcb03bfb57a30e84b1aeed5
Reviewed-on: https://chromium-review.googlesource.com/207479
Reviewed-by: Jamie Madill <[email protected]>
Tested-by: Zhenyao Mo <[email protected]>
2014-07-16 19:51:00 +00:00
Jamie Madill 4e1fd41255 Store a map of interface block registers.
The shader translator can return the assigned register for a
block via a new API. This will let us delete the member variable
in interface blocks for the register -- a nice thing for GLSL.

BUG=angle:466

Change-Id: I9bc38e0cd031e32f90787be42c2324fc7c79dbf9
Reviewed-on: https://chromium-review.googlesource.com/206828
Reviewed-by: Zhenyao Mo <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2014-07-14 13:53:35 +00:00
Jamie Madill 183bde5527 Return shader variable information using GLenum values.
Instead of duplicating GL header define values, explictly return
GLenum for variable queries in the shader inspection API. This
reduces the duplicate defines in the shader compiler header.

BUG=angle:466

Change-Id: Iddaaff597b188251fa2e546f352bf77ab3ac43bc
Reviewed-on: https://chromium-review.googlesource.com/205860
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-03 17:22:09 +00:00
Jamie Madill ce50555375 Revert "Return variable type queries using GLenum values."
Breaks the FYI bots until we get Chromium patched.

BUG=angle:466

This reverts commit 53221f5a03.

Change-Id: Ib28548df5c10a6f76f46e4cf8f2013dca5cf0ee2
Reviewed-on: https://chromium-review.googlesource.com/205850
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2014-06-26 19:00:37 +00:00
Jamie Madill 53221f5a03 Return variable type queries using GLenum values.
Instead of duplicating GL header define values, explictly return
GLenum for variable queries in the shader inspection API. This
reduces the duplicate defines in the shader compiler header.

BUG=angle:466

Change-Id: If631b20ce68747297a946e1371def7709027a613
Reviewed-on: https://chromium-review.googlesource.com/204937
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2014-06-26 18:07:37 +00:00
Jamie Madill f51639a4d1 Use a common include for GL headers.
A common place to define required GL includes gives us a nice
point to centralize GL customizations. In the header currently
are the basic GLES headers with extensions, and a define
carried over from desktop GL.

BUG=angle:466

Change-Id: I6fc61947b4514654ec21355a786904eac04656c0
Reviewed-on: https://chromium-review.googlesource.com/204936
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-06-26 14:36:33 +00:00
Geoff Lang 42a73ad04c Update to the latest EGL headers.
BUG=angle:490

Change-Id: I205e680a40af18f2657096d4219bdac0f613fb11
Reviewed-on: https://chromium-review.googlesource.com/204563
Reviewed-by: Brandon Jones <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-06-20 21:08:28 +00:00
Jamie Madill 68fe74aabb Add a compiler query for the translator output type.
This is useful for determining if we are compiling to a D3D9 or D3D11
shader outside of the internal translator classes.

BUG=angle:656

Change-Id: Ib1c1d3de569edaa2b65c24c09d05aa4dd229d3e4
Reviewed-on: https://chromium-review.googlesource.com/201564
Reviewed-by: Nicolas Capens <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2014-05-28 14:05:38 +00:00
Shannon Woods 2d76e5f665 Adds resource string generation to ANGLE
This will avoid Chrome source having to be updated each time that ANGLE's
ShBuiltInResources changes.

BUG=374942

Change-Id: If54dba8351de9b261ff269e885f231547c08ff0a
Reviewed-on: https://chromium-review.googlesource.com/200171
Reviewed-by: Kenneth Russell <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
Tested-by: Shannon Woods <[email protected]>
2014-05-20 20:57:58 +00:00
Nicolas Capens 4648508683 Implement EXT_shader_texture_lod
BUG=angle:551

Change-Id: I81d7574a15861f1b24ddf6147cf71adbf20e10f3
Reviewed-on: https://chromium-review.googlesource.com/194960
Tested-by: Nicolas Capens <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
2014-04-16 19:30:22 +00:00
John Bauman 3dc300a592 Allow creating fixed-size window surfaces.
BUG=320021

Change-Id: I97cdd65ac17ee142700dbf0f363891500e967571
Reviewed-on: https://chromium-review.googlesource.com/184205
Reviewed-by: John Bauman <[email protected]>
Tested-by: John Bauman <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/190563
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
Tested-by: Shannon Woods <[email protected]>
2014-03-26 04:57:42 +00:00
Zhenyao Mo 3cdfcce86b Remove SH_MAP_LONG_VARIABLE_NAMES
We use hashing to map all variables/strcuture field names, etc,
so we no longer need this option.

Checked with Firefox and WebKit, they no longer use this option
either. Time to remove it.

Change-Id: Ie3e79b91a05258b04af419a9c42b2fd1b00e67c4
Reviewed-on: https://chromium-review.googlesource.com/189236
Reviewed-by: Kenneth Russell <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Zhenyao Mo <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/189568
2014-03-11 18:25:18 +00:00
Zhenyao Mo 550c600b99 Improvement on loop unrolling with loops indexing sampler arrays
1) Before this workaround is hardwired on mac, now we move it behind a compil
    2) Fix the issue where "break" inside the loop isn't handled while unrolled.

    BUG=338474
    TEST=webgl conformance test sampler-array-using-loop-index.html

Change-Id: I4996a42c2dea39a8a5af772c256f8e3cb383f59a
Reviewed-on: https://chromium-review.googlesource.com/188079
Reviewed-by: Zhenyao Mo <[email protected]>
Tested-by: Zhenyao Mo <[email protected]>

Conflicts:
	include/GLSLANG/ShaderLang.h
	src/compiler/translator/ValidateLimitations.cpp
Change-Id: I546197bd7df1634ebccdd380be14c3250cd56151
Reviewed-on: https://chromium-review.googlesource.com/189061
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Zhenyao Mo <[email protected]>
2014-03-07 18:59:18 +00:00
Zhenyao Mo 4a667fe96e Add an option to initialize varyings without static use in vertex shaders
ANGLEBUG=554
TEST=webgl conformance test on mac: shaders-with-varyings.html
[email protected],[email protected]
[email protected],[email protected]

Change-Id: I2e692d43fb15f1cf3ade3e398020d1fedb2b32f0
Reviewed-on: https://chromium-review.googlesource.com/185922
Reviewed-by: Zhenyao Mo <[email protected]>
Tested-by: Zhenyao Mo <[email protected]>

Conflicts:
	src/common/version.h
	src/compiler/translator/Compiler.cpp
Change-Id: If7db13ef345bd6199d4ea0d7786f0de20885f2f3
Reviewed-on: https://chromium-review.googlesource.com/186144
Reviewed-by: Nicolas Capens <[email protected]>
Reviewed-by: Kenneth Russell <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Tested-by: Zhenyao Mo <[email protected]>
2014-02-12 23:21:53 +00:00
Zhenyao Mo 7cab38b594 Add an option to unfold short circuiting in AST.
We replace "a || b" with "a ? true : b",
"a && b" with "a ? b : false".

This is to work around short circuiting bug in Mac drivers.

ANGLEBUG=482
TEST=webgl conformance tests
[email protected], [email protected]

Review URL: https://codereview.appspot.com/14529048

Conflicts:

	src/build_angle.gypi
	src/compiler/translator/Compiler.cpp

Change-Id: Ic2384a97d58f54294efcb3a012deb2007a9fc658
Reviewed-on: https://chromium-review.googlesource.com/178996
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
Tested-by: Shannon Woods <[email protected]>
2013-12-09 21:51:57 +00:00
Geoff Lang 31f0dc0a09 Merge a0bd8ef0ac 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
[email protected]
BUG=
2013-10-17 09:52:41 -04:00
Shannon Woods 93780289a7 Update to most recent khrplatform.h
Signed-off-by: Geoff Lang
Signed-off-by: Jamie Madill
2013-10-04 11:12:49 -04:00
Zhenyao Mo ac44cd2b07 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
[email protected], [email protected]

Review URL: https://codereview.appspot.com/13509043
2013-09-24 15:13:06 -04:00
Zhenyao Mo a15f3e84bf Expose the packing function so we can check varyings packing per program
ANGLEBUG=471
[email protected]

Review URL: https://codereview.appspot.com/13322043
2013-09-24 15:13:06 -04:00
Zhenyao Mo d2d340b0da Add static_use to shader variable info query.
BUG=249018
ANGLEBUG=465
[email protected]

Review URL: https://codereview.appspot.com/13158043
2013-09-24 15:13:05 -04:00
Zhenyao Mo fa3c346fe9 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
[email protected]

Review URL: https://codereview.appspot.com/13113044
2013-09-24 15:13:05 -04:00
Zhenyao Mo 74da9f2f24 Expose varying variables and also precision for all variables.
ANGLEBUG=457
[email protected], [email protected]

Review URL: https://codereview.appspot.com/12487043
2013-09-24 15:13:04 -04:00
Jamie Madill 47fdd13e7c Pass varyings to the GLES API from the translator using a direct pointer.
Instead of parsing them indirectly from HLSL, the pointer will allow us to more flexibly
support new types, especially compound types such as structures.

TRAC #23754

Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
2013-09-09 15:27:50 -04:00
Nicolas Capens 2a1d8a381d Add shadow samplers to the compiler front-end.
TRAC #23394
Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Nicolas Capens
2013-07-19 18:08:12 -04:00