OSDN Git Service

[AMDGPU] Fix CS scratch setup on pre-GCN3 ASICs
authorCarl Ritson <carl.ritson@amd.com>
Fri, 8 Feb 2019 15:41:11 +0000 (15:41 +0000)
committerCarl Ritson <carl.ritson@amd.com>
Fri, 8 Feb 2019 15:41:11 +0000 (15:41 +0000)
commit46ba6856284173f61635e822478527447bf580ba
tree14eb058230776e0e9c679bf2394f60d85ffa9939
parent9274280d4a82bb82f0b9b7bd4c2f97e4181242e8
[AMDGPU] Fix CS scratch setup on pre-GCN3 ASICs

Summary:
Prior to GCN3 s_load_dword offsets are in dwords rather than bytes.
Thus the scratch buffer descriptor offset must be adjusted for pre-GCN3 ASICs.

Reviewers: nhaehnle, tpr

Reviewed By: nhaehnle

Subscribers: sheredom, arsenm, kzhuravl, jvesely, wdng, yaxunl, dstuttard, t-tye, jfb, llvm-commits

Differential Revision: https://reviews.llvm.org/D56496

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353530 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIFrameLowering.cpp
test/CodeGen/AMDGPU/amdpal.ll