From 08afcaa56e187cdd137a5c6581c265c1a0fc8d18 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 11 Apr 2010 08:27:33 +0200 Subject: r300g: use cliprects for scissoring Cliprects can be disabled, scissors can't. It maps nicely to hardware. --- src/gallium/drivers/r300/r300_context.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gallium/drivers/r300/r300_context.h') diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h index fc186df640e..e3dd6de5c72 100644 --- a/src/gallium/drivers/r300/r300_context.h +++ b/src/gallium/drivers/r300/r300_context.h @@ -105,6 +105,7 @@ struct r300_rs_state { uint32_t line_stipple_value; /* R300_GA_LINE_STIPPLE_VALUE: 0x4260 */ uint32_t color_control; /* R300_GA_COLOR_CONTROL: 0x4278 */ uint32_t polygon_mode; /* R300_GA_POLY_MODE: 0x4288 */ + uint32_t clip_rule; /* R300_SC_CLIP_RULE: 0x43D0 */ }; struct r300_rs_block { @@ -410,8 +411,6 @@ struct r300_context { boolean polygon_offset_enabled; /* Z buffer bit depth. */ uint32_t zbuffer_bpp; - /* Whether scissor is enabled. */ - boolean scissor_enabled; /* Whether rendering is conditional and should be skipped. */ boolean skip_rendering; /* Whether the two-sided stencil ref value is different for front and -- cgit v1.2.3