diff options
author | Roland Scheidegger <[email protected]> | 2014-07-01 03:09:44 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2014-07-02 01:55:59 +0200 |
commit | aa1ab8173dfe73692cf65af401e7345ec78bb313 (patch) | |
tree | 0d6240f91f011253574677478e547174da46a39f /src/gallium/drivers/llvmpipe/lp_texture.c | |
parent | 90abdc15414f44862a82fe2e53e5419f8182b9ac (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_texture.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_texture.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c index f95b2a2b47e..f5383dc6255 100644 --- a/src/gallium/drivers/llvmpipe/lp_texture.c +++ b/src/gallium/drivers/llvmpipe/lp_texture.c @@ -834,29 +834,6 @@ llvmpipe_get_texture_image(struct llvmpipe_resource *lpr, /** - * Return pointer to start of a texture image (1D, 2D, 3D, CUBE). - * This is typically used when we're about to sample from a texture. - */ -void * -llvmpipe_get_texture_image_all(struct llvmpipe_resource *lpr, - unsigned level, - enum lp_texture_usage usage) -{ - const int slices = lpr->num_slices_faces[level]; - int slice; - void *map = NULL; - - assert(slices > 0); - - for (slice = slices - 1; slice >= 0; slice--) { - map = llvmpipe_get_texture_image(lpr, slice, level, usage); - } - - return map; -} - - -/** * Get pointer to a linear image (not the tile!) at tile (x,y). * \return pointer to start of image/face (not the tile) */ |