[Mesa-dev] [PATCH] i965/miptree: Allocate MS texture BOs as BUSY

Pohjolainen, Topi topi.pohjolainen at gmail.com
Wed Jul 11 15:09:33 UTC 2018


On Fri, Jul 06, 2018 at 03:39:26PM -0700, Nanley Chery wrote:
> These buffer objects are never accessed with the CPU.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

> ---
>  src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> index eee83a7a963..3a1d064ef4b 100644
> --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> @@ -694,8 +694,8 @@ miptree_create(struct brw_context *brw,
>                 enum intel_miptree_create_flags flags)
>  {
>     const struct gen_device_info *devinfo = &brw->screen->devinfo;
> -   const uint32_t alloc_flags = (flags & MIPTREE_CREATE_BUSY) ?
> -                                BO_ALLOC_BUSY : 0;
> +   const uint32_t alloc_flags =
> +      (flags & MIPTREE_CREATE_BUSY || num_samples > 1) ? BO_ALLOC_BUSY : 0;
>     isl_tiling_flags_t tiling_flags = ISL_TILING_ANY_MASK;
>  
>     /* TODO: This used to be because there wasn't BLORP to handle Y-tiling. */
> -- 
> 2.18.0
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list