diff options
author | Jason Ekstrand <[email protected]> | 2017-06-12 10:30:44 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-07-12 21:15:46 -0700 |
commit | 947b72ab5df620b5c7d5fe904b121a165b0c3b1e (patch) | |
tree | d3c15251281058216ff2db6b6004604f2d43fb68 | |
parent | 72e7a6b0b6b099520c4aaebdb339b2dff8c15f36 (diff) |
i965/miptree: Pass the offset into create_for_bo in create_for_dri_image
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 |
1 files changed, 1 insertions, 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 9dcf5be0af9..bdd0cd56020 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; } |