mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
zink: don't run update_so_info if shader has no outputs
this probably means all outputs were eliminated by the linker, but in any case it's not going to do anything fixes spec@glsl-1.50@execution@interface-blocks-api-access-members Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22725>
This commit is contained in:
parent
bf746b5921
commit
8650aa0560
1 changed files with 1 additions and 1 deletions
|
|
@ -5083,7 +5083,7 @@ zink_shader_create(struct zink_screen *screen, struct nir_shader *nir,
|
|||
if (!nir->info.internal)
|
||||
nir_foreach_shader_out_variable(var, nir)
|
||||
var->data.explicit_xfb_buffer = 0;
|
||||
if (so_info && so_info->num_outputs)
|
||||
if (so_info && so_info->num_outputs && nir->info.outputs_written)
|
||||
update_so_info(ret, nir, so_info, nir->info.outputs_written, have_psiz);
|
||||
else if (have_psiz) {
|
||||
bool have_fake_psiz = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue