r600g: fix handling of outputs as TEX addr sources
authorChristian König <deathsimple@vodafone.de>
Mon, 6 Feb 2012 19:56:10 +0000 (20:56 +0100)
committerChristian König <deathsimple@vodafone.de>
Wed, 8 Feb 2012 18:25:18 +0000 (19:25 +0100)
Outputs should be treated in the same way as
inputs and temporaries here.

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
src/gallium/drivers/r600/r600_shader.c

index 5b145e6f1dc7bf73b53ff3512815cdb4180ac708..6d05df6ae285dbc1a38da19bf8428ffa8f62e47b 100644 (file)
@@ -3252,7 +3252,8 @@ static inline boolean tgsi_tex_src_requires_loading(struct r600_shader_ctx *ctx,
 {
        struct tgsi_full_instruction *inst = &ctx->parse.FullToken.FullInstruction;
        return  (inst->Src[index].Register.File != TGSI_FILE_TEMPORARY &&
-               inst->Src[index].Register.File != TGSI_FILE_INPUT) ||
+               inst->Src[index].Register.File != TGSI_FILE_INPUT &&
+               inst->Src[index].Register.File != TGSI_FILE_OUTPUT) ||
                ctx->src[index].neg || ctx->src[index].abs;
 }