aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorTopi Pohjolainen <[email protected]>2015-03-01 22:23:33 +0200
committerTopi Pohjolainen <[email protected]>2015-04-30 00:28:47 +0300
commitd6c83c9d863f9f13e46584b93cbab6d3a3885aea (patch)
tree033d15f452ff74db0183120b9983ff1c2f524940 /src/mesa/drivers/dri
parentf39846fb57c2b4d29b65a40019ba55219b062117 (diff)
i965/gen8: Use constant pointers for reading miptree details
Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Signed-off-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/gen8_surface_state.c4
1 files 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: