diff options
author | Paul Berry <[email protected]> | 2011-12-20 16:23:17 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2011-12-21 13:33:35 -0800 |
commit | d44878e754e65550c0725feb76fe0cbab0ae5d93 (patch) | |
tree | 89d35409bfc69c526bf6ae3a2b00176d416f302b /src/mesa/drivers/dri/i965/brw_gs.c | |
parent | aee96806f049c17384a8edc11acce76257d98a57 (diff) |
mesa: Add _NEW_RASTERIZER_DISCARD as synonym for _NEW_TRANSFORM.
This makes it easier to keep track of which dirty bits correspond to
which pieces of context, since it makes _NEW_RASTERIZER_DISCARD
correspond with ctx->RasterDiscard.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_gs.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_gs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_gs.c b/src/mesa/drivers/dri/i965/brw_gs.c index 2495ad5fe0b..886bf98fb85 100644 --- a/src/mesa/drivers/dri/i965/brw_gs.c +++ b/src/mesa/drivers/dri/i965/brw_gs.c @@ -209,7 +209,7 @@ static void populate_key( struct brw_context *brw, } } /* On Gen6, GS is also used for rasterizer discard. */ - /* _NEW_TRANSFORM_FEEDBACK */ + /* _NEW_RASTERIZER_DISCARD */ if (ctx->RasterDiscard) { key->need_gs_prog = true; key->rasterizer_discard = true; @@ -258,7 +258,8 @@ const struct brw_tracked_state brw_gs_prog = { .dirty = { .mesa = (_NEW_LIGHT | _NEW_TRANSFORM | - _NEW_TRANSFORM_FEEDBACK), + _NEW_TRANSFORM_FEEDBACK | + _NEW_RASTERIZER_DISCARD), .brw = BRW_NEW_PRIMITIVE, .cache = CACHE_NEW_VS_PROG }, |