radv: do not hardcode the combined image/sampler offset in the db path

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36762>
This commit is contained in:
Samuel Pitoiset 2025-08-13 16:45:06 +02:00 committed by Marge Bot
parent f2b5446cc4
commit b6d093c4f5

View file

@ -136,7 +136,7 @@ radv_GetDescriptorEXT(VkDevice _device, const VkDescriptorGetInfoEXT *pDescripto
} else {
radv_write_image_descriptor(pDescriptor, 64, pDescriptorInfo->type,
pDescriptorInfo->data.pCombinedImageSampler);
radv_write_sampler_descriptor((uint32_t *)pDescriptor + 20,
radv_write_sampler_descriptor((uint32_t *)pDescriptor + RADV_COMBINED_IMAGE_SAMPLER_DESC_SAMPLER_OFFSET / 4,
pDescriptorInfo->data.pCombinedImageSampler->sampler);
}
} else {