Skip to contentSkip to conversation

radeon: Define SI_TILE_MODE_COLOR_2D_SCANOUT_8BPP for consistency and readability

PATCH In review Alexandre Demers 2 participants 2 messages Feb 12, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 radeon: Define SI_TILE_MODE_COLOR_2D_SCANOUT_8BPP for consistency and readability

---
 drivers/gpu/drm/radeon/atombios_crtc.c | 2 +-
 include/uapi/drm/radeon_drm.h          | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/radeon/atombios_crtc.c +1 -1
index 801dd60..c88f9fe 100644
@@ -1287,7 +1287,7 @@ static int dce4_crtc_do_set_base(struct drm_crtc *crtc,
 			} else {
 				switch (target_fb->bits_per_pixel) {
 				case 8:
-					index = 10;
+					index = SI_TILE_MODE_COLOR_2D_SCANOUT_8BPP;
 					break;
 				case 16:
 					index = SI_TILE_MODE_COLOR_2D_SCANOUT_16BPP;
include/uapi/drm/radeon_drm.h +1 -0
index ccb9bcd..407a092 100644
@@ -1057,6 +1057,7 @@ struct drm_radeon_info {
 #define SI_TILE_MODE_COLOR_2D_16BPP		15
 #define SI_TILE_MODE_COLOR_2D_32BPP		16
 #define SI_TILE_MODE_COLOR_2D_64BPP		17
+#define SI_TILE_MODE_COLOR_2D_SCANOUT_8BPP	10
 #define SI_TILE_MODE_COLOR_2D_SCANOUT_16BPP	11
 #define SI_TILE_MODE_COLOR_2D_SCANOUT_32BPP	12
 #define SI_TILE_MODE_DEPTH_STENCIL_1D		4
Signature · 6 lines
2.7.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 24 lines · Alexandre Demers
---
 drivers/gpu/drm/radeon/atombios_crtc.c | 2 +-
 include/uapi/drm/radeon_drm.h          | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/radeon/atombios_crtc.c +1 -1
index 801dd60..c88f9fe 100644
@@ -1287,7 +1287,7 @@ static int dce4_crtc_do_set_base(struct drm_crtc *crtc,
 			} else {
 				switch (target_fb->bits_per_pixel) {
 				case 8:
-					index = 10;
+					index = SI_TILE_MODE_COLOR_2D_SCANOUT_8BPP;
 					break;
 				case 16:
 					index = SI_TILE_MODE_COLOR_2D_SCANOUT_16BPP;
include/uapi/drm/radeon_drm.h +0 -0
index ccb9bcd..407a092 100644

include/uapi/drm/radeon_drm.h struct drm_radeon_info { · line 1063

Quoted 7 lines
include/uapi/drm/radeon_drm.h +1 -0
@@ -1057,6 +1057,7 @@ struct drm_radeon_info {
 #define SI_TILE_MODE_COLOR_2D_16BPP		15
 #define SI_TILE_MODE_COLOR_2D_32BPP		16
 #define SI_TILE_MODE_COLOR_2D_64BPP		17
+#define SI_TILE_MODE_COLOR_2D_SCANOUT_8BPP	10
 #define SI_TILE_MODE_COLOR_2D_SCANOUT_16BPP	11
 #define SI_TILE_MODE_COLOR_2D_SCANOUT_32BPP	12
 #define SI_TILE_MODE_DEPTH_STENCIL_1D		4

The shortlog (subject line) is a bit long, but other than that,

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