Mesa (master): intel: added region draw_x/y offsets in x/y_tile_swizzle() funcs

Brian Paul brianp at kemper.freedesktop.org
Wed Oct 28 10:33:47 PDT 2009


Module: Mesa
Branch: master
Commit: b7eea8c616092f5473a323fba585b04c47ae2010
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b7eea8c616092f5473a323fba585b04c47ae2010

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Oct 27 17:34:29 2009 -0600

intel: added region draw_x/y offsets in x/y_tile_swizzle() funcs

This fixes the second part of bug 23552.

---

 src/mesa/drivers/dri/intel/intel_span.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_span.c b/src/mesa/drivers/dri/intel/intel_span.c
index 8df4990..e71366a 100644
--- a/src/mesa/drivers/dri/intel/intel_span.c
+++ b/src/mesa/drivers/dri/intel/intel_span.c
@@ -163,6 +163,9 @@ static uint32_t x_tile_swizzle(struct intel_renderbuffer *irb,
 	int	x_tile_number, y_tile_number;
 	int	tile_off, tile_base;
 	
+        x += irb->region->draw_x;
+        y += irb->region->draw_y;
+
 	tile_stride = (irb->region->pitch * irb->region->cpp) << 3;
 
 	xbyte = x * irb->region->cpp;
@@ -218,6 +221,9 @@ static uint32_t y_tile_swizzle(struct intel_renderbuffer *irb,
 	int	x_tile_number, y_tile_number;
 	int	tile_off, tile_base;
 	
+        x += irb->region->draw_x;
+        y += irb->region->draw_y;
+
 	tile_stride = (irb->region->pitch * irb->region->cpp) << 5;
 
 	xbyte = x * irb->region->cpp;



More information about the mesa-commit mailing list