[Mesa-dev] [PATCH] i965/miptree: Use enum instead of boolean.

Jason Ekstrand jason at jlekstrand.net
Wed Oct 10 18:17:36 UTC 2018


Oops... My bad.

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Wed, Oct 10, 2018 at 12:42 PM Rafael Antognolli <
rafael.antognolli at intel.com> wrote:

> ISL_AUX_USAGE_NONE happens to be the same as "false", but let's do the
> right thing and use the enum.
> ---
>  src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
> b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
> index 708757c47b8..b0333655ad5 100644
> --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
> +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
> @@ -613,9 +613,10 @@ intel_miptree_access_raw(struct brw_context *brw,
>                           uint32_t level, uint32_t layer,
>                           bool write)
>  {
> -   intel_miptree_prepare_access(brw, mt, level, 1, layer, 1, false,
> false);
> +   intel_miptree_prepare_access(brw, mt, level, 1, layer, 1,
> +                                ISL_AUX_USAGE_NONE, false);
>     if (write)
> -      intel_miptree_finish_write(brw, mt, level, layer, 1, false);
> +      intel_miptree_finish_write(brw, mt, level, layer, 1,
> ISL_AUX_USAGE_NONE);
>  }
>
>  enum isl_aux_usage
> --
> 2.17.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181010/8788449d/attachment.html>


More information about the mesa-dev mailing list