st/mesa: add new st_copy_framebuffer_to_texture() function
authorBrian Paul <brianp@vmware.com>
Thu, 3 Dec 2015 00:29:27 +0000 (17:29 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Dec 2015 15:34:24 +0000 (08:34 -0700)
commit47b9ef872b70066756e004a6dd52482ea2899d43
treeb7a3117660a8cd1284b388a225f8c2d68dbfb9ee
parentd6d90750f129f4c43c55acfefa9b82d32b0b3e21
st/mesa: add new st_copy_framebuffer_to_texture() function

This helper is used by the WGL state tracker to implement the
wglBindTexImageARB() function.

This is basically a new "meta" function.  However, we're not putting
it in the src/mesa/drivers/common/ directory because that code is not
linked with gallium-based drivers.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/Makefile.sources
src/mesa/state_tracker/st_copytex.c [new file with mode: 0644]
src/mesa/state_tracker/st_copytex.h [new file with mode: 0644]