mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
radv: ensure export arguments are always float
So that the signature is correct and consistent, the inputs to a export intrinsic should always be 32-bit floats. This and the previous commit fixes a large amount crashes from dEQP-VK.spirv_assembly.instruction.graphics.16bit_storage.input_output_int_* tests 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 commit0ca550e01a)
This commit is contained in:
parent
1b093b567f
commit
c7fc61d15b
1 changed files with 1 additions and 5 deletions
|
|
@ -2429,12 +2429,8 @@ si_llvm_init_export_args(struct radv_shader_context *ctx,
|
|||
} else
|
||||
memcpy(&args->out[0], values, sizeof(values[0]) * 4);
|
||||
|
||||
for (unsigned i = 0; i < 4; ++i) {
|
||||
if (!(args->enabled_channels & (1 << i)))
|
||||
continue;
|
||||
|
||||
for (unsigned i = 0; i < 4; ++i)
|
||||
args->out[i] = ac_to_float(&ctx->ac, args->out[i]);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue