Переглянути джерело

i965/miptree: Pass the offset into create_for_bo in create_for_dri_image

Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
tags/17.2-branchpoint
Jason Ekstrand 8 роки тому
джерело
коміт
947b72ab5d
1 змінених файлів з 1 додано та 3 видалено
  1. 1
    3
      src/mesa/drivers/dri/i965/intel_mipmap_tree.c

+ 1
- 3
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;
}


Завантаження…
Відмінити
Зберегти