Message ID | 1423794151-29614-1-git-send-email-markz@nvidia.com |
---|---|
State | Deferred |
Headers | show |
Thierry, ping? On 02/13/2015 10:22 AM, Mark Zhang wrote: > Signed-off-by: Mark Zhang <markz@nvidia.com> > --- > drivers/gpu/drm/tegra/dc.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c > index 3aaa84ae2681..bd635fd328c9 100644 > --- a/drivers/gpu/drm/tegra/dc.c > +++ b/drivers/gpu/drm/tegra/dc.c > @@ -125,6 +125,12 @@ static int tegra_dc_format(u32 fourcc, u32 *format, u32 *swap) > *format = WIN_COLOR_DEPTH_R8G8B8A8; > break; > > + case DRM_FORMAT_RGBA8888: > + *format = WIN_COLOR_DEPTH_R8G8B8A8; > + if (swap) > + *swap = BYTE_SWAP_SWAP4; > + break; > + > case DRM_FORMAT_XRGB8888: > *format = WIN_COLOR_DEPTH_B8G8R8A8; > break; > -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index 3aaa84ae2681..bd635fd328c9 100644 --- a/drivers/gpu/drm/tegra/dc.c +++ b/drivers/gpu/drm/tegra/dc.c @@ -125,6 +125,12 @@ static int tegra_dc_format(u32 fourcc, u32 *format, u32 *swap) *format = WIN_COLOR_DEPTH_R8G8B8A8; break; + case DRM_FORMAT_RGBA8888: + *format = WIN_COLOR_DEPTH_R8G8B8A8; + if (swap) + *swap = BYTE_SWAP_SWAP4; + break; + case DRM_FORMAT_XRGB8888: *format = WIN_COLOR_DEPTH_B8G8R8A8; break;
Signed-off-by: Mark Zhang <markz@nvidia.com> --- drivers/gpu/drm/tegra/dc.c | 6 ++++++ 1 file changed, 6 insertions(+)