mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
radv: bitcast 16-bit outputs to integers
16-bit outputs are stored as 16-bit floats in the outputs array, so they have to be bitcast. Fixes:b722b29f10('radv: add support for 16bit input/output') Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> (cherry picked from commit64065aa504)
This commit is contained in:
parent
d0f7e6f218
commit
0633c4ef9d
1 changed files with 2 additions and 2 deletions
|
|
@ -2411,7 +2411,7 @@ si_llvm_init_export_args(struct radv_shader_context *ctx,
|
|||
if (is_16bit) {
|
||||
for (unsigned chan = 0; chan < 4; chan++)
|
||||
values[chan] = LLVMBuildZExt(ctx->ac.builder,
|
||||
values[chan],
|
||||
ac_to_integer(&ctx->ac, values[chan]),
|
||||
ctx->ac.i32, "");
|
||||
}
|
||||
break;
|
||||
|
|
@ -2422,7 +2422,7 @@ si_llvm_init_export_args(struct radv_shader_context *ctx,
|
|||
if (is_16bit) {
|
||||
for (unsigned chan = 0; chan < 4; chan++)
|
||||
values[chan] = LLVMBuildSExt(ctx->ac.builder,
|
||||
values[chan],
|
||||
ac_to_integer(&ctx->ac, values[chan]),
|
||||
ctx->ac.i32, "");
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue