glsl: use enum glsl_interface_packing in more places. (v2)
authorDave Airlie <airlied@redhat.com>
Wed, 11 May 2016 00:49:19 +0000 (10:49 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 6 Jun 2016 05:58:37 +0000 (15:58 +1000)
commit78659ade404a0761968ab5240c812e4c3119d669
tree1c290cc2d1460ace7d44c602cf2891561d4e410e
parentff2e569153d48bda347be729fc441852ab293138
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 <airlied@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/compiler/glsl/ir.h
src/compiler/glsl/link_uniform_block_active_visitor.cpp
src/compiler/glsl/link_uniform_blocks.cpp
src/compiler/glsl/link_uniforms.cpp
src/compiler/glsl/linker.h
src/compiler/glsl/lower_buffer_access.cpp
src/compiler/glsl/lower_buffer_access.h
src/compiler/glsl/lower_shared_reference.cpp
src/compiler/glsl/lower_ubo_reference.cpp
src/compiler/glsl/opt_dead_code.cpp
src/compiler/glsl_types.h