diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-03-21 02:54:38 +0000 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-03-27 02:11:24 +0000 |
commit | 6170814c42369002badb9421e75344989907bd08 (patch) | |
tree | 087b8fbef4188f0c85335cef9f0db9febc505fc3 /src/gallium/drivers/panfrost/pan_swizzle.h | |
parent | 04a72391f35d4f25175fd1028871f2666d2ebb83 (diff) |
panfrost: Preliminary work for mipmaps
This patch refactors a substantial amount of code in preparation for
mipmaps. In particular, we know have a correct slice abstraction based
on offsets; cpu/gpu are no longer arbitrary pointers. We additionally
shuffle around other code to accompany these changes and cleanup how
tiled textures are handled, while drawing some attention to the blit
code.
Mipmaps are still disabled at this point, as autogeneration is not yet
implemented; enabling as-is would cause regressions.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_swizzle.h')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_swizzle.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/panfrost/pan_swizzle.h b/src/gallium/drivers/panfrost/pan_swizzle.h index d375cfe53a5..a4d603a0aad 100644 --- a/src/gallium/drivers/panfrost/pan_swizzle.h +++ b/src/gallium/drivers/panfrost/pan_swizzle.h @@ -31,11 +31,9 @@ void panfrost_generate_space_filler_indices(void); void -panfrost_texture_swizzle(int width, int height, int bytes_per_pixel, int source_stride, +panfrost_texture_swizzle(unsigned off_x, unsigned off_y, + int width, int height, int bytes_per_pixel, int source_stride, const uint8_t *pixels, uint8_t *ldest); -unsigned -panfrost_swizzled_size(int width, int height, int bytes_per_pixel); - #endif |