llvmpipe: get rid of llvmpipe_get_texture_image_all
authorRoland Scheidegger <sroland@vmware.com>
Tue, 1 Jul 2014 01:09:44 +0000 (03:09 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 1 Jul 2014 23:55:59 +0000 (01:55 +0200)
commitaa1ab8173dfe73692cf65af401e7345ec78bb313
tree0d6240f91f011253574677478e547174da46a39f
parent90abdc15414f44862a82fe2e53e5419f8182b9ac
llvmpipe: get rid of llvmpipe_get_texture_image_all

Once used for invoking swizzled->linear conversion for all needed images.
But we now have a single allocation for all images in a resource, thus looping
through all slices is rather pointless, conversion doesn't happen neither.
Also simplify the sampling setup code to use the mip_offsets array in the
resource directly - if the (non display target) resource exists its memory
will already be allocated as well.

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