mesa/src
Mike Blumenkrantz 1c8e80a07b zink: correctly set up ubo bindings and buffer indices
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>
2020-10-02 13:07:42 +00:00
..
amd aco/tests: add disassembler tests to reproduce the add3+clamp crash 2020-10-02 14:21:33 +02:00
android_stub mesa: Make the android_stub be a set of non-installed shared libraries. 2020-09-22 17:09:22 +00:00
broadcom nir: Split NIR_INTRINSIC_TYPE into separate src/dest indices 2020-10-01 18:36:53 +00:00
compiler nir: Add a pass to lower vec3s to vec4s 2020-10-02 07:30:49 +00:00
drm-shim drm-shim: Fix unused variable warnings from asserts in release build. 2020-08-28 22:45:08 +00:00
egl egl/android: HAVE_DRM_GRALLOC path fixes (v2) 2020-09-07 23:33:15 +02:00
etnaviv etnaviv: replace all dup() with os_dupfd_cloexec() 2020-06-18 02:09:56 +00:00
freedreno turnip: don't initialize GRAS_LRZ_CNTL/RB_LRZ_CNTL tu6_init_hw() 2020-10-02 03:46:47 +00:00
gallium zink: correctly set up ubo bindings and buffer indices 2020-10-02 13:07:42 +00:00
gbm gallium: rename pipe_transfer_usage -> pipe_map_flags 2020-09-22 03:20:54 +00:00
getopt
glx glx: Allow depth-30 pbuffers to work without a depth-30 pixmap format 2020-09-17 14:28:24 -04:00
gtest gtest: Update to 1.10.0 2020-04-20 11:57:11 +00:00
hgl scons: Prune out unnecessary targets. 2020-03-30 13:38:01 +00:00
imgui
intel intel/fs: NoMask initialize the address register for shuffles 2020-10-02 00:42:56 +00:00
loader glx/dri3: Implement GLX_EXT_swap_control_tear 2020-09-10 14:48:19 -04:00
mapi src/mesa: add GL_NV_half_float extension support (v2) 2020-08-11 19:55:22 +00:00
mesa Revert F16C series (MR 6774) 2020-10-01 21:08:12 +00:00
panfrost pan/mdg: map uabs_i/usub to i/uabsdiff 2020-10-02 12:12:50 +00:00
util Revert F16C series (MR 6774) 2020-10-01 21:08:12 +00:00
virtio virgl: update protocol headers 2020-08-21 18:38:44 +00:00
vulkan vulkan/wsi/display: add option for display fence to signal syncobj 2020-09-24 13:20:00 +00:00
meson.build meson: don't advertise TLS support if glx wasn't build with it 2020-08-31 09:14:57 +00:00
SConscript driconf: drop now unused translation facility 2020-06-22 21:50:12 +00:00