From: Mario Kleiner Date: Fri, 15 Dec 2017 22:05:06 +0000 (+0100) Subject: st/dri: Support texture_from_pixmap for BGR[A/X]1010102 formats. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef99597d959c5814c2d9288b9e0ddf5f57d2854f;p=mesa.git st/dri: Support texture_from_pixmap for BGR[A/X]1010102 formats. Signed-off-by: Mario Kleiner Reviewed-by: Marek Olšák Signed-off-by: Marek Olšák --- diff --git a/src/gallium/state_trackers/dri/dri_drawable.c b/src/gallium/state_trackers/dri/dri_drawable.c index 92ce9d288b1..a5999be574a 100644 --- a/src/gallium/state_trackers/dri/dri_drawable.c +++ b/src/gallium/state_trackers/dri/dri_drawable.c @@ -260,6 +260,9 @@ dri_set_tex_buffer2(__DRIcontext *pDRICtx, GLint target, if (format == __DRI_TEXTURE_FORMAT_RGB) { /* only need to cover the formats recognized by dri_fill_st_visual */ switch (internal_format) { + case PIPE_FORMAT_B10G10R10A2_UNORM: + internal_format = PIPE_FORMAT_B10G10R10X2_UNORM; + break; case PIPE_FORMAT_BGRA8888_UNORM: internal_format = PIPE_FORMAT_BGRX8888_UNORM; break;