mesa/src/amd
Victor Hermann Chiletto 28264dd5c9 radv: always check entry count in descriptor pool when allocating
Previously this check was skipped for pools with
VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT unset, but after
96a240e1 we need to check this otherwise we risk overflowing
radv_descriptor_pool::entries into the host memory base

This fixes a crash to desktop when launching Dota 2, which overallocates
descriptor sets and expects an error to allocate another descriptor pool

Fixes: 96a240e176 ("radv: fix memory leak of descriptor set layout")

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16490>
(cherry picked from commit 580046e49f)
2022-05-13 10:06:04 -07:00
..
addrlib amd: update addrlib 2022-03-01 17:03:00 +00:00
ci radv/ci: update CI lists against CTS 1.3.1.1 2022-04-05 09:13:41 +02:00
common ac/nir: Do not set cursor in try_extract_additions 2022-05-03 09:41:32 -07:00
compiler aco/ra: fix vgpr_limit 2022-05-04 16:04:09 -07:00
drm-shim r300/r600: Add drm-shim support. 2022-02-02 00:59:08 +00:00
llvm amd: fix ac_build_mbcnt_add in wave32 mode 2022-05-13 10:05:58 -07:00
registers amd: remove the _UMD suffix from register definitions 2022-02-22 11:41:04 +00:00
vulkan radv: always check entry count in descriptor pool when allocating 2022-05-13 10:06:04 -07:00
.clang-format radv: allow holes in inline push constants 2022-04-12 11:44:30 +00:00
meson.build r300/r600: Add drm-shim support. 2022-02-02 00:59:08 +00:00