projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
170fba3
)
drm/amdgpu/iceland: Set SC_PA_RASTER_CONFIG according to different RB enabled
author
Ken Wang
<Qingqing.Wang@amd.com>
Tue, 24 May 2016 01:26:27 +0000
(09:26 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Thu, 9 Jun 2016 14:48:52 +0000
(10:48 -0400)
fix the raster config setting for different iceland configs.
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index f19bab68fd837ffe3cacb54ef04f9d50dc8fee27..4d747ba331db281459b08fbf965c03e6454c53a2 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
@@
-3974,11
+3974,15
@@
static int gfx_v8_0_cp_gfx_start(struct amdgpu_device *adev)
amdgpu_ring_write(ring, 0x3a00161a);
amdgpu_ring_write(ring, 0x0000002e);
break;
- case CHIP_TOPAZ:
case CHIP_CARRIZO:
amdgpu_ring_write(ring, 0x00000002);
amdgpu_ring_write(ring, 0x00000000);
break;
+ case CHIP_TOPAZ:
+ amdgpu_ring_write(ring, adev->gfx.config.num_rbs == 1 ?
+ 0x00000000 : 0x00000002);
+ amdgpu_ring_write(ring, 0x00000000);
+ break;
case CHIP_STONEY:
amdgpu_ring_write(ring, 0x00000000);
amdgpu_ring_write(ring, 0x00000000);