mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 17:10:11 +01:00
r600/sfn: assign window_space_position in shader state
This fixes a few tests out of the nin-tests test suite.
Fixes: 79ca456b48 ("r600/sfn: rewrite NIR backend")
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22778>
This commit is contained in:
parent
bbd265b8e8
commit
f092f548cb
1 changed files with 4 additions and 0 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue