[Mesa-dev] [PATCH 0/2] wrong fourcc was returned for imported images

Tapani Pälli tapani.palli at intel.com
Thu Apr 5 12:05:26 UTC 2018


Hi;

On 04/05/2018 02:51 AM, James Xiong wrote:
> From: "Xiong, James" <james.xiong at intel.com>
> 
> The importer creates an image out of the imported FOURCC_NV12 texture,
> the image's dri_format is set to R8(same as the first plane's format),
> when it queries the image's fourcc, mesa goes through intel_image_format
> table and returns FOURCC_R8.

Could you explain the use case a bit, I'm not sure I understand how this 
happens. First someone imports dmabufs, creating EGLImage. Then a 
texture is associated with that (glEGLImageTargetTexture2DOES?), is it 
so that then we create yet another EGLImage from that texture or am I 
completely lost here? :)

> The solution is to 1) set the image's planar_format using the texture's in
> function intel_create_image_from_texture(). 2) when queried, return the
> saved fourcc at planar_format
> 
> Xiong, James (2):
>    i965: init image's planar_format in intel_create_image_from_texture
>    i965: return the fourcc saved in __DRIimage
> 
>   src/mesa/drivers/dri/i965/intel_screen.c | 16 +++++++++++++---
>   1 file changed, 13 insertions(+), 3 deletions(-)
> 


More information about the mesa-dev mailing list