]> 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)
commita8ded681c82029f93ea035bb1e7944a2bdbf8de8
tree202d0360ddb1ac5a19e491c1617794b425918091
parentb0ab5fd4d6128877f675a9fee30a049b9aeac14e
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