diff options
author | Eric Anholt <eric@anholt.net> | 2010-08-26 08:47:24 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-08-26 09:53:01 -0700 |
commit | 9629dbf4f2adc42bbc99f3c830be288a7b150f6a (patch) | |
tree | 187233c80b6a705d586649df78ef816ee7a385d3 /src/mesa/drivers/dri/i965/brw_program.c | |
parent | b72c85df5567713293452db6b60c537cd913dcc1 (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.c | 5 |
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) { |