Mesa (master): st/xorg: Adopt to new dirty clip rect type
Jakob Bornecrantz
wallbraker at kemper.freedesktop.org
Tue Oct 27 17:17:14 UTC 2009
Module: Mesa
Branch: master
Commit: 8a1f239ca9ccb61cd6713d1138e24492c84163c5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a1f239ca9ccb61cd6713d1138e24492c84163c5
Author: Jakob Bornecrantz <jakob at vmware.com>
Date: Tue Oct 27 17:35:06 2009 +0100
st/xorg: Adopt to new dirty clip rect type
---
src/gallium/state_trackers/xorg/xorg_driver.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/gallium/state_trackers/xorg/xorg_driver.c b/src/gallium/state_trackers/xorg/xorg_driver.c
index 847647c..26cf2dd 100644
--- a/src/gallium/state_trackers/xorg/xorg_driver.c
+++ b/src/gallium/state_trackers/xorg/xorg_driver.c
@@ -484,11 +484,12 @@ static void xorgBlockHandler(int i, pointer blockData, pointer pTimeout,
BoxPtr rect = REGION_RECTS(dirty);
int i;
+ /* XXX no need for copy? */
for (i = 0; i < num_cliprects; i++, rect++) {
- clip[i].x = rect->x1;
- clip[i].y = rect->y1;
- clip[i].width = rect->x2 - rect->x1;
- clip[i].height = rect->y2 - rect->y1;
+ clip[i].x1 = rect->x1;
+ clip[i].y1 = rect->y1;
+ clip[i].x2 = rect->x2;
+ clip[i].y2 = rect->y2;
}
/* TODO query connector property to see if this is needed */
More information about the mesa-commit
mailing list