diff options
author | Dave Airlie <[email protected]> | 2016-02-08 11:09:29 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-02-09 10:52:08 +1000 |
commit | 52801766a00ba3b2a93e14d1ac80afd8980d15d8 (patch) | |
tree | 29f703cd5865f6576f65e0850b0869b10b4f881a /src/compiler/glsl | |
parent | 53739fddc65a4cb34a2da14b873e95a451916267 (diff) |
glsl/ir: add param index to variable.
We have a requirement to store the index into the mesa parameterlist
for uniforms. Up until now we've overwritten var->data.location with
this info. However this then stops us accessing UniformStorage,
which is needed to do proper dereferencing.
Add a new variable to ir_variable to store this value in, and change
the two uses to use it correctly.
Reviewed-by: Timothy Arceri <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r-- | src/compiler/glsl/ir.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h index 09e21b22188..bf9b7caffae 100644 --- a/src/compiler/glsl/ir.h +++ b/src/compiler/glsl/ir.h @@ -864,6 +864,14 @@ public: int location; /** + * for glsl->tgsi/mesa IR we need to store the index into the + * parameters for uniforms, initially the code overloaded location + * but this causes problems with indirect samplers and AoA. + * This is assigned in _mesa_generate_parameters_list_for_uniforms. + */ + int param_index; + + /** * Vertex stream output identifier. */ unsigned stream; |