diff options
author | Eric Anholt <eric@anholt.net> | 2009-01-29 16:45:08 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-01-30 13:46:37 -0800 |
commit | ac0dfbdf0f5e5dea08ec717ae8c4e1e141b15c05 (patch) | |
tree | a5f0b3ac285f3410eccaeea0f5911cb78e8b6cb4 /src/mesa/drivers/dri/intel/intel_buffers.h | |
parent | 3ee21f30cda27e0ee1357f930163526622ba9434 (diff) | |
download | external_mesa3d-ac0dfbdf0f5e5dea08ec717ae8c4e1e141b15c05.zip external_mesa3d-ac0dfbdf0f5e5dea08ec717ae8c4e1e141b15c05.tar.gz external_mesa3d-ac0dfbdf0f5e5dea08ec717ae8c4e1e141b15c05.tar.bz2 |
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/intel/intel_buffers.h')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_buffers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_buffers.h b/src/mesa/drivers/dri/intel/intel_buffers.h index 97ae8bf..6069d38 100644 --- a/src/mesa/drivers/dri/intel/intel_buffers.h +++ b/src/mesa/drivers/dri/intel/intel_buffers.h @@ -53,5 +53,8 @@ void intel_get_cliprects(struct intel_context *intel, struct drm_clip_rect **cliprects, unsigned int *num_cliprects, int *x_off, int *y_off); +#ifdef I915 +void intelCalcViewport(GLcontext * ctx); +#endif #endif /* INTEL_BUFFERS_H */ |