mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 07:58:07 +02:00
zink: unset explicit_xfb_buffer for non-xfb shaders
this catches duplicated xfb when generated geometry shaders are used cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25914>
This commit is contained in:
parent
87e3720b66
commit
df74ea7717
1 changed files with 4 additions and 1 deletions
|
|
@ -2776,8 +2776,11 @@ zink_compiler_assign_io(struct zink_screen *screen, nir_shader *producer, nir_sh
|
|||
optimize_nir(producer, NULL, true);
|
||||
}
|
||||
}
|
||||
if (consumer->info.stage != MESA_SHADER_FRAGMENT)
|
||||
if (consumer->info.stage != MESA_SHADER_FRAGMENT) {
|
||||
producer->info.has_transform_feedback_varyings = false;
|
||||
nir_foreach_shader_out_variable(var, producer)
|
||||
var->data.explicit_xfb_buffer = false;
|
||||
}
|
||||
if (producer->info.stage == MESA_SHADER_TESS_CTRL) {
|
||||
/* never assign from tcs -> tes, always invert */
|
||||
nir_foreach_variable_with_modes(var, consumer, nir_var_shader_in)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue