i965: Request a miptree with no tiling intel_miptree_map_blit().
authorMatt Turner <mattst88@gmail.com>
Thu, 6 Aug 2015 01:51:24 +0000 (18:51 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 6 Aug 2015 19:33:25 +0000 (12:33 -0700)
Regression since commit 3a31876600, when tiling modes were moved into
layout_flags.

Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index 5e7859c..cb2791d 100644 (file)
@@ -2149,7 +2149,7 @@ intel_miptree_map_blit(struct brw_context *brw,
    map->mt = intel_miptree_create(brw, GL_TEXTURE_2D, mt->format,
                                   0, 0,
                                   map->w, map->h, 1,
-                                  0, 0);
+                                  0, MIPTREE_LAYOUT_ALLOC_LINEAR);
 
    if (!map->mt) {
       fprintf(stderr, "Failed to allocate blit temporary\n");