diff options
author | Kenneth Graunke <[email protected]> | 2016-03-04 21:19:49 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-03-07 14:09:55 -0800 |
commit | af41c0b7e05f8d2b4b01a1a178b2bfa209236bfe (patch) | |
tree | 3f7a9f70210a01c3cb517fda1903dfe968f8762e /src/gallium/drivers | |
parent | c4960068d5d1b4f882734b0e686092a94c80c9bf (diff) |
glsl: Add function parameters to the parser symbol table.
In a shader such as:
struct S { float f; }
float identity(float S) { return S; }
we would think that "S" in "return S" referred to a structure, even
though it's shadowed by the "float S" parameter in the inner struct.
This led to the parser's grammar seeing TYPE_IDENTIFIER and getting
confused.
Fixes dEQP-GLES2.functional.shaders.scoping.valid.
function_parameter_hides_struct_type_{vertex,fragment}.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
0 files changed, 0 insertions, 0 deletions