mesa/src
Bas Nieuwenhuizen 83c92a48b7 vulkan: Fix descriptor set creation with zero bindings.
MAX2(count * struct size, 1) results in 1 for count=0, not the size of a struct.

Since this MAX only seems to exist so we can keep using NULL for error reporting,
just refactor to return a VkResult.

Fixes: ad241b15a9 ("vk: consolidate dynamic descriptor binding sorting")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4522
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9880>
2021-03-29 23:32:50 +00:00
..
amd vulkan: Fix descriptor set creation with zero bindings. 2021-03-29 23:32:50 +00:00
android_stub android: add some more stub functions for cross compilation 2021-03-25 06:06:16 +00:00
broadcom vulkan: Fix descriptor set creation with zero bindings. 2021-03-29 23:32:50 +00:00
compiler nir: Update clip_distance_array_size in clip lowering. 2021-03-26 20:51:18 +00:00
drm-shim drm-shim: report support for timeline semaphores 2021-02-09 21:08:52 +00:00
egl Revert "egl: Don't add hardware device if there is no render node v2." 2021-03-26 10:32:31 +00:00
etnaviv etnaviv/drm: only print out fence error on non timeout 2021-03-29 11:54:59 +02:00
freedreno vulkan: Fix descriptor set creation with zero bindings. 2021-03-29 23:32:50 +00:00
gallium vulkan: Fix descriptor set creation with zero bindings. 2021-03-29 23:32:50 +00:00
gbm egl: fix software flag in _eglAddDevice call on DRM 2021-03-26 10:32:31 +00:00
getopt scons: Remove. 2021-03-20 10:38:55 +00:00
glx glx/drisw: Implement WaitX and WaitGL 2021-03-19 15:43:49 +00:00
gtest gtest: Update to 1.10.0 2020-04-20 11:57:11 +00:00
hgl hgl: Major refactor and cleanup 2021-01-09 20:51:35 -06:00
imgui
intel intel/fs/copy_prop: check stride constraints with actual final type 2021-03-29 22:14:45 +00:00
loader scons: Remove. 2021-03-20 10:38:55 +00:00
mapi scons: Remove. 2021-03-20 10:38:55 +00:00
mesa st/glthread: allow for invalid L3 cache id. 2021-03-29 08:31:09 +00:00
microsoft nir: port fp16 casting code from dxil 2021-03-22 12:16:59 +10:00
nouveau nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
panfrost panfrost: Move the blend shader cache at the device level 2021-03-29 06:53:50 +00:00
util util: rework AMD cpu L3 cache affinity code. 2021-03-29 08:31:09 +00:00
virtio virgl: implement support for PIPE_CAP_STRING_MARKER 2021-03-09 13:57:05 +00:00
vulkan vulkan: Fix descriptor set creation with zero bindings. 2021-03-29 23:32:50 +00:00
meson.build nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00