mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-12 07:50:22 +01:00
var->data.binding is only set for vulkan drivers (though it also will get incremented after nir_lower_uniforms_to_ubo), so we have to generate our own values here. to do this, we iterate backwards over the ubos to account for the "first" ubos being at the end of the list, and we must also ensure that we remap the buffer index correctly based on whether we're running our nir_lower_uniforms_to_ubo pass note that running nir_lower_uniforms_to_ubo unconditionally would require us to add a number of checks in this patch for !shader->num_uniforms in order to properly adjust to the altered instructions which become 1-indexed instead of 0-indexed when this pass is run with no uniforms present Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6981> |
||
|---|---|---|
| .. | ||
| amd | ||
| android_stub | ||
| broadcom | ||
| compiler | ||
| drm-shim | ||
| egl | ||
| etnaviv | ||
| freedreno | ||
| gallium | ||
| gbm | ||
| getopt | ||
| glx | ||
| gtest | ||
| hgl | ||
| imgui | ||
| intel | ||
| loader | ||
| mapi | ||
| mesa | ||
| panfrost | ||
| util | ||
| virtio | ||
| vulkan | ||
| meson.build | ||
| SConscript | ||