[Mesa-dev] [PATCH 24/40] i965/meta: Expose fast clear rectangle calculation
Kenneth Graunke
kenneth at whitecape.org
Thu Apr 21 04:31:56 UTC 2016
On Thursday, April 21, 2016 7:14:58 AM PDT Pohjolainen, Topi wrote:
> On Wed, Apr 20, 2016 at 09:06:57PM -0700, Kenneth Graunke wrote:
> > On Saturday, April 16, 2016 4:42:52 PM PDT Topi Pohjolainen wrote:
> > > Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> > > ---
> > > src/mesa/drivers/dri/i965/brw_meta_fast_clear.c | 44 +++++++++++++
> > +-----------
> > > src/mesa/drivers/dri/i965/brw_meta_util.h | 8 +++++
> > > 2 files changed, 33 insertions(+), 19 deletions(-)
> > >
> > > diff --git a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c b/src/mesa/
> > drivers/dri/i965/brw_meta_fast_clear.c
> > > index 1fb5dc8..885c09c 100644
> > > --- a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
> > > +++ b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
> > > @@ -58,6 +58,7 @@
> > > #include "intel_batchbuffer.h"
> > >
> > > #include "brw_blorp.h"
> > > +#include "brw_meta_util.h"
> > >
> > > struct brw_fast_clear_state {
> > > struct gl_buffer_object *buf_obj;
> > > @@ -171,7 +172,7 @@ brw_meta_fast_clear_free(struct brw_context *brw)
> > > }
> > >
> > > struct rect {
> > > - int x0, y0, x1, y1;
> > > + unsigned x0, y0, x1, y1;
> >
> > Any particular reason for the type change? The things being assigned to
> > it are GLints...
>
> In blorp they are of the type uint32_t, so I would need to change one or the
> other. As these values can never be negative I thought keeping to blorp was
> more fitting.
Fair enough, I was mostly curious. Thanks :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160420/ecd16178/attachment.sig>
More information about the mesa-dev
mailing list