summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau/nouveau_buffers.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-06-08 13:27:57 +1000
committerBen Skeggs <skeggsb@gmail.com>2007-06-29 14:28:39 +1000
commit17e81bda6ed1d2cc4e5c0fad895030911b4fa53c (patch)
treea0df1a9c6fe70f1a9d4700447f5c876de839ae8e /src/mesa/drivers/dri/nouveau/nouveau_buffers.c
parent02dd2221b648f7ce03dca47965764c71ccfba4b1 (diff)
nouveau: NV30_TCL viewport/scissor fixes
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_buffers.c')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_buffers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_buffers.c b/src/mesa/drivers/dri/nouveau/nouveau_buffers.c
index b54f68f402..e3968bd02f 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_buffers.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_buffers.c
@@ -299,6 +299,8 @@ nouveau_cliprects_drawable_set(nouveauContextPtr nmesa,
nmesa->pClipRects = dPriv->pClipRects;
nmesa->drawX = dPriv->x;
nmesa->drawY = dPriv->y;
+ nmesa->drawW = dPriv->w;
+ nmesa->drawH = dPriv->h;
}
static void
@@ -313,6 +315,8 @@ nouveau_cliprects_renderbuffer_set(nouveauContextPtr nmesa,
nmesa->osClipRect.y2 = nrb->mesa.Height;
nmesa->drawX = 0;
nmesa->drawY = 0;
+ nmesa->drawW = nrb->mesa.Width;
+ nmesa->drawH = nrb->mesa.Height;
}
void