intel: switch to new subgroup size info

Reviewed-by: Iván Briano <ivan.briano@intel.com>
Acked-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37258>
This commit is contained in:
Georg Lehmann
2025-09-09 18:24:08 +02:00
committed by Marge Bot
parent 04d3b3bde5
commit 79d02047b8
9 changed files with 44 additions and 108 deletions
+2 -5
View File
@@ -30,11 +30,8 @@
unsigned
brw_required_dispatch_width(const struct shader_info *info)
{
if ((int)info->subgroup_size >= (int)SUBGROUP_SIZE_REQUIRE_8) {
/* These enum values are expressly chosen to be equal to the subgroup
* size that they require.
*/
return (unsigned)info->subgroup_size;
if (info->min_subgroup_size == info->max_subgroup_size) {
return info->max_subgroup_size;
} else {
return 0;
}