diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-30 17:47:08 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2004-12-30 17:47:08 +0000 |
commit | 179cc373f1ecb4d65a413fdc64c74f98e27dac79 (patch) | |
tree | e4af3ee5672e040ec5d62dfe4d96d31f3d7169e9 /src/mesa/drivers/dri/unichrome/via_tris.c | |
parent | c664f0c5155da800c34de1783754313e86654eda (diff) |
Get scissor test working again. Passes glean scissor test.
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_tris.c')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_tris.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_tris.c b/src/mesa/drivers/dri/unichrome/via_tris.c index 8c16d01000..5f801748e3 100644 --- a/src/mesa/drivers/dri/unichrome/via_tris.c +++ b/src/mesa/drivers/dri/unichrome/via_tris.c @@ -790,9 +790,11 @@ static void viaRenderPrimitive( GLcontext *ctx, GLuint prim ) void viaFinishPrimitive(viaContextPtr vmesa) { - if (VIA_DEBUG) fprintf(stderr, "%s\n", __FUNCTION__); + if (VIA_DEBUG) + fprintf(stderr, "%s\n", __FUNCTION__); - if (!vmesa->dmaLastPrim) { + if (!vmesa->dmaLastPrim || !vmesa->dmaCliprectAddr) { + assert(0); } else if (vmesa->dmaLow != vmesa->dmaLastPrim) { GLuint cmdA = vmesa->regCmdA_End | HC_HPLEND_MASK | HC_HPMValidN_MASK | HC_HE3Fire_MASK; @@ -818,6 +820,9 @@ void viaFinishPrimitive(viaContextPtr vmesa) viaFlushDma( vmesa ); } else { + if (VIA_DEBUG) + fprintf(stderr, "remove empty primitive\n"); + /* Remove the primitive header: */ vmesa->dmaLastPrim = 0; |