radv: Actually fail custom border color sampler creation.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Fixes: a52483d9e7 ("radv: fix capture/replay with sampler border color")
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37787>
This commit is contained in:
Hans-Kristian Arntzen 2025-10-09 12:57:18 +02:00 committed by Marge Bot
parent 183ed8046c
commit 2848901722

View file

@ -222,7 +222,7 @@ radv_sampler_init(struct radv_device *device, struct radv_sampler *sampler, cons
sampler->border_color_index = RADV_BORDER_COLOR_COUNT;
if (vk_border_color_is_custom(border_color)) {
uint32_t border_color_index = 0;
uint32_t border_color_index = RADV_BORDER_COLOR_COUNT;
bool request_index = false;
VkResult result;