zink: use outputs_written mask to detect edge flag usage

fixes lowered io

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28466>
This commit is contained in:
Mike Blumenkrantz 2024-03-18 13:27:39 -04:00 committed by Marge Bot
parent b8bf82133a
commit 23ce5696d6

View file

@ -5436,7 +5436,7 @@ zink_shader_create(struct zink_screen *screen, struct nir_shader *nir)
bool have_psiz = false;
ret->has_edgeflags = nir->info.stage == MESA_SHADER_VERTEX &&
nir_find_variable_with_location(nir, nir_var_shader_out, VARYING_SLOT_EDGE);
nir->info.outputs_written & VARYING_BIT_EDGE;
ret->sinfo.have_vulkan_memory_model = screen->info.have_KHR_vulkan_memory_model;
ret->sinfo.have_workgroup_memory_explicit_layout = screen->info.have_KHR_workgroup_memory_explicit_layout;