[Mesa-dev] [PATCH v2 02/27] i965/miptree: Pass the offset into create_for_bo in create_for_dri_image

Jason Ekstrand jason at jlekstrand.net
Fri Jun 30 03:13:11 UTC 2017


Reviewed-by: Chad Versace <chadversary at chromium.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
 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 9dcf5be..bdd0cd5 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -1070,7 +1070,7 @@ intel_miptree_create_for_dri_image(struct brw_context *brw,
     */
    struct intel_mipmap_tree *mt =
       intel_miptree_create_for_bo(brw, image->bo, format,
-                                  0, image->width, image->height, 1,
+                                  image->offset, image->width, image->height, 1,
                                   image->pitch,
                                   MIPTREE_LAYOUT_DISABLE_AUX);
    if (mt == NULL)
@@ -1097,8 +1097,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