[Mesa-dev] [PATCH 07/30] i965/miptree: Pass the offset into create_for_bo in create_for_dri_image
Jason Ekstrand
jason at jlekstrand.net
Fri Jun 16 22:41:29 UTC 2017
---
src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 023c6aa..3bc6827 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -915,7 +915,7 @@ intel_miptree_create_for_dri_image(struct brw_context *brw,
*/
struct intel_mipmap_tree *mt =
intel_miptree_create_for_bo(brw, image->bo, image->format,
- 0, image->width, image->height, 1,
+ image->offset, image->width, image->height, 1,
image->pitch,
MIPTREE_LAYOUT_DISABLE_AUX);
if (mt == NULL)
@@ -942,8 +942,6 @@ intel_miptree_create_for_dri_image(struct brw_context *brw,
}
}
- mt->offset = image->offset;
-
return mt;
}
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list