[Mesa-dev] [PATCH 5/7] i965/gen7: Add support for rasterization discard.

Kenneth Graunke kenneth at whitecape.org
Thu Dec 22 19:45:12 PST 2011


On 12/22/2011 06:22 PM, Paul Berry wrote:
> On 22 December 2011 16:54, Eric Anholt <eric at anholt.net
> <mailto:eric at anholt.net>> wrote:
> 
>     Fixes the piglit discard-* tests.
> 
>     Reviewed-by: Kenneth Graunke <kenneth at whitecape.org
>     <mailto:kenneth at whitecape.org>>
>     ---
>      src/mesa/drivers/dri/i965/gen7_sol_state.c |    8 +++++++-
>      1 files changed, 7 insertions(+), 1 deletions(-)
> 
>     diff --git a/src/mesa/drivers/dri/i965/gen7_sol_state.c
>     b/src/mesa/drivers/dri/i965/gen7_sol_state.c
>     index fcda08d..650f625 100644
>     --- a/src/mesa/drivers/dri/i965/gen7_sol_state.c
>     +++ b/src/mesa/drivers/dri/i965/gen7_sol_state.c
>     @@ -37,6 +37,12 @@ static void
>      upload_sol_state(struct brw_context *brw)
>      {
>        struct intel_context *intel = &brw->intel;
>     +   struct gl_context *ctx = &intel->ctx;
>     +   uint32_t dw1 = 0;
>     +
>     +   /* _NEW_RASTERIZER_DISCARD */
>     +   if (ctx->RasterDiscard)
>     +      dw1 |= SO_RENDERING_DISABLE;
> 
> 
> It looks like dw1 is set here but not used until patch 6/7.

Oops.  Yeah, good catch.  Eric, perhaps just squash 5 and 6?



More information about the mesa-dev mailing list