Skip to content

Commit 9374fbf

Browse files
layers: More misc fixes found
1 parent 9760732 commit 9374fbf

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

layers/state_tracker/shader_module.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2436,8 +2436,12 @@ vvl::unordered_set<VkDescriptorType> ResourceInterfaceVariable::GetAllDescriptor
24362436
types.insert(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER);
24372437
} else if (is_sampler) {
24382438
types.insert(VK_DESCRIPTOR_TYPE_SAMPLER);
2439+
// See PositivePipeline.CombinedImageSamplerConsumedAsSampler
2440+
types.insert(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER);
24392441
} else if (is_sampled_image) {
24402442
types.insert(VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE);
2443+
// See PositivePipeline.CombinedImageSamplerConsumedAsImage
2444+
types.insert(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER);
24412445
} else if (is_storage_buffer) {
24422446
types.insert(VK_DESCRIPTOR_TYPE_STORAGE_BUFFER);
24432447
types.insert(VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC);
@@ -2455,11 +2459,16 @@ vvl::unordered_set<VkDescriptorType> ResourceInterfaceVariable::GetAllDescriptor
24552459
types.insert(VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT);
24562460
} else if (is_storage_tensor) {
24572461
types.insert(VK_DESCRIPTOR_TYPE_TENSOR_ARM);
2458-
} else if (is_acceleration_structure || is_acceleration_structure_nv) {
2462+
} else if (is_acceleration_structure) {
24592463
types.insert(VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR);
24602464
if (is_partitioned_acceleration_structure) {
24612465
types.insert(VK_DESCRIPTOR_TYPE_PARTITIONED_ACCELERATION_STRUCTURE_NV);
24622466
}
2467+
} else if (is_acceleration_structure_nv) {
2468+
types.insert(VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV);
2469+
if (is_partitioned_acceleration_structure) {
2470+
types.insert(VK_DESCRIPTOR_TYPE_PARTITIONED_ACCELERATION_STRUCTURE_NV);
2471+
}
24632472
}
24642473

24652474
assert(!types.empty() || IsHeap());

0 commit comments

Comments
 (0)