[Mesa-dev] [PATCH 17/23] intel: remove MAX_WIDTH usage in intelInitContext()

Brian Paul brian.e.paul at gmail.com
Mon Feb 20 12:15:05 PST 2012


From: Brian Paul <brianp at vmware.com>

---
 src/mesa/drivers/dri/intel/intel_context.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index 377bcbc..c876694 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -698,11 +698,9 @@ intelInitContext(struct intel_context *intel,
    _mesa_init_point(ctx);
 
    if (intel->gen >= 4) {
-      if (MAX_WIDTH > 8192)
-	 ctx->Const.MaxRenderbufferSize = 8192;
+      ctx->Const.MaxRenderbufferSize = 8192;
    } else {
-      if (MAX_WIDTH > 2048)
-	 ctx->Const.MaxRenderbufferSize = 2048;
+      ctx->Const.MaxRenderbufferSize = 2048;
    }
 
    /* Initialize the software rasterizer and helper modules. */
-- 
1.7.3.4



More information about the mesa-dev mailing list