Module: Mesa Branch: main Commit: f092f548cb8202614c86b47ecd8906d16628ce24 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f092f548cb8202614c86b47ecd8906d16628ce24
Author: Gert Wollny <[email protected]> Date: Mon May 1 13:03:00 2023 +0200 r600/sfn: assign window_space_position in shader state This fixes a few tests out of the nin-tests test suite. Fixes: 79ca456b4837 ("r600/sfn: rewrite NIR backend") Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22778> --- src/gallium/drivers/r600/sfn/sfn_nir.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/r600/sfn/sfn_nir.cpp b/src/gallium/drivers/r600/sfn/sfn_nir.cpp index 285da2a5d77..f35a62f1bf0 100644 --- a/src/gallium/drivers/r600/sfn/sfn_nir.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_nir.cpp @@ -1084,6 +1084,10 @@ r600_shader_from_nir(struct r600_context *rctx, return -1; } + if (sh->info.stage == MESA_SHADER_VERTEX) { + pipeshader->shader.vs_position_window_space = + sh->info.vs.window_space_position; + } if (sh->info.stage == MESA_SHADER_FRAGMENT) pipeshader->shader.ps_conservative_z =
