spirv: change the resource/sampler builtins variable mode

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40768>
This commit is contained in:
Samuel Pitoiset 2026-04-03 13:11:27 +02:00 committed by Marge Bot
parent 457eac7d66
commit 7dbef85365

View file

@ -1321,11 +1321,11 @@ vtn_get_builtin_location(struct vtn_builder *b,
case SpvBuiltInSamplerHeapEXT:
*location = SYSTEM_VALUE_SAMPLER_HEAP_PTR;
set_mode_system_value(b, mode);
*mode = nir_var_sampler_heap;
break;
case SpvBuiltInResourceHeapEXT:
*location = SYSTEM_VALUE_RESOURCE_HEAP_PTR;
set_mode_system_value(b, mode);
*mode = nir_var_resource_heap;
break;
default: