gallium: set PIPE_MAX_SAMPLERS to 18
authorMarek Olšák <marek.olsak@amd.com>
Sat, 31 Jan 2015 17:58:19 +0000 (18:58 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 4 Feb 2015 13:34:13 +0000 (14:34 +0100)
For drivers that use higher slots not to crash in tgsi_shader_info.

Reviewed-by: Glenn Kennard <glenn.kennard@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/include/pipe/p_state.h

index 43bc48bd336019f938f0ed4b33c73cb552076e6b..e15860c4ca75947f7816d0b52203f14d9dc4261d 100644 (file)
@@ -57,7 +57,7 @@ extern "C" {
 #define PIPE_MAX_CLIP_PLANES       8
 #define PIPE_MAX_COLOR_BUFS        8
 #define PIPE_MAX_CONSTANT_BUFFERS 32
-#define PIPE_MAX_SAMPLERS         16
+#define PIPE_MAX_SAMPLERS         18 /* 16 public + 2 driver internal */
 #define PIPE_MAX_SHADER_INPUTS    32
 #define PIPE_MAX_SHADER_OUTPUTS   48 /* 32 GENERICs + POS, PSIZE, FOG, etc. */
 #define PIPE_MAX_SHADER_SAMPLER_VIEWS 32