summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/amd/common/ac_surface.c')
-rw-r--r--src/amd/common/ac_surface.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c
index 1b4d72e31bd..7558dd91e34 100644
--- a/src/amd/common/ac_surface.c
+++ b/src/amd/common/ac_surface.c
@@ -865,9 +865,12 @@ gfx9_get_preferred_swizzle_mode(ADDR_HANDLE addrlib,
sin.numSamples = in->numSamples;
sin.numFrags = in->numFrags;
- if (flags & RADEON_SURF_SCANOUT)
+ if (flags & RADEON_SURF_SCANOUT) {
sin.preferredSwSet.sw_D = 1;
- else if (in->flags.depth || in->flags.stencil || is_fmask)
+ /* Raven only allows S for displayable surfaces with < 64 bpp, so
+ * allow it as fallback */
+ sin.preferredSwSet.sw_S = 1;
+ } else if (in->flags.depth || in->flags.stencil || is_fmask)
sin.preferredSwSet.sw_Z = 1;
else
sin.preferredSwSet.sw_S = 1;