etnaviv: get addressing mode from tiling layout
[mesa.git] / src / gallium / drivers / etnaviv / etnaviv_transfer.c
index de2d6ed9ba2aa91ba23df71296fdfdb039c02666..b203b1aadfb89d54ff31a1185565a040642eaf95 100644 (file)
@@ -254,8 +254,7 @@ etna_transfer_map(struct pipe_context *pctx, struct pipe_resource *prsc,
       templ.bind = PIPE_BIND_RENDER_TARGET;
 
       trans->rsc = etna_resource_alloc(pctx->screen, ETNA_LAYOUT_LINEAR,
-                                       ETNA_ADDRESSING_MODE_TILED, DRM_FORMAT_MOD_LINEAR,
-                                       &templ);
+                                       DRM_FORMAT_MOD_LINEAR, &templ);
       if (!trans->rsc) {
          slab_free(&ctx->transfer_pool, trans);
          return NULL;