[Mesa-dev] [PATCH] st/dri: Add support for PIPE_FORMAT_RGBX8888_UNORM
Emil Velikov
emil.l.velikov at gmail.com
Tue Jun 20 09:02:31 UTC 2017
On 19 June 2017 at 18:51, Lepton Wu <lepton at google.com> wrote:
> The original dri2_format_to_pipe_format function just misses case branch
> for __DRI_IMAGE_FORMAT_XBGR8888. I discovered this when debugging one google
> map crash inside emulator.
>
> Signed-off-by: Lepton Wu <lepton at chromium.org>
> ---
> src/gallium/state_trackers/dri/dri2.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c
> index c5e69d639b..f02ef30dd7 100644
> --- a/src/gallium/state_trackers/dri/dri2.c
> +++ b/src/gallium/state_trackers/dri/dri2.c
> @@ -186,6 +186,9 @@ static enum pipe_format dri2_format_to_pipe_format (int format)
> case __DRI_IMAGE_FORMAT_ARGB8888:
> pf = PIPE_FORMAT_BGRA8888_UNORM;
> break;
> + case __DRI_IMAGE_FORMAT_XBGR8888:
> + pf = PIPE_FORMAT_RGBX8888_UNORM;
> + break;
> case __DRI_IMAGE_FORMAT_ABGR8888:
> pf = PIPE_FORMAT_RGBA8888_UNORM;
> break;
> --
> 2.13.1.518.g3df882009-goog
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list