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:
parent
134df0069f
commit
03ccd3c468
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue