mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
zink: require draw params ext/cap in ntv if drawid is used
cc: mesa-stable Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16757>
This commit is contained in:
parent
eb0d571ce4
commit
591da8cf5d
1 changed files with 1 additions and 0 deletions
|
|
@ -3958,6 +3958,7 @@ nir_to_spirv(struct nir_shader *s, const struct zink_shader_info *sinfo, uint32_
|
|||
|
||||
case MESA_SHADER_VERTEX:
|
||||
if (BITSET_TEST(s->info.system_values_read, SYSTEM_VALUE_INSTANCE_ID) ||
|
||||
BITSET_TEST(s->info.system_values_read, SYSTEM_VALUE_DRAW_ID) ||
|
||||
BITSET_TEST(s->info.system_values_read, SYSTEM_VALUE_BASE_INSTANCE) ||
|
||||
BITSET_TEST(s->info.system_values_read, SYSTEM_VALUE_BASE_VERTEX)) {
|
||||
spirv_builder_emit_extension(&ctx.builder, "SPV_KHR_shader_draw_parameters");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue