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:
committed by
Marge Bot
parent
bf746b5921
commit
8650aa0560
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user