[Mesa-stable] [PATCH] winsys/amdgpu: disallow DCC with mipmaps
Marek Olšák
maraeo at gmail.com
Tue Jun 7 16:35:52 UTC 2016
From: Marek Olšák <marek.olsak at amd.com>
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 at lists.freedesktop.org>
---
src/gallium/winsys/amdgpu/drm/amdgpu_surface.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c b/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c
index d68c688..c17a37f 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c
@@ -343,7 +343,8 @@ static int amdgpu_surface_init(struct radeon_winsys *rws,
AddrSurfInfoIn.flags.degrade4Space = 1;
AddrSurfInfoIn.flags.dccCompatible = !(surf->flags & RADEON_SURF_Z_OR_SBUFFER) &&
!(surf->flags & RADEON_SURF_SCANOUT) &&
- !compressed && AddrDccIn.numSamples <= 1;
+ !compressed && AddrDccIn.numSamples <= 1 &&
+ surf->last_level == 0;
AddrSurfInfoIn.flags.noStencil = (surf->flags & RADEON_SURF_SBUFFER) == 0;
AddrSurfInfoIn.flags.compressZ = AddrSurfInfoIn.flags.depth;
--
2.7.4
More information about the mesa-stable
mailing list