i965: Drop BO_ALLOC_BUSY in intel_miptree_create_for_bo().
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Mar 2018 22:19:15 +0000 (15:19 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 28 Mar 2018 01:41:44 +0000 (18:41 -0700)
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@jlekstrand.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index c6213b2162901c4cfdbeaaa023fc42aaade90a66..23cb40f3226b59580f284c1d44836e4cf84ea9d3 100644 (file)
@@ -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;