diff options
author | Timothy Arceri <[email protected]> | 2018-01-19 15:11:16 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-01-23 09:44:37 +1100 |
commit | 0cbc62a4dd92d1585aa14bf115d966deac07948e (patch) | |
tree | 8236f2e9a18ce3fb43175ddbe9336587fe61d782 | |
parent | 549ccbb4356730e096602048f53dea24220ff1d5 (diff) |
glsl: add image and sampler (un)packing support to glsl to nir
This is needed for ARB_bindless_texture support.
Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r-- | src/compiler/glsl/glsl_to_nir.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index 0493410aebe..c4ef4f5ce14 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -1640,11 +1640,15 @@ nir_visitor::visit(ir_expression *ir) case ir_unop_unpack_half_2x16: result = nir_unpack_half_2x16(&b, srcs[0]); break; + case ir_unop_pack_sampler_2x32: + case ir_unop_pack_image_2x32: case ir_unop_pack_double_2x32: case ir_unop_pack_int_2x32: case ir_unop_pack_uint_2x32: result = nir_pack_64_2x32(&b, srcs[0]); break; + case ir_unop_unpack_sampler_2x32: + case ir_unop_unpack_image_2x32: case ir_unop_unpack_double_2x32: case ir_unop_unpack_int_2x32: case ir_unop_unpack_uint_2x32: |