aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/broadcom/common/v3d_limits.h2
-rw-r--r--src/gallium/drivers/v3d/v3d_context.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/broadcom/common/v3d_limits.h b/src/broadcom/common/v3d_limits.h
index 367806dbe48..ee7a3e6bc00 100644
--- a/src/broadcom/common/v3d_limits.h
+++ b/src/broadcom/common/v3d_limits.h
@@ -30,7 +30,7 @@
/* Not specifically a hardware limit, just coordination between compiler and
* driver.
*/
-#define V3D_MAX_TEXTURE_SAMPLERS 32
+#define V3D_MAX_TEXTURE_SAMPLERS 16
#define V3D_MAX_MIP_LEVELS 12
diff --git a/src/gallium/drivers/v3d/v3d_context.h b/src/gallium/drivers/v3d/v3d_context.h
index 3ec4940b648..ef873237c0c 100644
--- a/src/gallium/drivers/v3d/v3d_context.h
+++ b/src/gallium/drivers/v3d/v3d_context.h
@@ -118,11 +118,11 @@ struct v3d_sampler_state {
};
struct v3d_texture_stateobj {
- struct pipe_sampler_view *textures[PIPE_MAX_SAMPLERS];
+ struct pipe_sampler_view *textures[V3D_MAX_TEXTURE_SAMPLERS];
unsigned num_textures;
- struct pipe_sampler_state *samplers[PIPE_MAX_SAMPLERS];
+ struct pipe_sampler_state *samplers[V3D_MAX_TEXTURE_SAMPLERS];
unsigned num_samplers;
- struct v3d_cl_reloc texture_state[PIPE_MAX_SAMPLERS];
+ struct v3d_cl_reloc texture_state[V3D_MAX_TEXTURE_SAMPLERS];
};
struct v3d_shader_uniform_info {