Mesa (master): i965/miptree: Pass the offset into create_for_bo in create_for_dri_image

Jason Ekstrand jekstrand at kemper.freedesktop.org
Thu Jul 13 04:16:20 UTC 2017


Module: Mesa
Branch: master
Commit: 947b72ab5df620b5c7d5fe904b121a165b0c3b1e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=947b72ab5df620b5c7d5fe904b121a165b0c3b1e

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Mon Jun 12 10:30:44 2017 -0700

i965/miptree: Pass the offset into create_for_bo in create_for_dri_image

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 9dcf5be0af..bdd0cd5602 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;
 }
 




More information about the mesa-commit mailing list