From b672814fe53885e94ed1ed6761d8ce3ed337554d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20Ondra=C4=8Dka?= Date: Thu, 31 Mar 2022 16:33:50 +0200 Subject: [PATCH] r300: don't assume position is always OUT[0] in rc_copy_output MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Pavel Ondračka Part-of: --- src/gallium/drivers/r300/r300_vs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r300/r300_vs.c b/src/gallium/drivers/r300/r300_vs.c index 365ae21..6e9c4cd 100644 --- a/src/gallium/drivers/r300/r300_vs.c +++ b/src/gallium/drivers/r300/r300_vs.c @@ -259,7 +259,7 @@ void r300_translate_vertex_shader(struct r300_context *r300, /* Insert the WPOS output. */ if (vs->wpos) - rc_copy_output(&compiler.Base, 0, vs->outputs.wpos); + rc_copy_output(&compiler.Base, vs->outputs.pos, vs->outputs.wpos); /* Invoke the compiler */ r3xx_compile_vertex_program(&compiler); -- 2.7.4