[Mesa-dev] [PATCH 09/30] i965/miptree: Set level_x/h in create_for_dri_image
Jason Ekstrand
jason at jlekstrand.net
Fri Jun 16 22:41:31 UTC 2017
---
src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index a1be37e..6e94ba3 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -922,6 +922,8 @@ intel_miptree_create_for_dri_image(struct brw_context *brw,
return NULL;
mt->target = target;
+ mt->level[0].level_x = image->tile_x;
+ mt->level[0].level_y = image->tile_y;
mt->level[0].slice[0].x_offset = image->tile_x;
mt->level[0].slice[0].y_offset = image->tile_y;
mt->total_width += image->tile_x;
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list