From: Samuel Pitoiset Date: Fri, 29 May 2020 08:02:39 +0000 (+0200) Subject: aco: fix register allocation for subdword instructions on GFX10 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75a730ced59701201ef4247cbe2189a9be6a9d18;p=mesa.git aco: fix register allocation for subdword instructions on GFX10 Cc: 20.1 Signed-off-by: Samuel Pitoiset Reviewed-by: Daniel Schürmann Part-of: --- diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index c4d5a482932..eca7008bc51 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -1898,10 +1898,8 @@ void register_allocation(Program *program, std::vector& live_out_per_bl if (!definition.isFixed()) { Temp tmp = definition.getTemp(); - /* subdword instructions before RDNA write full registers */ if (tmp.regClass().is_subdword() && - !instr_can_access_subdword(ctx, instr) && - ctx.program->chip_class <= GFX9) { + !instr_can_access_subdword(ctx, instr)) { assert(tmp.bytes() <= 4); tmp = Temp(definition.tempId(), v1); }