From d6c83c9d863f9f13e46584b93cbab6d3a3885aea Mon Sep 17 00:00:00 2001 From: Topi Pohjolainen Date: Sun, 1 Mar 2015 22:23:33 +0200 Subject: [PATCH] i965/gen8: Use constant pointers for reading miptree details Reviewed-by: Matt Turner Reviewed-by: Kenneth Graunke Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/gen8_surface_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/drivers/dri/i965/gen8_surface_state.c index b8ef353a32b..f347065d102 100644 --- a/src/mesa/drivers/dri/i965/gen8_surface_state.c +++ b/src/mesa/drivers/dri/i965/gen8_surface_state.c @@ -70,7 +70,7 @@ surface_tiling_mode(uint32_t tiling) } static unsigned -vertical_alignment(struct intel_mipmap_tree *mt) +vertical_alignment(const struct intel_mipmap_tree *mt) { switch (mt->align_h) { case 4: @@ -85,7 +85,7 @@ vertical_alignment(struct intel_mipmap_tree *mt) } static unsigned -horizontal_alignment(struct intel_mipmap_tree *mt) +horizontal_alignment(const struct intel_mipmap_tree *mt) { switch (mt->align_w) { case 4: -- 2.30.2