Mesa (master): i965: Drop BO_ALLOC_BUSY in intel_miptree_create_for_bo().
Kenneth Graunke
kwg at kemper.freedesktop.org
Wed Mar 28 01:43:39 UTC 2018
Module: Mesa
Branch: master
Commit: b9a54b18f6a6f5dd8007f8490ef57ddd80e4e847
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9a54b18f6a6f5dd8007f8490ef57ddd80e4e847
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Mar 26 15:19:15 2018 -0700
i965: Drop BO_ALLOC_BUSY in intel_miptree_create_for_bo().
intel_miptree_create_for_bo does not actually allocate a BO, so
specifying allocation flags accomplishes nothing and is confusing.
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
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 c6213b2162..23cb40f322 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -820,7 +820,7 @@ intel_miptree_create_for_bo(struct brw_context *brw,
devinfo->gen >= 6 ? depth_only_format : format,
0, 0, width, height, depth, 1, ISL_TILING_Y0_BIT,
ISL_SURF_USAGE_DEPTH_BIT | ISL_SURF_USAGE_TEXTURE_BIT,
- BO_ALLOC_BUSY, pitch, bo);
+ 0, pitch, bo);
if (!mt)
return NULL;
@@ -836,7 +836,7 @@ intel_miptree_create_for_bo(struct brw_context *brw,
ISL_TILING_W_BIT,
ISL_SURF_USAGE_STENCIL_BIT |
ISL_SURF_USAGE_TEXTURE_BIT,
- BO_ALLOC_BUSY, pitch, bo);
+ 0, pitch, bo);
if (!mt)
return NULL;
More information about the mesa-commit
mailing list