mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
ac/nir: set number of channels for packed mrt exports
Bit 0 enables VSRC0 (R in low bits, G high) and bit 2 enables VSRC1 (B in low bits, A high). Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
68201ab2da
commit
365850fd68
1 changed files with 5 additions and 0 deletions
|
|
@ -5910,22 +5910,27 @@ si_llvm_init_export_args(struct radv_shader_context *ctx,
|
|||
break;
|
||||
|
||||
case V_028714_SPI_SHADER_FP16_ABGR:
|
||||
args->enabled_channels = 0x5;
|
||||
packf = ac_build_cvt_pkrtz_f16;
|
||||
break;
|
||||
|
||||
case V_028714_SPI_SHADER_UNORM16_ABGR:
|
||||
args->enabled_channels = 0x5;
|
||||
packf = ac_build_cvt_pknorm_u16;
|
||||
break;
|
||||
|
||||
case V_028714_SPI_SHADER_SNORM16_ABGR:
|
||||
args->enabled_channels = 0x5;
|
||||
packf = ac_build_cvt_pknorm_i16;
|
||||
break;
|
||||
|
||||
case V_028714_SPI_SHADER_UINT16_ABGR:
|
||||
args->enabled_channels = 0x5;
|
||||
packi = ac_build_cvt_pk_u16;
|
||||
break;
|
||||
|
||||
case V_028714_SPI_SHADER_SINT16_ABGR:
|
||||
args->enabled_channels = 0x5;
|
||||
packi = ac_build_cvt_pk_i16;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue