summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-01-17 14:28:10 -0800
committerEric Anholt <[email protected]>2019-01-27 08:30:03 -0800
commit060575bea8e98c28938d08f953864cbd46447ed8 (patch)
treee03c12624e7cebfbe60e0267880e0d5c5dccfd68 /src/gallium/drivers/v3d
parent3e743d8cd86c09f68d840604c9df52e0499af64f (diff)
v3d: Drop maximum number of texture units down to 16.
This is the GLES 3.2 minmax, and also what the closed source driver does. Avoids hitting OOMs in the CTS's dEQP-GLES3.functional.texture.units.all_units.only_cube.1.
Diffstat (limited to 'src/gallium/drivers/v3d')
-rw-r--r--src/gallium/drivers/v3d/v3d_context.h6
1 files changed, 3 insertions, 3 deletions
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 {