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:
parent
f39846fb57
commit
d6c83c9d86
|
@ -70,7 +70,7 @@ surface_tiling_mode(uint32_t tiling)
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned
|
static unsigned
|
||||||
vertical_alignment(struct intel_mipmap_tree *mt)
|
vertical_alignment(const struct intel_mipmap_tree *mt)
|
||||||
{
|
{
|
||||||
switch (mt->align_h) {
|
switch (mt->align_h) {
|
||||||
case 4:
|
case 4:
|
||||||
|
@ -85,7 +85,7 @@ vertical_alignment(struct intel_mipmap_tree *mt)
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned
|
static unsigned
|
||||||
horizontal_alignment(struct intel_mipmap_tree *mt)
|
horizontal_alignment(const struct intel_mipmap_tree *mt)
|
||||||
{
|
{
|
||||||
switch (mt->align_w) {
|
switch (mt->align_w) {
|
||||||
case 4:
|
case 4:
|
||||||
|
|
Loading…
Reference in New Issue