diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 02d4e9f8781..595be51ccd1 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -877,6 +877,8 @@ bool get_reg_specified(ra_ctx& ctx, { if (rc.is_subdword() && reg.byte() && !instr_can_access_subdword(instr)) return false; + if (!rc.is_subdword() && reg.byte()) + return false; uint32_t size = rc.size(); uint32_t stride = 1;