mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
aco/gfx11.7: don't use v_pack_b32_f16 in do_pack_2x16
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40917>
This commit is contained in:
parent
a1d9fec91f
commit
ad5be681bd
1 changed files with 2 additions and 2 deletions
|
|
@ -1627,11 +1627,11 @@ do_pack_2x16(lower_context* ctx, Builder& bld, Definition def, Operand lo, Opera
|
|||
/* v_pack_b32_f16 can be used for bit exact copies if:
|
||||
* - fp16 input denorms are enabled, otherwise they get flushed to zero
|
||||
* - signalling input NaNs are kept, which is the case with IEEE_MODE=0
|
||||
* GFX12+ always quiets signalling NaNs, IEEE_MODE was removed
|
||||
* GFX11.7+ always quiets signalling NaNs, IEEE_MODE was removed
|
||||
*/
|
||||
bool can_use_pack = (ctx->block->fp_mode.denorm16_64 & fp_denorm_keep_in) &&
|
||||
ctx->program->gfx_level >= GFX9 && can_use_vop3 &&
|
||||
ctx->program->gfx_level < GFX12;
|
||||
ctx->program->gfx_level < GFX11_7;
|
||||
|
||||
if (can_use_pack) {
|
||||
Instruction* instr = bld.vop3(aco_opcode::v_pack_b32_f16, def, lo, hi);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue