summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-05-02 01:22:48 +0200
committerMarek Olšák <[email protected]>2013-05-11 23:44:55 +0200
commitd27d29f1a67babd93091d34aae4c2784a8d62f31 (patch)
tree06a98060fafaffe914009be4b7a3508268e7e0ad /src/mesa/state_tracker
parent5471e3949cb6482f1a6dcb969332f2544a758e46 (diff)
mesa: consolidate definitions of max texture image units
Shaders are unified on most hardware (= same limits in all stages). Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_extensions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 662645b3716..a72728c1a82 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -98,7 +98,7 @@ void st_init_limits(struct st_context *st)
c->MaxVertexTextureImageUnits
= _min(screen->get_shader_param(screen, PIPE_SHADER_VERTEX,
PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS),
- MAX_VERTEX_TEXTURE_IMAGE_UNITS);
+ MAX_TEXTURE_IMAGE_UNITS);
c->MaxCombinedTextureImageUnits
= _min(screen->get_param(screen, PIPE_CAP_MAX_COMBINED_SAMPLERS),