mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
radeonsi: use shader_info::next_stage correctly
Separate shaders have next_stage == MESA_SHADER_NONE. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35529>
This commit is contained in:
parent
30676319c7
commit
404d242809
1 changed files with 3 additions and 2 deletions
|
|
@ -3286,13 +3286,14 @@ static void si_parse_next_shader_property(nir_shader *nir, union si_shader_key *
|
|||
* assume that it's a HW LS. (the next shader is TCS)
|
||||
* This heuristic is needed for separate shader objects.
|
||||
*/
|
||||
if (!writes_position && !nir->xfb_info)
|
||||
if (next_shader == MESA_SHADER_NONE && !writes_position && !nir->xfb_info)
|
||||
key->ge.as_ls = 1;
|
||||
}
|
||||
break;
|
||||
|
||||
case MESA_SHADER_TESS_EVAL:
|
||||
if (next_shader == MESA_SHADER_GEOMETRY || !writes_position)
|
||||
if (next_shader == MESA_SHADER_GEOMETRY ||
|
||||
(next_shader == MESA_SHADER_NONE && !writes_position))
|
||||
key->ge.as_es = 1;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue