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:
Mike Blumenkrantz 2022-05-27 16:16:04 -04:00 committed by Marge Bot
parent eb0d571ce4
commit 591da8cf5d

View file

@ -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");