AMDGPU/GFX10: fix scratch resource descriptor
authorNicolai Haehnle <nhaehnle@gmail.com>
Mon, 1 Jul 2019 15:43:00 +0000 (15:43 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Mon, 1 Jul 2019 15:43:00 +0000 (15:43 +0000)
commit7cfd99ab15d088d626a5272c8b0745b7c0e30068
tree0090bdd79e7076193ca474282a6aaea213512c8d
parentfdf36729c71f443bf49dc33d5ddc33ba0597f2d2
AMDGPU/GFX10: fix scratch resource descriptor

Summary:
The stride should depend on the wave size, not the hardware generation.

Also, the 32_FLOAT format is 0x16, not 16; though that shouldn't be
relevant.

Change-Id: I088f93bf6708974d085d1c50967f119061da6dc6

Reviewers: arsenm, rampitec, mareko

Subscribers: kzhuravl, jvesely, wdng, yaxunl, dstuttard, tpr, t-tye, llvm-commits

Tags: #llvm

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

llvm-svn: 364788
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/test/CodeGen/AMDGPU/scratch-simple.ll