Mesa and other users must set this to enable coalescing:
- STRIDE = 0
- SWIZZLE_ENABLE = 1
DiRT Showdown - apitrace results:
Before: 17.73 FPS After: 19.77 FPS
Paths
| Differential D21136
AMDGPU/SI: Set INDEX_STRIDE for scratch coalescing ClosedPublic Authored by mareko on Jun 8 2016, 7:26 AM.
Details Summary Mesa and other users must set this to enable coalescing:
DiRT Showdown - apitrace results: Before: 17.73 FPS After: 19.77 FPS
Diff Detail
Event Timelinemareko updated this object. Comment Actions Can you add a test that shows the bit change in the resource setup? I would expect the tests would be breaking on this already
Comment Actions Why would it be breaking? This is the only place that clears DATA_FORMAT and sets ADD_TID_ENABLE, both of which are required for scratch to even work. Or did you mean something else? Comment Actions
The tests check the complete 32-bit value moved into the register This revision is now accepted and ready to land.Jun 9 2016, 11:43 AM Closed by commit rL272556: AMDGPU/SI: Set INDEX_STRIDE for scratch coalescing (authored by mareko). · Explain WhyJun 13 2016, 9:12 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 60541 llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.h
llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/trunk/test/CodeGen/AMDGPU/large-alloca-compute.ll
llvm/trunk/test/CodeGen/AMDGPU/large-alloca-graphics.ll
llvm/trunk/test/CodeGen/AMDGPU/vgpr-spill-emergency-stack-slot-compute.ll
llvm/trunk/test/CodeGen/AMDGPU/vgpr-spill-emergency-stack-slot.ll
|