v3dv was the only user and it no longer requires this.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24396>
/* Lower image_atomic(_swap) for all dimensions. Implied by lower_image. */
bool lower_image_atomic;
- /* Subtract one from the UBO index */
- bool skip_ubo_0;
-
/* Vulkan's robustBufferAccess feature is only concerned with buffers that
* are bound through descriptor sets, so shared memory is not included, but
* it may be useful to enable this for debugging.
nir_ssa_def *index = instr->src[0].ssa;
if (instr->intrinsic == nir_intrinsic_load_ubo) {
- if (opts->skip_ubo_0)
- index = nir_iadd_imm(b, index, -1);
-
size = nir_get_ubo_size(b, 32, index);
} else {
size = nir_get_ssbo_size(b, index);