zink: emit spirv cap for subgroup vote ops

cc: mesa-stable

Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16757>
(cherry picked from commit aaf0d4490e)
This commit is contained in:
Mike Blumenkrantz 2022-05-27 17:03:29 -04:00 committed by Dylan Baker
parent fbf27641f6
commit 114e48ec5e
2 changed files with 2 additions and 1 deletions

View file

@ -812,7 +812,7 @@
"description": "zink: emit spirv cap for subgroup vote ops",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"because_sha": null
},
{

View file

@ -2635,6 +2635,7 @@ emit_vote(struct ntv_context *ctx, nir_intrinsic_instr *intr)
default:
unreachable("unknown vote intrinsic");
}
spirv_builder_emit_cap(&ctx->builder, SpvCapabilityGroupNonUniformVote);
SpvId result = spirv_builder_emit_vote(&ctx->builder, op, get_src(ctx, &intr->src[0]));
store_dest_raw(ctx, &intr->dest, result);
}