summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2020-12-10 15:51:08 +0100
committerMarge Bot <eric+marge@anholt.net>2020-12-16 10:37:10 +0000
commit03ccd3c4687ae401353a72a116b0d4f7de560c88 (patch)
tree6b24263a47a7e37e1444272af6f198728d9bbde7
parent134df0069fbc5fb956865c7777ba16663333cb10 (diff)
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>
-rw-r--r--src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
index 09ff563e46b..765ea1cb074 100644
--- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
+++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
@@ -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