Commit 8693049a authored by Tony Cheng's avatar Tony Cheng Committed by Alex Deucher

drm/amd/display: rename BGRA8888 to ABGR8888

DC actually support ABGR8888 instead of BGRA8888 (R/B swap rather than endian swap) ,
rename to avoid confusion
Signed-off-by: default avatarTony Cheng <tony.cheng@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Reviewed-by: default avatarYongqiang Sun <yongqiang.sun@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 031ec276
...@@ -2530,7 +2530,7 @@ static void populate_initial_data( ...@@ -2530,7 +2530,7 @@ static void populate_initial_data(
data->bytes_per_pixel[num_displays + 4] = 2; data->bytes_per_pixel[num_displays + 4] = 2;
break; break;
case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888: case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888:
case SURFACE_PIXEL_FORMAT_GRPH_BGRA8888: case SURFACE_PIXEL_FORMAT_GRPH_ABGR8888:
case SURFACE_PIXEL_FORMAT_GRPH_ARGB2101010: case SURFACE_PIXEL_FORMAT_GRPH_ARGB2101010:
case SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010: case SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010:
case SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010_XR_BIAS: case SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010_XR_BIAS:
...@@ -2626,7 +2626,7 @@ static void populate_initial_data( ...@@ -2626,7 +2626,7 @@ static void populate_initial_data(
data->bytes_per_pixel[num_displays + 4] = 2; data->bytes_per_pixel[num_displays + 4] = 2;
break; break;
case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888: case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888:
case SURFACE_PIXEL_FORMAT_GRPH_BGRA8888: case SURFACE_PIXEL_FORMAT_GRPH_ABGR8888:
case SURFACE_PIXEL_FORMAT_GRPH_ARGB2101010: case SURFACE_PIXEL_FORMAT_GRPH_ARGB2101010:
case SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010: case SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010:
case SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010_XR_BIAS: case SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010_XR_BIAS:
......
...@@ -341,7 +341,7 @@ static enum pixel_format convert_pixel_format_to_dalsurface( ...@@ -341,7 +341,7 @@ static enum pixel_format convert_pixel_format_to_dalsurface(
case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888: case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888:
dal_pixel_format = PIXEL_FORMAT_ARGB8888; dal_pixel_format = PIXEL_FORMAT_ARGB8888;
break; break;
case SURFACE_PIXEL_FORMAT_GRPH_BGRA8888: case SURFACE_PIXEL_FORMAT_GRPH_ABGR8888:
dal_pixel_format = PIXEL_FORMAT_ARGB8888; dal_pixel_format = PIXEL_FORMAT_ARGB8888;
break; break;
case SURFACE_PIXEL_FORMAT_GRPH_ARGB2101010: case SURFACE_PIXEL_FORMAT_GRPH_ARGB2101010:
......
...@@ -174,7 +174,7 @@ enum surface_pixel_format { ...@@ -174,7 +174,7 @@ enum surface_pixel_format {
/*32 bpp*/ /*32 bpp*/
SURFACE_PIXEL_FORMAT_GRPH_ARGB8888, SURFACE_PIXEL_FORMAT_GRPH_ARGB8888,
/*32 bpp swaped*/ /*32 bpp swaped*/
SURFACE_PIXEL_FORMAT_GRPH_BGRA8888, SURFACE_PIXEL_FORMAT_GRPH_ABGR8888,
SURFACE_PIXEL_FORMAT_GRPH_ARGB2101010, SURFACE_PIXEL_FORMAT_GRPH_ARGB2101010,
/*swaped*/ /*swaped*/
......
...@@ -302,7 +302,7 @@ static void program_grph_pixel_format( ...@@ -302,7 +302,7 @@ static void program_grph_pixel_format(
uint32_t grph_depth, grph_format; uint32_t grph_depth, grph_format;
uint32_t sign = 0, floating = 0; uint32_t sign = 0, floating = 0;
if (format == SURFACE_PIXEL_FORMAT_GRPH_BGRA8888 || if (format == SURFACE_PIXEL_FORMAT_GRPH_ABGR8888 ||
/*todo: doesn't look like we handle BGRA here, /*todo: doesn't look like we handle BGRA here,
* should problem swap endian*/ * should problem swap endian*/
format == SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010 || format == SURFACE_PIXEL_FORMAT_GRPH_ABGR2101010 ||
...@@ -331,7 +331,7 @@ static void program_grph_pixel_format( ...@@ -331,7 +331,7 @@ static void program_grph_pixel_format(
grph_format = 1; grph_format = 1;
break; break;
case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888: case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888:
case SURFACE_PIXEL_FORMAT_GRPH_BGRA8888: case SURFACE_PIXEL_FORMAT_GRPH_ABGR8888:
grph_depth = 2; grph_depth = 2;
grph_format = 0; grph_format = 0;
break; break;
......
...@@ -214,7 +214,7 @@ static void build_prescale_params(struct ipp_prescale_params *prescale_params, ...@@ -214,7 +214,7 @@ static void build_prescale_params(struct ipp_prescale_params *prescale_params,
switch (surface->public.format) { switch (surface->public.format) {
case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888: case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888:
case SURFACE_PIXEL_FORMAT_GRPH_BGRA8888: case SURFACE_PIXEL_FORMAT_GRPH_ABGR8888:
prescale_params->scale = 0x2020; prescale_params->scale = 0x2020;
break; break;
case SURFACE_PIXEL_FORMAT_GRPH_ARGB2101010: case SURFACE_PIXEL_FORMAT_GRPH_ARGB2101010:
......
...@@ -405,7 +405,7 @@ static void program_pixel_format( ...@@ -405,7 +405,7 @@ static void program_pixel_format(
grph_format = 1; grph_format = 1;
break; break;
case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888: case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888:
case SURFACE_PIXEL_FORMAT_GRPH_BGRA8888: case SURFACE_PIXEL_FORMAT_GRPH_ABGR8888:
grph_depth = 2; grph_depth = 2;
grph_format = 0; grph_format = 0;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment