Re: [Mesa-dev] [PATCH 1/2] i965: Be more clever about setting up our viewport clip

2017-11-06 Thread Samuel Iglesias Gonsálvez
Both patches are, Reviewed-by: Samuel Iglesias Gonsálvez Sam On Fri, 2017-11-03 at 15:31 -0700, Jason Ekstrand wrote: > Before, we were trusting in the hardware to take the intersection > of the viewport clip with the drawing rectangle. Unfortunately, > 3DSTATE_DRAWING_RECTANGLE is fairly expe

[Mesa-dev] [PATCH 1/2] i965: Be more clever about setting up our viewport clip

2017-11-03 Thread Jason Ekstrand
Before, we were trusting in the hardware to take the intersection of the viewport clip with the drawing rectangle. Unfortunately, 3DSTATE_DRAWING_RECTANGLE is fairly expensive because it implicitly does a full pipeline stall. If we're a bit more careful with our viewport clipping, we can just re-