gallium: increase the number of available stream output decls
authorZack Rusin <zackr@vmware.com>
Sat, 27 Apr 2013 03:00:38 +0000 (23:00 -0400)
committerZack Rusin <zackr@vmware.com>
Sat, 27 Apr 2013 03:01:23 +0000 (23:01 -0400)
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>
src/gallium/include/pipe/p_state.h

index c0b2bcd0ceff4805f2954ecab45da9b2f71ee29e..28249d2261acb5409a24db7d82a83d69f5f433bc 100644 (file)
@@ -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];
 };