summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2018-07-06 13:02:44 -0700
committerNanley Chery <[email protected]>2018-07-13 08:36:26 -0700
commit3b4279f772b0ca29def6aa666d69008b1f118a16 (patch)
treef6b5e158217b757eeed1df07aa8f6468bce906a5 /src/mesa
parent7784a9ceacb11d32296bf87e4f5e5e51c5467222 (diff)
i965/miptree: Allocate MS texture BOs as BUSY
These buffer objects are never accessed with the CPU. Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c4
1 files 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 6d1f8d5a6df..7b1f0896ae9 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -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. */