Mesa (main): r300: don't assume position is always OUT[0] in rc_copy_output

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 1 21:24:56 UTC 2022


Module: Mesa
Branch: main
Commit: b672814fe53885e94ed1ed6761d8ce3ed337554d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b672814fe53885e94ed1ed6761d8ce3ed337554d

Author: Pavel Ondračka <pavel.ondracka at gmail.com>
Date:   Thu Mar 31 16:33:50 2022 +0200

r300: don't assume position is always OUT[0] in rc_copy_output

Signed-off-by: Pavel Ondračka <pavel.ondracka at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15677>

---

 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 365ae218869..6e9c4cd65db 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);



More information about the mesa-commit mailing list