nak: Disable lower_image_size_to_txs for NAK

We don't need it for NAK and it actually screws up cubes.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
Faith Ekstrand 2023-09-06 20:31:20 -05:00 committed by Marge Bot
parent 86c7bcc9e3
commit ab7a4b531d

View file

@ -580,8 +580,10 @@ nvk_lower_nir(struct nvk_device *dev, nir_shader *nir,
NIR_PASS(_, nir, nir_lower_explicit_io, nir_var_mem_push_const,
nir_address_format_32bit_offset);
NIR_PASS(_, nir, nir_shader_intrinsics_pass, lower_image_size_to_txs,
nir_metadata_block_index | nir_metadata_dominance, NULL);
if (!use_nak(nir->info.stage)) {
NIR_PASS(_, nir, nir_shader_intrinsics_pass, lower_image_size_to_txs,
nir_metadata_block_index | nir_metadata_dominance, NULL);
}
/* Lower non-uniform access before lower_descriptors */
enum nir_lower_non_uniform_access_type lower_non_uniform_access_types =