Skip to content
Browse files

r600g: fix handling of outputs as TEX addr sources

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>
  • Loading branch information...
1 parent b44c459 commit 192467108b282c19da3b11647a7a802b3d890193 Christian König committed Feb 6, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gallium/drivers/r600/r600_shader.c
View
3 src/gallium/drivers/r600/r600_shader.c
@@ -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;
}

0 comments on commit 1924671

Please sign in to comment.
Something went wrong with that request. Please try again.