DRI: Add DRIimage map and unmap functions
authorRob Herring <robh@kernel.org>
Wed, 4 May 2016 02:02:43 +0000 (21:02 -0500)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 23 May 2016 11:07:46 +0000 (12:07 +0100)
commita0f06f168fd951d5b50b892786f041b58e9554ae
tree0f98c10b3f415ac6fdd023ad53bcfccb0777bf48
parentbdfa635f726d77457db9ab6298c7910138befbcd
DRI: Add DRIimage map and unmap functions

Add mapImage and unmapImage functions to DRIimage extension for mapping
and unmapping DRIimages for CPU access. The caller provides the region of
the image to map and is returned a pointer to the beginning of the region
and the stride (which could be different from the original).

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
include/GL/internal/dri_interface.h