aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerome Glisse2012-02-03 11:22:11 -0600
committerJerome Glisse2012-02-03 13:42:47 -0600
commit10c0837780b2d4a33568c16bb92527e196d6c05e (patch)
tree515bb3bd240b41b32cac309cb9509696ac3f6708 /radeon/radeon_surface.h
parent6a720cb8660975acea1100e61a88a92a7cb3856e (diff)
downloadexternal-libgbm-10c0837780b2d4a33568c16bb92527e196d6c05e.tar.gz
external-libgbm-10c0837780b2d4a33568c16bb92527e196d6c05e.tar.xz
external-libgbm-10c0837780b2d4a33568c16bb92527e196d6c05e.zip
radeon: fix surface API for good before anyone start relying on it
The mipmap level computation was wrong, we need to know the block width, height, depth of compressed texture to properly compute this. Change API to provide block width, height, depth instead of nblk_x, nblk_y, nblk_z. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Diffstat (limited to 'radeon/radeon_surface.h')
-rw-r--r--radeon/radeon_surface.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/radeon/radeon_surface.h b/radeon/radeon_surface.h
index 3e5fbedc..bfee8ab0 100644
--- a/radeon/radeon_surface.h
+++ b/radeon/radeon_surface.h
@@ -79,9 +79,9 @@ struct radeon_surface {
79 uint32_t npix_x; 79 uint32_t npix_x;
80 uint32_t npix_y; 80 uint32_t npix_y;
81 uint32_t npix_z; 81 uint32_t npix_z;
82 uint32_t nblk_x; 82 uint32_t blk_w;
83 uint32_t nblk_y; 83 uint32_t blk_h;
84 uint32_t nblk_z; 84 uint32_t blk_d;
85 uint32_t array_size; 85 uint32_t array_size;
86 uint32_t last_level; 86 uint32_t last_level;
87 uint32_t bpe; 87 uint32_t bpe;