projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07df3b8
)
st/glsl_to_tgsi: attach image to correct instruction for samples
author
Dave Airlie
<airlied@redhat.com>
Tue, 10 May 2016 05:53:48 +0000
(15:53 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 10 May 2016 20:55:09 +0000
(06:55 +1000)
This fixes a crash (but not the test):
GL45-CTS.shader_texture_image_samples_tests.functional_test
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 6e9c19a63064f7c59225606a5b7372a28bd68b3b..9cf204a3cac42e3687370013a1658d34c187b19c 100644
(file)
--- a/
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@
-3511,9
+3511,9
@@
glsl_to_tgsi_visitor::visit_image_intrinsic(ir_call *ir)
st_src_reg res = get_temp(glsl_type::ivec4_type);
st_dst_reg dstres = st_dst_reg(res);
dstres.writemask = WRITEMASK_W;
- emit_asm(ir, TGSI_OPCODE_RESQ, dstres);
+
inst =
emit_asm(ir, TGSI_OPCODE_RESQ, dstres);
res.swizzle = SWIZZLE_WWWW;
-
inst =
emit_asm(ir, TGSI_OPCODE_MOV, dst, res);
+ emit_asm(ir, TGSI_OPCODE_MOV, dst, res);
} else {
st_src_reg arg1 = undef_src, arg2 = undef_src;
st_src_reg coord;