zink: bitcast extracted streamout components to uint before creating uvec

spirv can't create a uvec from float components, so pre-cast here

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17404>
This commit is contained in:
Mike Blumenkrantz 2022-07-13 22:18:27 -04:00 committed by Marge Bot
parent c189b7f585
commit 924145c7b5
1 changed files with 1 additions and 0 deletions

View File

@ -1651,6 +1651,7 @@ emit_so_outputs(struct ntv_context *ctx,
v = 1;
components[idx++] = spirv_builder_emit_composite_extract(&ctx->builder, get_uvec_type(ctx, 32, 1), val, &v, 1);
} else {
components[idx] = emit_bitcast(ctx, spirv_builder_type_uint(&ctx->builder, 32), components[idx]);
idx++;
}
}