aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/docs
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-09-16 19:40:13 -0600
committerBrian Paul <[email protected]>2012-09-17 19:49:27 -0600
commitbd8b43a9f467a244ac75dcbf13f162793ccc5f6e (patch)
treefc4c5bb9fb01f735464fd42d2508f6dde4a24ad8 /src/gallium/docs
parenta0fc7620f5e8bdfcda07f920db560e5a17535e31 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/docs')
-rw-r--r--src/gallium/docs/source/screen.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst
index 4eb5b32edcf..540d30861b2 100644
--- a/src/gallium/docs/source/screen.rst
+++ b/src/gallium/docs/source/screen.rst
@@ -358,6 +358,16 @@ the maximum allowed legal value is 32.
Returns TRUE if all usages can be satisfied.
+
+can_create_resource
+^^^^^^^^^^^^^^^^^^^
+
+Check if a resource can actually be created (but don't actually allocate any
+memory). This is used to implement OpenGL's proxy textures. Typically, a
+driver will simply check if the total size of the given resource is less than
+some limit.
+
+
.. _resource_create:
resource_create