mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
lvp: fix silly casting for sampler desc updates
it worked out because the offset was 0 but it was semantically wrong and rather confusing Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28682>
This commit is contained in:
parent
9b300bb662
commit
8270ece6c0
1 changed files with 2 additions and 2 deletions
|
|
@ -860,8 +860,8 @@ lvp_descriptor_set_update_with_template(VkDevice _device, VkDescriptorSet descri
|
|||
idx *= bind_layout->stride;
|
||||
switch (entry->descriptorType) {
|
||||
case VK_DESCRIPTOR_TYPE_SAMPLER: {
|
||||
LVP_FROM_HANDLE(lvp_sampler, sampler,
|
||||
*(VkSampler *)pSrc);
|
||||
VkDescriptorImageInfo *info = (VkDescriptorImageInfo *)pSrc;
|
||||
LVP_FROM_HANDLE(lvp_sampler, sampler, info->sampler);
|
||||
|
||||
for (unsigned k = 0; k < bind_layout->stride; k++) {
|
||||
desc[idx + k].sampler = sampler->desc.sampler;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue