dri: propagate extra dma_buf import attributes to the drivers
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 26 Mar 2013 13:14:20 +0000 (15:14 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 2 Aug 2013 05:56:03 +0000 (08:56 +0300)
commit674dedc87a860f7aea41d5a37d8fd842e196dfdd
treeb6dc7fa791050f984ac36f0041e2f0dfdade0019
parentee844b66605fed48fc61b8787b6a86cf1c4e94d7
dri: propagate extra dma_buf import attributes to the drivers

v2: do not break ABI, but instead introduce new entry point for
    dma buffers and bump up the dri-interface version to eight

v3 (Chad): allow the hook to specify an error originating from the
           driver. For now only unsupported format is considered.
           I thought about rejecting the hints also as they are
           addressing only YUV sampling which is not supported at
           the moment but then thought against it as the spec is
           not saying one way or the other.

v4 (Eric, Chad): restrict to rgb formatted only

v5: rebased on top of i915/i965 split

v6 (Chad): document using full extension name

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
include/GL/internal/dri_interface.h
src/mesa/drivers/dri/i965/intel_regions.h
src/mesa/drivers/dri/i965/intel_screen.c