[Mesa-dev] [PATCH 02/23] i965: Use miptree non-aligned dimensions directly for x-tiled
Topi Pohjolainen
topi.pohjolainen at intel.com
Mon Feb 8 16:51:22 UTC 2016
The logic in intel_miptree_create() uses the local copies
for 64-byte aligned equivalent but only for stencil buffers which
in turn are never x-tiled. This makes the logic a little more
explicit and helps to keep subsequent patches easier to read.
Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
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 0edd59f..033f4c6 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -698,7 +698,7 @@ intel_miptree_create(struct brw_context *brw,
mt->tiling = I915_TILING_X;
drm_intel_bo_unreference(mt->bo);
mt->bo = drm_intel_bo_alloc_tiled(brw->bufmgr, "miptree",
- total_width, total_height, mt->cpp,
+ mt->total_width, mt->total_height, mt->cpp,
&mt->tiling, &pitch, alloc_flags);
mt->pitch = pitch;
}
--
2.5.0
More information about the mesa-dev
mailing list