ilo: correctly set return types of sampler messages

Correctly set the types of the temporaries.  We do not want type conversions
when moving the results to the final destinations.
This commit is contained in:
Chia-I Wu
2013-05-05 14:13:39 +08:00
parent b42fe195a2
commit 008346273c
2 changed files with 3 additions and 0 deletions
@@ -982,6 +982,8 @@ fs_lower_opcode_tgsi_sampling(struct fs_compile_context *fcc,
/* write to temps first */
tc_alloc_tmp4(tc, tmp);
for (i = 0; i < 4; i++)
tmp[i].type = inst->dst.type;
tdst_transpose(inst->dst, dst);
inst->dst = tmp[0];
@@ -554,6 +554,7 @@ vs_lower_opcode_tgsi_sampling(struct vs_compile_context *vcc,
/* write to a temp first */
tmp = tc_alloc_tmp(tc);
tmp.type = inst->dst.type;
dst = inst->dst;
inst->dst = tmp;