mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 09:10:11 +01:00
vulkan: setup max_subgroup_size for drivers without varying/max/min size support
Ensures max_subgroup_size is set to the subgroupSize physical device
property on drivers that don't support VK_EXT_shader_object,
VK_EXT_subgroup_size_control, or Vulkan 1.3.
Fixes: d807f5a351 ("vulkan: set nir subgroup size shader info")
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37477>
This commit is contained in:
parent
2c676a38ea
commit
67c4b762a5
1 changed files with 1 additions and 1 deletions
|
|
@ -122,11 +122,11 @@ vk_set_subgroup_size(struct vk_device *device,
|
|||
/* Starting with SPIR-V 1.6, varying subgroup size is the default */
|
||||
} else {
|
||||
shader->info.api_subgroup_size = properties->subgroupSize;
|
||||
shader->info.max_subgroup_size = properties->subgroupSize;
|
||||
if (require_full) {
|
||||
assert(shader->info.stage == MESA_SHADER_COMPUTE ||
|
||||
shader->info.stage == MESA_SHADER_MESH ||
|
||||
shader->info.stage == MESA_SHADER_TASK);
|
||||
shader->info.max_subgroup_size = properties->subgroupSize;
|
||||
shader->info.min_subgroup_size = properties->subgroupSize;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue