drm/radeon: change cayman_default_state table from global to static
Subsystems (2)
PATCH 1/1 drm/radeon: change cayman_default_state table from global to static
cayman_default_state and cayman_default_size are only used in ni.c. Single file symbols should be static. So move their definitions to cayman_blit_shaders.h and change their storage-class-specifier to static.
Remove unneeded cayman_blit_shader.c
cayman_ps/vs definitions were removed with
commit 4f8629675800 ("drm/radeon/kms: remove r6xx+ blit copy routines") So their declarations in cayman_blit_shader.h
are not needed, so remove them.
--- drivers/gpu/drm/radeon/Makefile | 2 +- drivers/gpu/drm/radeon/cayman_blit_shaders.c | 320 ------------------- drivers/gpu/drm/radeon/cayman_blit_shaders.h | 294 ++++++++++++++++- 3 files changed, 290 insertions(+), 326 deletions(-) delete mode 100644 drivers/gpu/drm/radeon/cayman_blit_shaders.c
drivers/gpu/drm/radeon/Makefile +1 -1
@@ -42,7 +42,7 @@ radeon-y += radeon_device.o radeon_asic.o radeon_kms.o \ r200.o radeon_legacy_tv.o r600_cs.o r600_blit_shaders.o \ radeon_pm.o atombios_dp.o r600_hdmi.o dce3_1_afmt.o \ evergreen.o evergreen_cs.o evergreen_blit_shaders.o \ - evergreen_hdmi.o radeon_trace_points.o ni.o cayman_blit_shaders.o \ + evergreen_hdmi.o radeon_trace_points.o ni.o \ atombios_encoders.o radeon_semaphore.o radeon_sa.o atombios_i2c.o si.o \ radeon_prime.o cik.o cik_blit_shaders.o \ r600_dpm.o rs780_dpm.o rv6xx_dpm.o rv770_dpm.o rv730_dpm.o rv740_dpm.o \
drivers/gpu/drm/radeon/cayman_blit_shaders.c deleted +0 -320
320 lines not on this page · raw message
drivers/gpu/drm/radeon/cayman_blit_shaders.h +289 -5
305 lines not on this page · raw message
Signature · 1 line
2.27.0
Alex Deucher
AppliedQuoted 6 lines · Tom Rix
cayman_default_stateandcayman_default_sizeare only used inni.c. Single file symbols should be static. So move their definitions tocayman_blit_shaders.hand change their storage-class-specifier to static.
Quoted 8 lines
Remove unneeded
cayman_blit_shader.ccayman_ps/vs definitions were removed with
commit4f8629675800("drm/radeon/kms: remove r6xx+ blit copy routines") So their declarations incayman_blit_shader.h
are not needed, so remove them.Signed-off-by Tom Rix <[email protected]>
Applied. Thanks!
Alex