Mesa (main): anv: Enable requiredSubgroupSize for Task/Mesh

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Feb 10 23:05:20 UTC 2022


Module: Mesa
Branch: main
Commit: 12b4aad8039e10432a079d93fc44d330905c5dda
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=12b4aad8039e10432a079d93fc44d330905c5dda

Author: Caio Oliveira <caio.oliveira at intel.com>
Date:   Thu Feb 10 11:22:56 2022 -0800

anv: Enable requiredSubgroupSize for Task/Mesh

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14979>

---

 src/intel/vulkan/anv_device.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 32f1e1c070c..94ec33db1ad 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -2175,7 +2175,9 @@ anv_get_physical_device_properties_1_3(struct anv_physical_device *pdevice,
    p->minSubgroupSize = 8;
    p->maxSubgroupSize = 32;
    p->maxComputeWorkgroupSubgroups = pdevice->info.max_cs_workgroup_threads;
-   p->requiredSubgroupSizeStages = VK_SHADER_STAGE_COMPUTE_BIT;
+   p->requiredSubgroupSizeStages = VK_SHADER_STAGE_COMPUTE_BIT |
+                                   VK_SHADER_STAGE_TASK_BIT_NV |
+                                   VK_SHADER_STAGE_MESH_BIT_NV;
 
    p->maxInlineUniformBlockSize = MAX_INLINE_UNIFORM_BLOCK_SIZE;
    p->maxPerStageDescriptorInlineUniformBlocks =



More information about the mesa-commit mailing list