summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König <[email protected]>2012-08-01 23:18:14 +0200
committerChristian König <[email protected]>2012-08-02 12:05:33 +0200
commit250b7fdd2610bf03292399c7d489c82de22fc682 (patch)
tree0dccadb3532cc7e5a957f60c35236208cb910c14
parent3508815d178a5b2d22b2249a68974b0cf8f67069 (diff)
radeonsi: fix TEX writemask
Using the writemask in the sampler results in packet VGPRS. For now just sample all components and let llvm chose the right one. Signed-off-by: Christian König <[email protected]> Reviewed-by: Michel Dänzer <[email protected]>
-rw-r--r--src/gallium/drivers/radeonsi/radeonsi_shader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c
index 522016e411f..c19a4c2d236 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_shader.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c
@@ -519,8 +519,8 @@ static void tex_fetch_args(
LLVMValueRef offset;
/* WriteMask */
- emit_data->args[0] = lp_build_const_int32(bld_base->base.gallivm,
- emit_data->inst->Dst[0].Register.WriteMask);
+ /* XXX: should be optimized using emit_data->inst->Dst[0].Register.WriteMask*/
+ emit_data->args[0] = lp_build_const_int32(bld_base->base.gallivm, 0xf);
/* Coordinates */
/* XXX: Not all sample instructions need 4 address arguments. */