mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
vulkan/runtime: only set shader subgroup info if non-zero
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Fixes: 67c4b762a5 ("vulkan: setup max_subgroup_size for drivers without var...")
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37533>
This commit is contained in:
parent
e9910fa955
commit
6e3573127c
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ vk_set_subgroup_size(struct vk_device *device,
|
|||
shader->info.min_subgroup_size = req_subgroup_size;
|
||||
} else if (allow_varying || spirv_version >= 0x10600) {
|
||||
/* Starting with SPIR-V 1.6, varying subgroup size is the default */
|
||||
} else {
|
||||
} else if (properties->subgroupSize) {
|
||||
shader->info.api_subgroup_size = properties->subgroupSize;
|
||||
shader->info.max_subgroup_size = properties->subgroupSize;
|
||||
if (require_full) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue