mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
winsys/amdgpu: disallow DCC with mipmaps
It has never been implemented. master will get a different fix. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96381 Cc: 11.1 11.2 12.0 <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
faa432c0b6
commit
3b4c74963a
1 changed files with 2 additions and 1 deletions
|
|
@ -345,7 +345,8 @@ static int amdgpu_surface_init(struct radeon_winsys *rws,
|
|||
AddrSurfInfoIn.flags.dccCompatible = !(surf->flags & RADEON_SURF_Z_OR_SBUFFER) &&
|
||||
!(surf->flags & RADEON_SURF_SCANOUT) &&
|
||||
!(surf->flags & RADEON_SURF_DISABLE_DCC) &&
|
||||
!compressed && AddrDccIn.numSamples <= 1;
|
||||
!compressed && AddrDccIn.numSamples <= 1 &&
|
||||
surf->last_level == 0;
|
||||
|
||||
/* This disables incorrect calculations (hacks) in addrlib. */
|
||||
AddrSurfInfoIn.flags.noStencil = 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue