mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +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
d73e48b63f
commit
1b093b567f
1 changed files with 2 additions and 2 deletions
|
|
@ -2365,7 +2365,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;
|
||||
|
|
@ -2376,7 +2376,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