aco: Use bytes() instead of size() in emit_wqm
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Mon, 28 Aug 2023 07:36:50 +0000 (09:36 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 1 Sep 2023 07:23:33 +0000 (07:23 +0000)
This should get most of the cases that would fail validation.

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24906>

src/amd/compiler/aco_instruction_selection.cpp

index d8525f0..cb8c7a1 100644 (file)
@@ -180,7 +180,7 @@ emit_wqm(Builder& bld, Temp src, Temp dst = Temp(0, s1), bool program_needs_wqm
       dst = bld.tmp(src.regClass());
    }
 
-   assert(src.size() == dst.size());
+   assert(src.bytes() == dst.bytes());
    bld.pseudo(aco_opcode::p_wqm, Definition(dst), src);
    bld.program->needs_wqm |= program_needs_wqm;
    return dst;