[Mesa-dev] [PATCH 24/40] i965/meta: Expose fast clear rectangle calculation

Kenneth Graunke kenneth at whitecape.org
Thu Apr 21 04:06:57 UTC 2016


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...
-------------- 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/5a4fa198/attachment.sig>


More information about the mesa-dev mailing list