summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_program.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-08-26 08:47:24 -0700
committerEric Anholt <eric@anholt.net>2010-08-26 09:53:01 -0700
commit9629dbf4f2adc42bbc99f3c830be288a7b150f6a (patch)
tree187233c80b6a705d586649df78ef816ee7a385d3 /src/mesa/drivers/dri/i965/brw_program.c
parentb72c85df5567713293452db6b60c537cd913dcc1 (diff)
i965: Add support for destination RelAddr writes in the VS.
Fixes: glsl-vs-varying-array
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_program.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_program.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c
index d5b7bee1b1..7e7cd8e696 100644
--- a/src/mesa/drivers/dri/i965/brw_program.c
+++ b/src/mesa/drivers/dri/i965/brw_program.c
@@ -195,10 +195,11 @@ static GLboolean brwProgramStringNotify( GLcontext *ctx,
}
}
- if (prog->Instructions[i].DstReg.RelAddr &&
+ if (target == GL_FRAGMENT_PROGRAM_ARB &&
+ prog->Instructions[i].DstReg.RelAddr &&
prog->Instructions[i].DstReg.File == PROGRAM_OUTPUT) {
shader_error(ctx, prog,
- "Variable indexing of shader outputs unsupported\n");
+ "Variable indexing of FS outputs unsupported\n");
return GL_FALSE;
}
if (target == GL_FRAGMENT_PROGRAM_ARB) {