Limit the maximum renderbuffer size to 8192 on i965 and to 2048 on
earlier hardware.
---
src/mesa/drivers/dri/intel/intel_context.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_context.c
b/src/mesa/drivers/dri/intel/intel_context.c
index a6d8729..9be613a 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -649,6 +649,15 @@ 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;
+#endif
+ } else {
+#if MAX_WIDTH > 2048
+ ctx->Const.MaxRenderbufferSize = 2048;
+#endif
+ }
/* Initialize the software rasterizer and helper modules. */
_swrast_CreateContext(ctx);
--
1.6.3.1
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev