]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6275e5eca76f140fe2f07a7bb4f3b990f47c049d
tree202d0360ddb1ac5a19e491c1617794b425918091
parent40f8bdc0650cc1e2d37b42d551c3bd0665b0738a
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