i965/miptree: Allocate MS texture BOs as BUSY
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 6 Jul 2018 20:02:44 +0000 (13:02 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Fri, 13 Jul 2018 15:36:26 +0000 (08:36 -0700)
These buffer objects are never accessed with the CPU.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index 6d1f8d5a6df373cca533f7b0c103ac83c4f54d99..7b1f0896ae940e80d34c4d535d6035f7974db945 100644 (file)
@@ -679,8 +679,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. */