[Mesa-dev] [PATCH] i965: add {X, A}BGR2101010 to 'intel_image_formats'

2018-05-08 Thread Miguel Casas
This patch adds {X,A}BGR2101010 entries to the list of supported 'intel_image_formats'. Bug: https://crbug.com/776093 --- src/mesa/drivers/dri/i965/intel_screen.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_

[Mesa-dev] [PATCH 2/2] i965: add {X, A}BGR2101010 to 'intel_image_formats'

2018-05-08 Thread Miguel Casas
This patch adds {X,A}BGR2101010 entries to the list of supported 'intel_image_formats'. Bug: https://crbug.com/776093 --- src/mesa/drivers/dri/i965/intel_screen.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_

[Mesa-dev] [PATCH 1/2] dri_util: Add R10G10B10{A, X}2 translation between DRI and mesa_format.

2018-05-08 Thread Miguel Casas
Add R10G10B10{A,X}2 translation between mesa_format and DRI format to driGLFormatToImageFormat() and driImageFormatToGLFormat(). Bug: https://crbug.com/776093 --- src/mesa/drivers/dri/common/dri_util.c | 8 1 file changed, 8 insertions(+) diff --git a/src/mesa/drivers/dri/common/dri_uti

[Mesa-dev] [PATCH 1/2] mesa: add R10G10B10{A, X}2 to MESA <-> DRI format translations

2018-05-03 Thread Miguel Casas
This patch adds R10G10B10{A,X}2 MESA <-> DRI translation entries in the appropriate places for dri2 functions to accept them. BUG=https://crbug.com/776093 TEST=Compile and deploy mesa+this patch, then playback a VP9 Profile 2 video with sw decoder using crrev.com/c/897894. --- src/mesa/drivers/dr

[Mesa-dev] [PATCH 2/2] i965: add {X, A}BGR2101010 to |intel_image_formats|

2018-05-03 Thread Miguel Casas
This patch adds {X,A}BGR2101010 entries to the list of supported |intel_image_formats|. BUG=https://crbug.com/776093 TEST=Compile and deploy mesa this patch, then playback a VP9 Profile 2 video with sw decoder using crrev.com/c/897894. --- src/mesa/drivers/dri/i965/intel_screen.c | 6 ++ 1 fi

Re: [Mesa-dev] [PATCH] i965: Support __DRI_IMAGE_FORMAT_XBGR2101010

2018-04-30 Thread Miguel Casas-Sanchez
I meant this commit : https://cgit.freedesktop.org/mesa/mesa/commit/include/GL/internal/dri_interface.h?id=ebdc4c31e23ffd5ce0d1fc47dd8f76c146961e25 On 27 April 2018 at 16:54, Miguel Casas-Sanchez wrote: > Correct, my mesa tree did not include those changes in > include/GL/in

Re: [Mesa-dev] [PATCH] i965: Support __DRI_IMAGE_FORMAT_XBGR2101010

2018-04-30 Thread Miguel Casas-Sanchez
MAT_SABGR8 0x1012 > > I piped the XB30/AB30 stuff through to st/mesa -- I suspect I didn't > touch the intel driver though, so those are probably still valid. Do > check though. > > -ilia > > > On Fri, Apr 27, 2018 at 4:16 PM, Miguel Casas wrote: > >

[Mesa-dev] [PATCH] i965: Support __DRI_IMAGE_FORMAT_XBGR2101010

2018-04-27 Thread Miguel Casas
This patch adds support for XBGR2101010 (a.k.a. XB30) to i965. ToT supports XR30/AR30; XB30 is needed to support GL_RGB10_* texture internal formats with the correct channel order. BUG=https://crbug.com/776093 TEST=Compile and deploy mesa+this patch, then playback a VP9 Profile 2 video with sw dec