glamor: Add simple upload/download functions in glamor_transfer
authorKeith Packard <keithp@keithp.com>
Wed, 2 Apr 2014 04:15:43 +0000 (21:15 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 3 Apr 2014 20:07:51 +0000 (13:07 -0700)
commitd78c257f523908760c1b872cc4bef3d42eb31f50
treef59ef06cdb58fb21871e8b9b94e3cc5fc2a5fb47
parent693e6bea897e4c9473a9f22dd8b90df3437e04a1
glamor: Add simple upload/download functions in glamor_transfer

These use glTexSubimage2D for upload and glReadPixels for
download. There are a variety of interfaces to the basic function as
needed by the callers.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
glamor/Makefile.am
glamor/glamor_transfer.c [new file with mode: 0644]
glamor/glamor_transfer.h [new file with mode: 0644]