aco: include scratch/global in VMEM WAW optimization
fossil-db (navi21): Totals from 2 (0.00% of 162293) affected shaders: Instrs: 4788 -> 4785 (-0.06%) CodeSize: 25884 -> 25872 (-0.05%) Latency: 255008 -> 252950 (-0.81%) InvThroughput: 170005 -> 168633 (-0.81%) VClause: 206 -> 205 (-0.49%) 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/17079>
This commit is contained in:
parent
c66206cbed
commit
29953d6048
|
@ -250,7 +250,7 @@ get_vmem_type(Instruction* instr)
|
|||
else if (instr->isMIMG() && !instr->operands[1].isUndefined() &&
|
||||
instr->operands[1].regClass() == s4)
|
||||
return vmem_sampler;
|
||||
else if (instr->isVMEM())
|
||||
else if (instr->isVMEM() || instr->isScratch() || instr->isGlobal())
|
||||
return vmem_nosampler;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue