diff options
author | Dave Airlie <[email protected]> | 2016-05-11 10:49:19 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-06-06 15:58:37 +1000 |
commit | 78659ade404a0761968ab5240c812e4c3119d669 (patch) | |
tree | 1c290cc2d1460ace7d44c602cf2891561d4e410e /src/compiler/glsl/lower_shared_reference.cpp | |
parent | ff2e569153d48bda347be729fc441852ab293138 (diff) |
glsl: use enum glsl_interface_packing in more places. (v2)
Although the glsl_types.h stores this in a bitfield,
we should hide that from everyone else. Hide the cast
in an accessor method and use the enum everywhere.
This makes things a bit nicer in gdb, and improves type
safety.
v2: fix a few pieces of interface I missed that caused some
piglit regressions.
Signed-off-by: Dave Airlie <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/compiler/glsl/lower_shared_reference.cpp')
-rw-r--r-- | src/compiler/glsl/lower_shared_reference.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/glsl/lower_shared_reference.cpp b/src/compiler/glsl/lower_shared_reference.cpp index 12499695882..e63e7dd8193 100644 --- a/src/compiler/glsl/lower_shared_reference.cpp +++ b/src/compiler/glsl/lower_shared_reference.cpp @@ -138,7 +138,7 @@ lower_shared_reference_visitor::handle_rvalue(ir_rvalue **rvalue) bool row_major; int matrix_columns; assert(var->get_interface_type() == NULL); - const unsigned packing = GLSL_INTERFACE_PACKING_STD430; + const enum glsl_interface_packing packing = GLSL_INTERFACE_PACKING_STD430; setup_buffer_access(mem_ctx, var, deref, &offset, &const_offset, @@ -206,7 +206,7 @@ lower_shared_reference_visitor::handle_assignment(ir_assignment *ir) bool row_major; int matrix_columns; assert(var->get_interface_type() == NULL); - const unsigned packing = GLSL_INTERFACE_PACKING_STD430; + const enum glsl_interface_packing packing = GLSL_INTERFACE_PACKING_STD430; setup_buffer_access(mem_ctx, var, deref, &offset, &const_offset, @@ -365,7 +365,7 @@ lower_shared_reference_visitor::lower_shared_atomic_intrinsic(ir_call *ir) bool row_major; int matrix_columns; assert(var->get_interface_type() == NULL); - const unsigned packing = GLSL_INTERFACE_PACKING_STD430; + const enum glsl_interface_packing packing = GLSL_INTERFACE_PACKING_STD430; buffer_access_type = shared_atomic_access; setup_buffer_access(mem_ctx, var, deref, |