intel: Use the parent miptree's format for setting up HiZ miptrees.
This worked out before because the parent was always 4 bytes so it didn't affect the layout, but now we want to support Z16 too. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
cb3b172d19
commit
3e1d8e62e7
1 changed files with 1 additions and 1 deletions
|
|
@ -857,7 +857,7 @@ intel_miptree_alloc_hiz(struct intel_context *intel,
|
|||
/* MSAA HiZ surfaces always use IMS layout. */
|
||||
mt->hiz_mt = intel_miptree_create(intel,
|
||||
mt->target,
|
||||
MESA_FORMAT_X8_Z24,
|
||||
mt->format,
|
||||
mt->first_level,
|
||||
mt->last_level,
|
||||
mt->width0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue