aco: count flat as vmem in statistics

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35465>
This commit is contained in:
Rhys Perry 2025-06-02 15:47:26 +01:00 committed by Marge Bot
parent d4d9cbdbef
commit 1c0d065dae

View file

@ -498,8 +498,7 @@ collect_preasm_stats(Program* program)
if (instr->isVOPD())
program->statistics.vopd++;
if ((instr->isVMEM() || instr->isScratch() || instr->isGlobal()) &&
!instr->operands.empty()) {
if ((instr->isVMEM() || instr->isFlatLike()) && !instr->operands.empty()) {
if (std::none_of(vmem_clause.begin(), vmem_clause.end(),
[&](Instruction* other)
{ return should_form_clause(instr.get(), other); }))