From: Marek Olšák Date: Fri, 11 Nov 2016 20:19:34 +0000 (+0100) Subject: winsys/amdgpu: set addrlib flag opt4Space X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79a8e674aef8d50e79f5d4ab25e0f951d1c69398;p=mesa.git winsys/amdgpu: set addrlib flag opt4Space Tested-by: Edmondo Tommasina Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c b/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c index d8ab28b36fd..08989b5cf53 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c @@ -405,6 +405,7 @@ static int amdgpu_surface_init(struct radeon_winsys *rws, !AddrSurfInfoIn.flags.fmask && tex->nr_samples <= 1 && (flags & RADEON_SURF_OPTIMIZE_FOR_SPACE); + AddrSurfInfoIn.flags.opt4Space = AddrSurfInfoIn.flags.degrade4Space; /* DCC notes: * - If we add MSAA support, keep in mind that CB can't decompress 8bpp