Module: Mesa Branch: main Commit: 878ca753354bc1cf3edf30c6f81fad6aed445153 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=878ca753354bc1cf3edf30c6f81fad6aed445153
Author: Marcin Ĺšlusarz <marcin.slus...@intel.com> Date: Wed Aug 17 16:31:33 2022 +0200 anv: fix minSubgroupSize for xe2 Reviewed-by: Caio Oliveira <caio.olive...@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26437> --- src/intel/vulkan/anv_device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index f92f6f926dd..272a60005bb 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -2093,7 +2093,10 @@ anv_get_physical_device_properties_1_3(struct anv_physical_device *pdevice, { assert(p->sType == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_PROPERTIES); - p->minSubgroupSize = 8; + if (pdevice->info.ver >= 20) + p->minSubgroupSize = 16; + else + p->minSubgroupSize = 8; p->maxSubgroupSize = 32; p->maxComputeWorkgroupSubgroups = pdevice->info.max_cs_workgroup_threads; p->requiredSubgroupSizeStages = VK_SHADER_STAGE_COMPUTE_BIT |