mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
anv: Expose CS workgroup sizes based on a maximum of 64 threads
Otherwise, we'll hit asserts in brw_compile_cs.
Fixes: cf12faef61 "intel/compiler: Restrict cs_threads to 64"
Closes: #2835
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4746>
This commit is contained in:
parent
86f67952d3
commit
81ac741f89
1 changed files with 2 additions and 1 deletions
|
|
@ -1412,7 +1412,8 @@ void anv_GetPhysicalDeviceProperties(
|
|||
pdevice->has_bindless_images && pdevice->has_a64_buffer_access
|
||||
? UINT32_MAX : MAX_BINDING_TABLE_SIZE - MAX_RTS - 1;
|
||||
|
||||
const uint32_t max_workgroup_size = 32 * devinfo->max_cs_threads;
|
||||
/* Limit max_threads to 64 for the GPGPU_WALKER command */
|
||||
const uint32_t max_workgroup_size = 32 * MIN2(64, devinfo->max_cs_threads);
|
||||
|
||||
VkSampleCountFlags sample_counts =
|
||||
isl_device_get_sample_counts(&pdevice->isl_dev);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue