From: Samuel Pitoiset Date: Thu, 13 Apr 2017 09:35:03 +0000 (+0200) Subject: st/glsl_to_tgsi: add support for bindless pack/unpack operations X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d59226a7fd6d96501d573e23f10eca7d83a68e8;p=mesa.git st/glsl_to_tgsi: add support for bindless pack/unpack operations Signed-off-by: Samuel Pitoiset Reviewed-by: Nicolai Hähnle Reviewed-by: Marek Olšák --- 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: