Reviewed-by: Chad Versace <chadversary@chromium.org> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>tags/17.2-branchpoint
*/ | */ | ||||
struct intel_mipmap_tree *mt = | struct intel_mipmap_tree *mt = | ||||
intel_miptree_create_for_bo(brw, image->bo, format, | intel_miptree_create_for_bo(brw, image->bo, format, | ||||
0, image->width, image->height, 1, | |||||
image->offset, image->width, image->height, 1, | |||||
image->pitch, | image->pitch, | ||||
MIPTREE_LAYOUT_DISABLE_AUX); | MIPTREE_LAYOUT_DISABLE_AUX); | ||||
if (mt == NULL) | if (mt == NULL) | ||||
} | } | ||||
} | } | ||||
mt->offset = image->offset; | |||||
return mt; | return mt; | ||||
} | } | ||||