drm/amdgpu: update the shader to clear specific SGPRs
authorDennis Li <Dennis.Li@amd.com>
Thu, 6 May 2021 05:26:28 +0000 (13:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 May 2021 22:07:27 +0000 (18:07 -0400)
commit2a1bf57c0fd1c1c5ddce5aaa75ce67f45fc9e9f1
tree202d0360ddb1ac5a19e491c1617794b425918091
parentda6b993717ebc9e3c5c6470d7ca94169acf8be0f
drm/amdgpu: update the shader to clear specific SGPRs

Add shader codes to explicitly clear specific SGPRs, such as
flat_scratch_lo, flat_scratch_hi and so on. And also correct the
allocation size of SGPRs in PGM_RSRC1.

Signed-off-by: Dennis Li <Dennis.Li@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c