tu: Fix descriptor update templates with input attachments

Found via
dEQP-VK.binding_model.descriptorset_random.sets4.noarray.ubolimitlow.sbolimitlow.sampledimglow.outimgonly.noiub.nouab.frag.ialimitlow.0

Fixes: 159a1300ce ("turnip: input attachment descriptor set rework")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6087>
This commit is contained in:
Connor Abbott
2020-07-27 13:17:42 +02:00
committed by Marge Bot
parent 9ece61269d
commit d542bfc306

View File

@@ -1161,8 +1161,7 @@ tu_update_descriptor_set_with_template(
buffer_list, *(VkBufferView *) src);
break;
case VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE:
case VK_DESCRIPTOR_TYPE_STORAGE_IMAGE:
case VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT: {
case VK_DESCRIPTOR_TYPE_STORAGE_IMAGE: {
write_image_descriptor(device, cmd_buffer, ptr, buffer_list,
templ->entry[i].descriptor_type,
src);
@@ -1179,6 +1178,9 @@ tu_update_descriptor_set_with_template(
case VK_DESCRIPTOR_TYPE_SAMPLER:
write_sampler_descriptor(device, ptr, src);
break;
case VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT:
/* nothing in descriptor set - framebuffer state is used instead */
break;
default:
unreachable("unimplemented descriptor type");
break;