Skip to content
Snippets Groups Projects
Commit 4d8b97ba authored by Timur Kristóf's avatar Timur Kristóf
Browse files

radeonsi/nir: Only set window_space_position for vertex shaders.


By mistake, this was previously set for all shaders.

Signed-Off-By: default avatarTimur Kristóf <timur.kristof@gmail.com>
parent 8b010f35
No related branches found
No related tags found
No related merge requests found
......@@ -343,8 +343,10 @@ void si_nir_scan_shader(const struct nir_shader *nir,
info->properties[TGSI_PROPERTY_NEXT_SHADER] =
pipe_shader_type_from_mesa(nir->info.next_stage);
info->properties[TGSI_PROPERTY_VS_WINDOW_SPACE_POSITION] =
nir->info.vs.window_space_position;
if (nir->info.stage == MESA_SHADER_VERTEX) {
info->properties[TGSI_PROPERTY_VS_WINDOW_SPACE_POSITION] =
nir->info.vs.window_space_position;
}
if (nir->info.stage == MESA_SHADER_TESS_CTRL) {
info->properties[TGSI_PROPERTY_TCS_VERTICES_OUT] =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment