From: "Xiong, James" <james.xi...@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@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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev