Mesa (staging/19.1): anv: Bump maxComputeWorkgroupSize
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Sep 9 11:31:42 UTC 2019
Module: Mesa
Branch: staging/19.1
Commit: 82edaa5a418656a5de840b4894f0006d59b6b9a5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=82edaa5a418656a5de840b4894f0006d59b6b9a5
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Tue Sep 3 10:00:23 2019 -0500
anv: Bump maxComputeWorkgroupSize
Fixes: 9a129510f56f "anv: Bump maxComputeWorkgroupInvocations"
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111552
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
(cherry picked from commit 3b1a7e5333335900293935399ce49a67562eafc7)
---
src/intel/vulkan/anv_device.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index ab8dee46a86..8ec7df2a45d 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1200,6 +1200,8 @@ void anv_GetPhysicalDeviceProperties(
pdevice->has_a64_buffer_access ? UINT32_MAX :
MAX_BINDING_TABLE_SIZE - MAX_RTS;
+ const uint32_t max_workgroup_size = 32 * devinfo->max_cs_threads;
+
VkSampleCountFlags sample_counts =
isl_device_get_sample_counts(&pdevice->isl_dev);
@@ -1258,11 +1260,11 @@ void anv_GetPhysicalDeviceProperties(
.maxFragmentCombinedOutputResources = 8,
.maxComputeSharedMemorySize = 32768,
.maxComputeWorkGroupCount = { 65535, 65535, 65535 },
- .maxComputeWorkGroupInvocations = 32 * devinfo->max_cs_threads,
+ .maxComputeWorkGroupInvocations = max_workgroup_size,
.maxComputeWorkGroupSize = {
- 16 * devinfo->max_cs_threads,
- 16 * devinfo->max_cs_threads,
- 16 * devinfo->max_cs_threads,
+ max_workgroup_size,
+ max_workgroup_size,
+ max_workgroup_size,
},
.subPixelPrecisionBits = 8,
.subTexelPrecisionBits = 8,
More information about the mesa-commit
mailing list