i965/gen8: Use constant pointers for reading miptree details

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
Topi Pohjolainen 2015-03-01 22:23:33 +02:00
parent f39846fb57
commit d6c83c9d86
1 changed files with 2 additions and 2 deletions

View File

@ -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: