Mesa (master): intel: Override MaxRenderbufferSize with hardware constraints
Eric Anholt
anholt at kemper.freedesktop.org
Tue May 26 22:52:06 UTC 2009
Module: Mesa
Branch: master
Commit: 9178b31546e9817a0c9712f702b21f8c54efbd84
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9178b31546e9817a0c9712f702b21f8c54efbd84
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Fri May 22 21:53:26 2009 +0100
intel: Override MaxRenderbufferSize with hardware constraints
Limit the maximum renderbuffer size to 8192 on i965 and to 2048 on
earlier hardware.
---
src/mesa/drivers/dri/intel/intel_context.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index 49eadc7..ea43009 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -650,6 +650,13 @@ intelInitContext(struct intel_context *intel,
_mesa_init_point(ctx);
ctx->Const.MaxColorAttachments = 4; /* XXX FBO: review this */
+ if (IS_965(intelScreen->deviceID)) {
+ if (MAX_WIDTH > 8192)
+ ctx->Const.MaxRenderbufferSize = 8192;
+ } else {
+ if (MAX_WIDTH > 2048)
+ ctx->Const.MaxRenderbufferSize = 2048;
+ }
/* Initialize the software rasterizer and helper modules. */
_swrast_CreateContext(ctx);
More information about the mesa-commit
mailing list