[Mesa-dev] [PATCH 4/4] i965: Force miptrees for BOs to have all slices in each lod.
Laura Ekstrand
laura at jlekstrand.net
Fri Feb 20 13:30:56 PST 2015
Textures made expressly for internal buffer objects shouldn't have extra
padding around them, but should be densely packed.
---
src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 0e3888f..b46532d 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -724,7 +724,7 @@ intel_miptree_create_for_bo(struct brw_context *brw,
mt = intel_miptree_create_layout(brw, target, format,
0, 0,
width, height, depth,
- true, 0, false);
+ true, 0, true);
if (!mt) {
free(mt);
return mt;
--
2.1.0
More information about the mesa-dev
mailing list