radv: advertise VK_KHR_pipeline_binary

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30812>
This commit is contained in:
Samuel Pitoiset 2024-04-15 11:11:50 +02:00 committed by Marge Bot
parent b4d6d88c6b
commit 8802612458
3 changed files with 13 additions and 0 deletions

View file

@ -530,6 +530,7 @@ Khronos extensions that are not part of any Vulkan version:
VK_KHR_maintenance6 DONE (anv, lvp, nvk, radv, tu) VK_KHR_maintenance6 DONE (anv, lvp, nvk, radv, tu)
VK_KHR_maintenance7 DONE (anv, lvp, nvk, radv) VK_KHR_maintenance7 DONE (anv, lvp, nvk, radv)
VK_KHR_performance_query DONE (anv, radv/gfx10.3+, tu, v3dv) VK_KHR_performance_query DONE (anv, radv/gfx10.3+, tu, v3dv)
VK_KHR_pipeline_binary DONE (radv)
VK_KHR_pipeline_executable_properties DONE (anv, nvk, panvk, hasvk, radv, tu, v3dv) VK_KHR_pipeline_executable_properties DONE (anv, nvk, panvk, hasvk, radv, tu, v3dv)
VK_KHR_pipeline_library DONE (anv, lvp, nvk, panvk, radv, tu, vn) VK_KHR_pipeline_library DONE (anv, lvp, nvk, panvk, radv, tu, vn)
VK_KHR_present_wait DONE (anv, nvk, radv, tu, x11/display) VK_KHR_present_wait DONE (anv, nvk, radv, tu, x11/display)

View file

@ -8,3 +8,4 @@ VK_KHR_maintenance7 on nvk
VK_KHR_dynamic_rendering_local_read on nvk VK_KHR_dynamic_rendering_local_read on nvk
GL_ARB_timer_query on Panfrost GL_ARB_timer_query on Panfrost
GL_EXT_disjoint_timer_query on Panfrost GL_EXT_disjoint_timer_query on Panfrost
VK_KHR_pipeline_binary on RADV

View file

@ -527,6 +527,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device
.KHR_map_memory2 = true, .KHR_map_memory2 = true,
.KHR_multiview = true, .KHR_multiview = true,
.KHR_performance_query = radv_perf_query_supported(pdev), .KHR_performance_query = radv_perf_query_supported(pdev),
.KHR_pipeline_binary = true,
.KHR_pipeline_executable_properties = true, .KHR_pipeline_executable_properties = true,
.KHR_pipeline_library = !pdev->use_llvm, .KHR_pipeline_library = !pdev->use_llvm,
/* Hide these behind dri configs for now since we cannot implement it reliably on /* Hide these behind dri configs for now since we cannot implement it reliably on
@ -1236,6 +1237,9 @@ radv_physical_device_get_features(const struct radv_physical_device *pdev, struc
/* VK_KHR_video_maintenance1 */ /* VK_KHR_video_maintenance1 */
.videoMaintenance1 = true, .videoMaintenance1 = true,
/* VK_KHR_pipeline_binary */
.pipelineBinaries = true,
}; };
} }
@ -1950,6 +1954,13 @@ radv_get_physical_device_properties(struct radv_physical_device *pdev)
p->maxDescriptorSetUpdateAfterBindTotalUniformBuffersDynamic = MAX_DYNAMIC_UNIFORM_BUFFERS; p->maxDescriptorSetUpdateAfterBindTotalUniformBuffersDynamic = MAX_DYNAMIC_UNIFORM_BUFFERS;
p->maxDescriptorSetUpdateAfterBindTotalStorageBuffersDynamic = MAX_DYNAMIC_STORAGE_BUFFERS; p->maxDescriptorSetUpdateAfterBindTotalStorageBuffersDynamic = MAX_DYNAMIC_STORAGE_BUFFERS;
p->maxDescriptorSetUpdateAfterBindTotalBuffersDynamic = MAX_DYNAMIC_BUFFERS; p->maxDescriptorSetUpdateAfterBindTotalBuffersDynamic = MAX_DYNAMIC_BUFFERS;
/* VK_KHR_pipeline_binary */
p->pipelineBinaryInternalCache = true;
p->pipelineBinaryInternalCacheControl = true;
p->pipelineBinaryPrefersInternalCache = false;
p->pipelineBinaryPrecompiledInternalCache = false;
p->pipelineBinaryCompressedData = false;
} }
static VkResult static VkResult