diff options
author | Ian Romanick <[email protected]> | 2017-09-07 19:23:51 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2017-09-19 12:02:43 -0500 |
commit | 9ac8fece63a9e980971b0cc894c60a9d8db4037d (patch) | |
tree | 6c4c0a85722e769c3711f1c217abe339d8581d6d /src/compiler/glsl/ir.h | |
parent | 0e88153e998b5ba97dee2b143915ba2509217281 (diff) |
glsl: Unify ir_constant::const_elements and ::components
There was no reason to treat array types and record types differently.
Unifying them saves a bunch of code and saves a few bytes in every
ir_constant.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Reviewed-by: Elie Tournier <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir.h')
-rw-r--r-- | src/compiler/glsl/ir.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h index d87f7c32b72..27eafe8e22b 100644 --- a/src/compiler/glsl/ir.h +++ b/src/compiler/glsl/ir.h @@ -2262,12 +2262,9 @@ public: */ union ir_constant_data value; - /* Array elements */ + /* Array elements and structure fields */ ir_constant **const_elements; - /* Structure fields */ - exec_list components; - private: /** * Parameterless constructor only used by the clone method |