zink: use emit_bitcast helper

We already have this helper, so let's use it. It makes the code
*slightly* shorter and easier to follow IMO.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8049>
This commit is contained in:
Erik Faye-Lund 2020-12-10 15:51:08 +01:00 committed by Marge Bot
parent 134df0069f
commit 03ccd3c468
1 changed files with 1 additions and 1 deletions

View File

@ -967,7 +967,7 @@ emit_so_outputs(struct ntv_context *ctx,
result = spirv_builder_emit_vector_shuffle(&ctx->builder, type,
src, src,
components, so_output.num_components);
result = emit_unop(ctx, SpvOpBitcast, type, result);
result = emit_bitcast(ctx, type, result);
} else {
/* for arrays, we need to manually extract each desired member
* and re-pack them into the desired output type