aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i915
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2009-01-29 16:45:08 -0800
committerEric Anholt <[email protected]>2009-01-30 13:46:37 -0800
commitac0dfbdf0f5e5dea08ec717ae8c4e1e141b15c05 (patch)
treea5f0b3ac285f3410eccaeea0f5911cb78e8b6cb4 /src/mesa/drivers/dri/i915
parent3ee21f30cda27e0ee1357f930163526622ba9434 (diff)
i915: Only call CalcViewport from DrawBuffers instead of Viewport.
This saves an inadvertent round-trip to the X Server on DrawBuffers, which was hurting some metaops.
Diffstat (limited to 'src/mesa/drivers/dri/i915')
-rw-r--r--src/mesa/drivers/dri/i915/i915_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_state.c b/src/mesa/drivers/dri/i915/i915_state.c
index b0334d9d795..ecb763e1277 100644
--- a/src/mesa/drivers/dri/i915/i915_state.c
+++ b/src/mesa/drivers/dri/i915/i915_state.c
@@ -41,6 +41,7 @@
#include "intel_fbo.h"
#include "intel_screen.h"
#include "intel_batchbuffer.h"
+#include "intel_buffers.h"
#include "i915_context.h"
#include "i915_reg.h"
@@ -309,7 +310,7 @@ i915DepthMask(GLcontext * ctx, GLboolean flag)
* - depthrange
* - window pos/size or FBO size
*/
-static void
+void
intelCalcViewport(GLcontext * ctx)
{
struct intel_context *intel = intel_context(ctx);