winsys/amdgpu: set addrlib flag opt4Space
authorMarek Olšák <marek.olsak@amd.com>
Fri, 11 Nov 2016 20:19:34 +0000 (21:19 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 21 Nov 2016 20:44:35 +0000 (21:44 +0100)
Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_surface.c

index d8ab28b36fdc3cd6a29249ce33213d5ec717de1a..08989b5cf531106a6cdac0a2761b341aaaa2826b 100644 (file)
@@ -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