Mesa (gallium-multiple-constant-buffers): docs: Implement constant buffer CAPs.
MichaŠKról
michal at kemper.freedesktop.org
Mon Jan 25 13:55:48 UTC 2010
Module: Mesa
Branch: gallium-multiple-constant-buffers
Commit: 580a62c1e0005403569b8b9e67356a8e957e35cc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=580a62c1e0005403569b8b9e67356a8e957e35cc
Author: Michal Krol <michal at vmware.com>
Date: Mon Jan 25 14:55:24 2010 +0100
docs: Implement constant buffer CAPs.
---
src/gallium/docs/source/screen.rst | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst
index 72bb75a..f0f0cb4 100644
--- a/src/gallium/docs/source/screen.rst
+++ b/src/gallium/docs/source/screen.rst
@@ -43,7 +43,29 @@ Returns the screen vendor.
get_param
^^^^^^^^^
-Get an integer/boolean screen parameter.
+Get an integer/boolean screen parameter. Valid parameter names include.
+
+* ``PIPE_CAP_MAX_CONST_BUFFERS``: Maximum number of constant buffers that
+ can be bound to any shader stage using ``set_constant_buffer``.
+
+ If 0 is returned, the driver is not aware of multiple constant buffers,
+ supports binding of only one constant buffer, and does not support
+ two-dimensional CONST register file access in TGSI shaders.
+
+ If a value greater than 0 is returned, the driver can have multiple
+ constant buffers bound to shader stages. The CONST register file can
+ be accessed with two-dimensional indices, like in the example below.
+
+ DCL CONST[0][0..7] # declare first 8 vectors of constbuf 0
+ DCL CONST[3][0] # declare first vector of constbuf 3
+ MOV OUT[0], CONST[0][3] # copy vector 3 of constbuf 0
+
+ For backwards compatibility, one-dimensional access to CONST register
+ file is still supported. In that case, the constbuf index is assumed
+ to be 0.
+
+* ``PIPE_CAP_MAX_CONST_BUFFER_SIZE``: Maximum byte size of a single constant
+ buffer.
get_paramf
^^^^^^^^^^
More information about the mesa-commit
mailing list