summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe/p_state.h
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2013-04-26 23:00:38 -0400
committerZack Rusin <zackr@vmware.com>2013-04-26 23:01:23 -0400
commit5d9ef5b3652e59a14bf8e2ce20a61118b2a074dc (patch)
tree41c1dbb8ab4d921f3862c66b9a450a3293d18bfd /src/gallium/include/pipe/p_state.h
parent562835bcdf8a0b005d46d641f68ba4bcf3fb2a48 (diff)
downloadexternal_mesa3d-5d9ef5b3652e59a14bf8e2ce20a61118b2a074dc.zip
external_mesa3d-5d9ef5b3652e59a14bf8e2ce20a61118b2a074dc.tar.gz
external_mesa3d-5d9ef5b3652e59a14bf8e2ce20a61118b2a074dc.tar.bz2
gallium: increase the number of available stream output decls
There can be more stream output decls than shader outputs because individual components from them can be split and distributed among different so buffers. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'src/gallium/include/pipe/p_state.h')
-rw-r--r--src/gallium/include/pipe/p_state.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index c0b2bcd..28249d2 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -64,6 +64,7 @@ extern "C" {
#define PIPE_MAX_SHADER_RESOURCES 32
#define PIPE_MAX_TEXTURE_LEVELS 16
#define PIPE_MAX_SO_BUFFERS 4
+#define PIPE_MAX_SO_OUTPUTS 64
struct pipe_reference
@@ -198,7 +199,7 @@ struct pipe_stream_output_info
unsigned num_components:3; /** 1 to 4 */
unsigned output_buffer:3; /**< 0 to PIPE_MAX_SO_BUFFERS */
unsigned dst_offset:16; /**< offset into the buffer in dwords */
- } output[PIPE_MAX_SHADER_OUTPUTS];
+ } output[PIPE_MAX_SO_OUTPUTS];
};