radeon: completely remove lut leftovers
Subsystems (2)
PATCH 1/1 radeon: completely remove lut leftovers
This is an oversight from
commit 42585395ebc1034a98937702849669f17eadb35f
Author: Peter Rosin <[email protected]> Date: Thu Jul 13 18:25:36 2017 +0200
drm: radeon: remove dead code and pointless local lut storage
--- drivers/gpu/drm/radeon/radeon_display.c | 6 ------ drivers/gpu/drm/radeon/radeon_mode.h | 1 - 2 files changed, 7 deletions(-)
drivers/gpu/drm/radeon/radeon_display.c +0 -6
@@ -698,12 +698,6 @@ static void radeon_crtc_init(struct drm_device *dev, int index) radeon_crtc->mode_set.num_connectors =0 ;#endif -for (i =0 ; i <256 ; i++) { - radeon_crtc->lut_r[i] = i <<2 ; - radeon_crtc->lut_g[i] = i <<2 ; - radeon_crtc->lut_b[i] = i <<2 ; - } -if (rdev->is_atom_bios && (ASIC_IS_AVIVO (rdev) || radeon_r4xx_atom))radeon_atombios_init_crtc (dev, radeon_crtc);else
drivers/gpu/drm/radeon/radeon_mode.h +0 -1
@@ -328,7 +328,6 @@ enum radeon_flip_status {struct radeon_crtc {struct drm_crtc base;int crtc_id; -u16 lut_r[256 ], lut_g[256 ], lut_b[256 ];bool enabled;bool can_tile;bool cursor_out_of_bounds;
Signature · 6 lines
2.15.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 40 lines · Daniel Vetter
This is an oversight from
commit
42585395ebc1034a98937702849669f17eadb35fAuthor: Peter Rosin <[email protected]> Date: Thu Jul 13 18:25:36 2017 +0200drm: radeon: remove dead code and pointless local lut storage
Cc Peter Rosin <[email protected]>Cc Alex Deucher <[email protected]>Cc Michel Dänzer <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/radeon/radeon_display.c | 6 ------ drivers/gpu/drm/radeon/radeon_mode.h | 1 - 2 files changed, 7 deletions(-)drivers/gpu/drm/radeon/radeon_display.c +0
-6@@ -698,12 +698,6 @@ static void radeon_crtc_init(struct drm_device *dev, int index) radeon_crtc->mode_set.num_connectors =0 ;#endif -for (i =0 ; i <256 ; i++) { - radeon_crtc->lut_r[i] = i <<2 ; - radeon_crtc->lut_g[i] = i <<2 ; - radeon_crtc->lut_b[i] = i <<2 ; - } -if (rdev->is_atom_bios && (ASIC_IS_AVIVO (rdev) || radeon_r4xx_atom))radeon_atombios_init_crtc (dev, radeon_crtc);else drivers/gpu/drm/radeon/radeon_mode.h +0
-0
drivers/gpu/drm/radeon/radeon_mode.h enum radeon_flip_status { · line 333
Quoted 7 lines
drivers/gpu/drm/radeon/radeon_mode.h +0
-1@@ -328,7 +328,6 @@ enum radeon_flip_status {struct radeon_crtc {struct drm_crtc base;int crtc_id; -u16 lut_r[256 ], lut_g[256 ], lut_b[256 ];bool enabled;bool can_tile;bool cursor_out_of_bounds;
I posted a more complete patch (also removing the now unused local i) for this in
https://lists.freedesktop.org/archives/dri-devel/2017-December/161116.html
. I'd like to only apply this once the problem discussed in that thread is fixed though, but unfortunately the other patch I attached there doesn't seem to fix it. What's the current plan for fixing this issue?
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel