diff options
author | Christian König <[email protected]> | 2010-12-12 15:37:54 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2011-01-12 00:44:30 +0100 |
commit | 93a95ad8ff1d543f886f123029d1329513729c4b (patch) | |
tree | 2be53ea3b1ccddbb2b42710deaf393f7441f14c0 /src | |
parent | a1146c1373e66d429afbb92ecb08a6fd67c3e224 (diff) |
r600g: texture instructions also work fine with TGSI_FILE_INPUT
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 59c080fcbba..2bf116c90bc 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -1717,7 +1717,9 @@ static int tgsi_tex(struct r600_shader_ctx *ctx) unsigned src_gpr; int r, i; int opcode; - boolean src_not_temp = inst->Src[0].Register.File != TGSI_FILE_TEMPORARY; + boolean src_not_temp = + inst->Src[0].Register.File != TGSI_FILE_TEMPORARY && + inst->Src[0].Register.File != TGSI_FILE_INPUT; uint32_t lit_vals[4]; src_gpr = ctx->file_offset[inst->Src[0].Register.File] + inst->Src[0].Register.Index; |