From 6d9f2f2a75cfac474ecfbfa6ea6f6b6dabdea752 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 6 Jun 2018 12:57:18 +0100 Subject: [PATCH] dri: add missing 16bits formats mapping Found by Eero. v2: Add G16R16 formats (Lionel) Signed-off-by: Lionel Landwerlin Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106642 --- src/mesa/drivers/dri/common/dri_util.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index a591dfcd7d2..bc861d066d1 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -936,6 +936,22 @@ static const struct { .image_format = __DRI_IMAGE_FORMAT_SARGB8, .mesa_format = MESA_FORMAT_B8G8R8A8_SRGB, }, + { + .image_format = __DRI_IMAGE_FORMAT_R16, + .mesa_format = MESA_FORMAT_R_UNORM16, + }, + { + .image_format = __DRI_IMAGE_FORMAT_R16, + .mesa_format = MESA_FORMAT_L_UNORM16, + }, + { + .image_format = __DRI_IMAGE_FORMAT_GR1616, + .mesa_format = MESA_FORMAT_G16R16_UNORM, + }, + { + .image_format = __DRI_IMAGE_FORMAT_GR1616, + .mesa_format = MESA_FORMAT_L16A16_UNORM, + }, }; uint32_t -- 2.17.1