diff options
author | Wang Zhenyu <zhenyu.z.wang@intel.com> | 2007-05-30 14:42:35 +0800 |
---|---|---|
committer | Wang Zhenyu <zhenyu.z.wang@intel.com> | 2007-05-30 14:42:35 +0800 |
commit | 888a4a5f469bf955e3ee3e184b628808ae8a4498 (patch) | |
tree | 9262580f522d4264c883f324a306f6780b1ffe86 /src/i965_render.c | |
parent | 516fb73ffee0aea7cf892e6703d37f8ecf52b812 (diff) |
Fix i965 render's draw clip rectangle
Use scrn's virtual size is not correct in rotation rendering.
This fixes initial rotation problem on i965.
Diffstat (limited to 'src/i965_render.c')
-rw-r--r-- | src/i965_render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i965_render.c b/src/i965_render.c index 848774e9..956baf36 100644 --- a/src/i965_render.c +++ b/src/i965_render.c @@ -945,8 +945,8 @@ i965_prepare_composite(int op, PicturePtr pSrcPicture, */ OUT_RING(BRW_3DSTATE_DRAWING_RECTANGLE | 2); /* XXX 3 for BLC or CTG */ OUT_RING(0x00000000); /* ymin, xmin */ - OUT_RING((pScrn->virtualX - 1) | - (pScrn->virtualY - 1) << 16); /* ymax, xmax */ + OUT_RING(DRAW_YMAX(pDst->drawable.height - 1) | + DRAW_XMAX(pDst->drawable.width - 1)); /* ymax, xmax */ OUT_RING(0x00000000); /* yorigin, xorigin */ /* skip the depth buffer */ |