mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue