From 5d59226a7fd6d96501d573e23f10eca7d83a68e8 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 13 Apr 2017 11:35:03 +0200 Subject: st/glsl_to_tgsi: add support for bindless pack/unpack operations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Samuel Pitoiset Reviewed-by: Nicolai Hähnle Reviewed-by: Marek Olšák --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 797ac9dced2..e2505a709ae 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -2331,6 +2331,10 @@ glsl_to_tgsi_visitor::visit_expression(ir_expression* ir, st_src_reg *op) case ir_unop_pack_int_2x32: case ir_unop_unpack_uint_2x32: case ir_unop_pack_uint_2x32: + case ir_unop_unpack_sampler_2x32: + case ir_unop_pack_sampler_2x32: + case ir_unop_unpack_image_2x32: + case ir_unop_pack_image_2x32: emit_asm(ir, TGSI_OPCODE_MOV, result_dst, op[0]); break; @@ -2489,11 +2493,6 @@ glsl_to_tgsi_visitor::visit_expression(ir_expression* ir, st_src_reg *op) case ir_unop_unpack_snorm_4x8: case ir_unop_unpack_unorm_4x8: - case ir_unop_unpack_sampler_2x32: - case ir_unop_pack_sampler_2x32: - case ir_unop_unpack_image_2x32: - case ir_unop_pack_image_2x32: - case ir_quadop_vector: case ir_binop_vector_extract: case ir_triop_vector_insert: -- cgit v1.2.3