---
 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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to