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

James Xiong james.xiong at intel.com
Wed Apr 4 23:51:45 UTC 2018


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.

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(-)

-- 
2.7.4



More information about the mesa-dev mailing list