[Mesa-dev] [PATCH] r600g: fix interpolation with clipvertex
Vadim Girlin
vadimgirlin at gmail.com
Mon Jan 23 03:58:31 PST 2012
Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
---
Tested on evergreeen: fixes 5 interpolation tests, no regressions
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 bb6e58a..aaac9b2 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -1002,6 +1002,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++) {
--
1.7.7.5
More information about the mesa-dev
mailing list