diff options
author | Jason Ekstrand <[email protected]> | 2017-06-12 18:57:45 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-07-12 21:15:46 -0700 |
commit | c3b5c2ca19717b139c7de25b98827ec3efd4811c (patch) | |
tree | 425bf22ba168e2d01493ce01a28f9d4358b4966e /src | |
parent | b29c364f0d9386125c31784cf798cb355c0ba5e7 (diff) |
i965/screen: Drop get_tiled_height
It's no longer used.
Reviewed-by: Topi Pohjolainen <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index d2620dc9edf..6d0588e9cfa 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -299,14 +299,13 @@ static const struct { uint32_t tiling; uint64_t modifier; unsigned since_gen; - unsigned height_align; } tiling_modifier_map[] = { { .tiling = I915_TILING_NONE, .modifier = DRM_FORMAT_MOD_LINEAR, - .since_gen = 1, .height_align = 1 }, + .since_gen = 1 }, { .tiling = I915_TILING_X, .modifier = I915_FORMAT_MOD_X_TILED, - .since_gen = 1, .height_align = 8 }, + .since_gen = 1 }, { .tiling = I915_TILING_Y, .modifier = I915_FORMAT_MOD_Y_TILED, - .since_gen = 6, .height_align = 32 }, + .since_gen = 6 }, }; static bool @@ -335,19 +334,6 @@ tiling_to_modifier(uint32_t tiling) unreachable("tiling_to_modifier received unknown tiling mode"); } -static unsigned -get_tiled_height(uint64_t modifier, unsigned height) -{ - int i; - - for (i = 0; i < ARRAY_SIZE(tiling_modifier_map); i++) { - if (tiling_modifier_map[i].modifier == modifier) - return ALIGN(height, tiling_modifier_map[i].height_align); - } - - unreachable("get_tiled_height received unknown tiling mode"); -} - static void intel_image_warn_if_unaligned(__DRIimage *image, const char *func) { |