mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
mesa: remove last of MAX_WIDTH, MAX_HEIGHT
Define new MAX_VIEWPORT_WIDTH/HEIGHT and MAX_RENDERBUFFER_SIZE values instead.
This commit is contained in:
parent
70d3363757
commit
630ab0d27b
3 changed files with 7 additions and 13 deletions
|
|
@ -1 +0,0 @@
|
|||
../intel/intel_decode.c
|
||||
|
|
@ -136,15 +136,9 @@
|
|||
#define MAX_TEXTURE_UNITS ((MAX_TEXTURE_COORD_UNITS > MAX_TEXTURE_IMAGE_UNITS) ? MAX_TEXTURE_COORD_UNITS : MAX_TEXTURE_IMAGE_UNITS)
|
||||
|
||||
|
||||
/**
|
||||
* Maximum viewport/image size. Must accomodate all texture sizes too.
|
||||
*/
|
||||
#ifndef MAX_WIDTH
|
||||
# define MAX_WIDTH 16384
|
||||
#endif
|
||||
#ifndef MAX_HEIGHT
|
||||
# define MAX_HEIGHT 16384
|
||||
#endif
|
||||
/** Maximum viewport size */
|
||||
#define MAX_VIEWPORT_WIDTH 16384
|
||||
#define MAX_VIEWPORT_HEIGHT 16384
|
||||
|
||||
/** Maxmimum size for CVA. May be overridden by the drivers. */
|
||||
#define MAX_ARRAY_LOCK_SIZE 3000
|
||||
|
|
@ -248,6 +242,7 @@
|
|||
/** For GL_EXT_framebuffer_object */
|
||||
/*@{*/
|
||||
#define MAX_COLOR_ATTACHMENTS 8
|
||||
#define MAX_RENDERBUFFER_SIZE 16384
|
||||
/*@}*/
|
||||
|
||||
/** For GL_ATI_envmap_bump - support bump mapping on first 8 units */
|
||||
|
|
|
|||
|
|
@ -586,8 +586,8 @@ _mesa_init_constants(struct gl_context *ctx)
|
|||
ctx->Const.MaxLights = MAX_LIGHTS;
|
||||
ctx->Const.MaxShininess = 128.0;
|
||||
ctx->Const.MaxSpotExponent = 128.0;
|
||||
ctx->Const.MaxViewportWidth = MAX_WIDTH;
|
||||
ctx->Const.MaxViewportHeight = MAX_HEIGHT;
|
||||
ctx->Const.MaxViewportWidth = MAX_VIEWPORT_WIDTH;
|
||||
ctx->Const.MaxViewportHeight = MAX_VIEWPORT_HEIGHT;
|
||||
#if FEATURE_ARB_vertex_program
|
||||
init_program_limits(GL_VERTEX_PROGRAM_ARB, &ctx->Const.VertexProgram);
|
||||
#endif
|
||||
|
|
@ -608,7 +608,7 @@ _mesa_init_constants(struct gl_context *ctx)
|
|||
|
||||
#if FEATURE_EXT_framebuffer_object
|
||||
ctx->Const.MaxColorAttachments = MAX_COLOR_ATTACHMENTS;
|
||||
ctx->Const.MaxRenderbufferSize = MAX_WIDTH;
|
||||
ctx->Const.MaxRenderbufferSize = MAX_RENDERBUFFER_SIZE;
|
||||
#endif
|
||||
|
||||
#if FEATURE_ARB_vertex_shader
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue