mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 23:30:10 +01:00
glsl: handle xfb resources for spirv before running varying opts
this otherwise breaks lowered io cc: mesa-stable Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28529>
This commit is contained in:
parent
6cadf5cc2d
commit
ba52fb0eca
1 changed files with 1 additions and 1 deletions
|
|
@ -1426,6 +1426,7 @@ gl_nir_link_spirv(const struct gl_constants *consts,
|
|||
if (!prelink_lowering(consts, exts, prog, linked_shader, num_shaders))
|
||||
return false;
|
||||
|
||||
gl_nir_link_assign_xfb_resources(consts, prog);
|
||||
gl_nir_lower_optimize_varyings(consts, prog, true);
|
||||
|
||||
if (!linked_shader[0]->Program->nir->info.io_lowered) {
|
||||
|
|
@ -1459,7 +1460,6 @@ gl_nir_link_spirv(const struct gl_constants *consts,
|
|||
return false;
|
||||
|
||||
gl_nir_link_assign_atomic_counter_resources(consts, prog);
|
||||
gl_nir_link_assign_xfb_resources(consts, prog);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue