The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/vk: Init vk bundle with shaderImageGatherExtended enabled if supported

authored by

Fernando Velazquez Innella and committed by
Jakob Bornecrantz
151e1aaf 9747ca14

+7
+5
src/xrt/auxiliary/vk/vk_bundle_init.c
··· 1045 1045 #ifdef VK_KHR_timeline_semaphore 1046 1046 CHECK(timeline_semaphore, timeline_semaphore_info.timelineSemaphore); 1047 1047 #endif 1048 + CHECK(shader_image_gather_extended, physical_device_features.features.shaderImageGatherExtended); 1049 + 1048 1050 CHECK(shader_storage_image_write_without_format, 1049 1051 physical_device_features.features.shaderStorageImageWriteWithoutFormat); 1050 1052 ··· 1054 1056 VK_DEBUG(vk, 1055 1057 "Features:" 1056 1058 "\n\tnull_descriptor: %i" 1059 + "\n\tshader_image_gather_extended: %i" 1057 1060 "\n\tshader_storage_image_write_without_format: %i" 1058 1061 "\n\ttimeline_semaphore: %i", // 1059 1062 device_features->null_descriptor, // 1063 + device_features->shader_image_gather_extended, // 1060 1064 device_features->shader_storage_image_write_without_format, // 1061 1065 device_features->timeline_semaphore); 1062 1066 } ··· 1176 1180 #endif 1177 1181 1178 1182 VkPhysicalDeviceFeatures enabled_features = { 1183 + .shaderImageGatherExtended = device_features.shader_image_gather_extended, 1179 1184 .shaderStorageImageWriteWithoutFormat = device_features.shader_storage_image_write_without_format, 1180 1185 }; 1181 1186
+1
src/xrt/auxiliary/vk/vk_helpers.h
··· 836 836 */ 837 837 struct vk_device_features 838 838 { 839 + bool shader_image_gather_extended; 839 840 bool shader_storage_image_write_without_format; 840 841 bool null_descriptor; 841 842 bool timeline_semaphore;
+1
src/xrt/compositor/util/comp_vulkan.c
··· 274 274 const bool only_compute_queue = vk_args->only_compute_queue; 275 275 276 276 struct vk_device_features device_features = { 277 + .shader_image_gather_extended = true, 277 278 .shader_storage_image_write_without_format = true, 278 279 .null_descriptor = only_compute_queue, 279 280 .timeline_semaphore = vk_args->timeline_semaphore,