gallium: add new pipe_screen::can_create_resource() function
authorBrian Paul <brianp@vmware.com>
Mon, 17 Sep 2012 01:40:13 +0000 (19:40 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 18 Sep 2012 01:49:27 +0000 (19:49 -0600)
commitbd8b43a9f467a244ac75dcbf13f162793ccc5f6e
treefc4c5bb9fb01f735464fd42d2508f6dde4a24ad8
parenta0fc7620f5e8bdfcda07f920db560e5a17535e31
gallium: add new pipe_screen::can_create_resource() function

Used to implement proxy textures.  If a gallium driver doesn't implement
this function we'll just continue to use the core Mesa fallback code.

Without this hook we really have no good way to implement OpenGL proxy
textures with gallium drivers.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/docs/source/screen.rst
src/gallium/include/pipe/p_screen.h