diff options
author | Marek Olšák <[email protected]> | 2013-05-02 03:29:47 +0200 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-06-25 14:24:55 -0700 |
commit | 03c3e082dc70dd2526caabdd23db40da23572ca2 (patch) | |
tree | 09fb5f1245c0b9a61be84727ba20b8aa22e61daf /src | |
parent | 6d95bd160476bf3cc64b2ca3db64b3df9b04f8d8 (diff) |
st/mesa: initialize Const.MaxColorAttachments
NOTE: This is a candidate for the stable branches.
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 6a2ad679e6f11f51e01001943f7d18329f077620)
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 04ffccbca22..73511be7a9a 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -117,9 +117,9 @@ void st_init_limits(struct st_context *st) c->MaxViewportHeight = c->MaxRenderbufferSize = c->MaxTextureRectSize; - c->MaxDrawBuffers - = _clamp(screen->get_param(screen, PIPE_CAP_MAX_RENDER_TARGETS), - 1, MAX_DRAW_BUFFERS); + c->MaxDrawBuffers = c->MaxColorAttachments = + _clamp(screen->get_param(screen, PIPE_CAP_MAX_RENDER_TARGETS), + 1, MAX_DRAW_BUFFERS); c->MaxDualSourceDrawBuffers = _clamp(screen->get_param(screen, PIPE_CAP_MAX_DUAL_SOURCE_RENDER_TARGETS), @@ -155,10 +155,6 @@ void st_init_limits(struct st_context *st) c->MaxTextureLodBias = screen->get_paramf(screen, PIPE_CAPF_MAX_TEXTURE_LOD_BIAS); - c->MaxDrawBuffers - = CLAMP(screen->get_param(screen, PIPE_CAP_MAX_RENDER_TARGETS), - 1, MAX_DRAW_BUFFERS); - c->QuadsFollowProvokingVertexConvention = screen->get_param( screen, PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION); |