mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
st/mesa: initialize Const.MaxColorAttachments
NOTE: This is a candidate for the stable branches. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
52cb395bb1
commit
6a2ad679e6
1 changed files with 3 additions and 7 deletions
|
|
@ -101,9 +101,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),
|
||||
|
|
@ -139,10 +139,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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue