projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d30daf
)
intel: Override MaxRenderbufferSize with hardware constraints
author
Chris Wilson
<chris@chris-wilson.co.uk>
Fri, 22 May 2009 20:53:26 +0000
(21:53 +0100)
committer
Eric Anholt
<eric@anholt.net>
Tue, 26 May 2009 22:51:33 +0000
(15:51 -0700)
Limit the maximum renderbuffer size to 8192 on i965 and to 2048 on
earlier hardware.
src/mesa/drivers/dri/intel/intel_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_context.c
b/src/mesa/drivers/dri/intel/intel_context.c
index 49eadc75328e8f3020f715d045e35e42a3feee9c..ea43009f4c8416954089b684f5c624145a4cd961 100644
(file)
--- 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);