mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
ac/surface: sanity-check that we got a TC-compatible HTILE if requested
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
b2b0702868
commit
481df8032b
1 changed files with 6 additions and 0 deletions
|
|
@ -679,6 +679,12 @@ static int gfx6_compute_surface(ADDR_HANDLE addrlib,
|
||||||
if (level > 0)
|
if (level > 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/* Check that we actually got a TC-compatible HTILE if
|
||||||
|
* we requested it (only for level 0, since we're not
|
||||||
|
* supporting HTILE on higher mip levels anyway). */
|
||||||
|
assert(AddrSurfInfoOut.tcCompatible ||
|
||||||
|
!AddrSurfInfoIn.flags.tcCompatible);
|
||||||
|
|
||||||
r = gfx6_surface_settings(addrlib, info, config,
|
r = gfx6_surface_settings(addrlib, info, config,
|
||||||
&AddrSurfInfoOut, surf);
|
&AddrSurfInfoOut, surf);
|
||||||
if (r)
|
if (r)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue