summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i915tex
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@tungstengraphics.com>2007-07-16 15:53:23 +0200
committerRoland Scheidegger <sroland@tungstengraphics.com>2007-07-16 15:53:23 +0200
commit56cbdfd7d541e5d99b7e7c4fb7b03ac6ac1536a1 (patch)
treec7cc6c13468150ff5d511602350b985f4bc55da1 /src/mesa/drivers/dri/i915tex
parent6104044f6bd9464b5972234f95801ca6ba5db510 (diff)
more cliprect elimination (swrast span)
Diffstat (limited to 'src/mesa/drivers/dri/i915tex')
-rw-r--r--src/mesa/drivers/dri/i915tex/intel_span.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/mesa/drivers/dri/i915tex/intel_span.c b/src/mesa/drivers/dri/i915tex/intel_span.c
index 74f118121c..5a978d9ce2 100644
--- a/src/mesa/drivers/dri/i915tex/intel_span.c
+++ b/src/mesa/drivers/dri/i915tex/intel_span.c
@@ -47,7 +47,6 @@
#define DBG 0
#define LOCAL_VARS \
- struct intel_context *intel = intel_context(ctx); \
struct intel_renderbuffer *irb = intel_renderbuffer(rb); \
const GLint yScale = irb->RenderToTexture ? 1 : -1; \
const GLint yBias = irb->RenderToTexture ? 0 : irb->Base.Height - 1; \
@@ -56,20 +55,17 @@
assert(irb->pfMap);\
(void) p;
-/* XXX FBO: this is identical to the macro in spantmp2.h except we get
- * the cliprect info from the context, not the driDrawable.
- * Move this into spantmp2.h someday.
+/* There is just a single cliploop!
*/
#define HW_CLIPLOOP() \
do { \
- int _nc = intel->numClipRects; \
- while ( _nc-- ) { \
- int minx = intel->pClipRects[_nc].x1; \
- int miny = intel->pClipRects[_nc].y1; \
- int maxx = intel->pClipRects[_nc].x2; \
- int maxy = intel->pClipRects[_nc].y2;
-
+ int minx = 0; \
+ int miny = 0; \
+ int maxx = irb->Base.Width - 1; \
+ int maxy = irb->Base.Height - 1;
+#define HW_ENDCLIPLOOP() \
+ } while (0)
#define Y_FLIP(_y) ((_y) * yScale + yBias)
@@ -100,7 +96,6 @@
#define LOCAL_DEPTH_VARS \
- struct intel_context *intel = intel_context(ctx); \
struct intel_renderbuffer *irb = intel_renderbuffer(rb); \
const GLuint pitch = irb->pfPitch/***XXX region->pitch*/; /* in pixels */ \
const GLint yScale = irb->RenderToTexture ? 1 : -1; \