[Mesa-dev] [PATCH 15/30] i965: Use create_for_dri_image in intel_update_image_buffer

Jason Ekstrand jason at jlekstrand.net
Fri Jun 16 22:41:37 UTC 2017


---
 src/mesa/drivers/dri/i965/brw_context.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index f57045f..9a55e44 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -1689,15 +1689,8 @@ intel_update_image_buffer(struct brw_context *intel,
       return;
 
    struct intel_mipmap_tree *mt =
-      intel_miptree_create_for_bo(intel,
-                                  buffer->bo,
-                                  intel_rb_format(rb),
-                                  0,
-                                  buffer->width,
-                                  buffer->height,
-                                  1,
-                                  buffer->pitch,
-                                  MIPTREE_LAYOUT_FOR_SCANOUT);
+      intel_miptree_create_for_dri_image(intel, buffer, GL_TEXTURE_2D,
+                                         intel_rb_format(rb), true);
    if (!mt)
       return;
 
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list