mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
zink: always create gfx shader objects with 5 descriptor layouts
these are separate shader objects fixes VUID-vkCmdDraw*-None-08879 cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36057>
This commit is contained in:
parent
39f45f2a04
commit
d6e89787ed
1 changed files with 1 additions and 1 deletions
|
|
@ -3351,7 +3351,7 @@ zink_shader_spirv_compile(struct zink_screen *screen, struct zink_shader *zs, st
|
|||
sci.setLayoutCount = pg->num_dsl;
|
||||
sci.pSetLayouts = pg->dsl;
|
||||
} else {
|
||||
sci.setLayoutCount = zs->info.stage + 1;
|
||||
sci.setLayoutCount = zs->info.stage == MESA_SHADER_COMPUTE ? 1 : ZINK_GFX_SHADER_COUNT;
|
||||
dsl[zs->info.stage] = zs->precompile.dsl;;
|
||||
sci.pSetLayouts = dsl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue