diff options
author | Vadim Girlin <[email protected]> | 2012-01-23 15:58:31 +0400 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-01-24 08:24:58 +0000 |
commit | 5a84cc4ebcc99fb029d5f855e8afa11fab09266a (patch) | |
tree | 45f54da4fcdcac8cd5fa58abdc1ca022ca468f1c /src/gallium/drivers/r600/r600_shader.c | |
parent | aed5c8299fe47b8e1728f8140d069bc89d3fa947 (diff) |
r600g: fix interpolation with clipvertex
Signed-off-by: Vadim Girlin <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index aac1cd3afb2..46a9723bec2 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -979,6 +979,9 @@ static int r600_shader_from_tgsi(struct r600_pipe_context * rctx, struct r600_pi shader->output[noutput].gpr = ctx.temp_reg+1; noutput++; + /* reset spi_sid for clipvertex output to avoid confusing spi */ + shader->output[ctx.cv_output].spi_sid = 0; + shader->clip_dist_write = 0xFF; for (i = 0; i < 8; i++) { |