r600g: texture instructions also work fine with TGSI_FILE_INPUT
authorChristian König <deathsimple@vodafone.de>
Sun, 12 Dec 2010 14:37:54 +0000 (15:37 +0100)
committerChristian König <deathsimple@vodafone.de>
Tue, 11 Jan 2011 23:44:30 +0000 (00:44 +0100)
src/gallium/drivers/r600/r600_shader.c

index 59c080fcbba9786ea569fb1dea46a6051742b557..2bf116c90bc0d02c12d9edd5ed20932697da2511 100644 (file)
@@ -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;