llvmpipe: get rid of llvmpipe_get_texture_tile_linear
authorRoland Scheidegger <sroland@vmware.com>
Tue, 1 Jul 2014 13:37:56 +0000 (15:37 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 1 Jul 2014 23:55:59 +0000 (01:55 +0200)
commita7ee842acd30578f4170f69124c3986ee35a6df8
treeffc49d15843e795dea644faae82ebc6e0a1eacb1
parenta4d0758d9d3383cf1411a65e76180f5302cfc3cd
llvmpipe: get rid of llvmpipe_get_texture_tile_linear

Because the layout is always linear this didn't really do much any longer -
at some point this triggered per-tile swizzled->linear conversion. The x/y
coords were ignored too.
Apart from triggering conversion, this also invoked alloc_image_data(), which
could only actually trigger mapping of display target resources. So, instead
just call resource_map in the callers (which also gives the ability to unmap
again). Note that mapping/unmapping of display target resources still isn't
really all that clean (map/unmap may be unmatched, and all such mappings use
the same pointer thus usage flags are a lie).

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/llvmpipe/lp_surface.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/llvmpipe/lp_texture.h