mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 06:10:13 +01:00
radeonsi: fix r600_texture::tc_compatible_htile
htile_size is now always non-zero if HTILE is allocated. It seems to have caused no issues. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
ce3189cbe6
commit
ce3f453f01
1 changed files with 3 additions and 3 deletions
|
|
@ -1007,9 +1007,9 @@ r600_texture_create_object(struct pipe_screen *screen,
|
|||
rtex->surface = *surface;
|
||||
rtex->size = rtex->surface.surf_size;
|
||||
|
||||
rtex->tc_compatible_htile = rtex->surface.htile_size != 0;
|
||||
assert(!!(rtex->surface.flags & RADEON_SURF_TC_COMPATIBLE_HTILE) ==
|
||||
rtex->tc_compatible_htile);
|
||||
rtex->tc_compatible_htile = rtex->surface.htile_size != 0 &&
|
||||
(rtex->surface.flags &
|
||||
RADEON_SURF_TC_COMPATIBLE_HTILE);
|
||||
|
||||
/* TC-compatible HTILE only supports Z32_FLOAT. */
|
||||
if (rtex->tc_compatible_htile)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue