[Mesa-dev] [PATCH v2] dri: add missing 16bits formats mapping

Lionel Landwerlin lionel.g.landwerlin at intel.com
Wed Jun 6 17:34:59 UTC 2018


On 06/06/18 18:27, Jason Ekstrand wrote:
> On Wed, Jun 6, 2018 at 7:57 AM, Lionel Landwerlin 
> <lionel.g.landwerlin at intel.com <mailto:lionel.g.landwerlin at intel.com>> 
> wrote:
>
>     Found by Eero.
>
>     v2: Add G16R16 formats (Lionel)
>
>     Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com
>     <mailto:lionel.g.landwerlin at intel.com>>
>     Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106642
>     <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,
>
>
> I think the MESA_FORMAT here is backwards.  Hooray for endianness...

Dammit! Thanks!

>     +   },
>     +   {
>     +      .image_format = __DRI_IMAGE_FORMAT_GR1616,
>     +      .mesa_format  =        MESA_FORMAT_L16A16_UNORM,
>     +   },
>      };
>
>      uint32_t
>     -- 
>     2.17.1
>
>     _______________________________________________
>     mesa-dev mailing list
>     mesa-dev at lists.freedesktop.org <mailto:mesa-dev at lists.freedesktop.org>
>     https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>     <https://lists.freedesktop.org/mailman/listinfo/mesa-dev>
>
>
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180606/5e787c57/attachment.html>


More information about the mesa-dev mailing list