aco: Use bytes() instead of size() in emit_wqm

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>
This commit is contained in:
Konstantin Seurer 2023-08-28 09:36:50 +02:00 committed by Marge Bot
parent 1ddf8378cb
commit 9af91edda9

View 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;