Mesa (13.0): st/glsl_to_tgsi: fix block copies of arrays of doubles
Emil Velikov
evelikov at kemper.freedesktop.org
Mon Oct 24 11:24:42 UTC 2016
Module: Mesa
Branch: 13.0
Commit: 3581e21d5b0c90a3f3858f0b92f7fe58ead95560
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3581e21d5b0c90a3f3858f0b92f7fe58ead95560
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date: Sun Oct 16 17:33:51 2016 +0200
st/glsl_to_tgsi: fix block copies of arrays of doubles
Set the type of the left-hand side to the same as the right-hand side,
so that when the base type is double, the writemask of the MOV instruction
is properly fixed up.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Cc: 13.0 <mesa-stable at lists.freedesktop.org>
(cherry picked from commit ca592af880b71feb8ebbf79f704380d0deb47b33)
---
src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 98ebe54..562587e 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -2880,6 +2880,7 @@ glsl_to_tgsi_visitor::emit_block_mov(ir_assignment *ir, const struct glsl_type *
assert(type->is_scalar() || type->is_vector());
+ l->type = type->base_type;
r->type = type->base_type;
if (cond) {
st_src_reg l_src = st_src_reg(*l);
More information about the mesa-commit
mailing list