summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/drm/amd/amd_screen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/winsys/drm/amd/amd_screen.c b/src/gallium/winsys/drm/amd/amd_screen.c
index 22d8973eb79..fcf8524525c 100644
--- a/src/gallium/winsys/drm/amd/amd_screen.c
+++ b/src/gallium/winsys/drm/amd/amd_screen.c
@@ -187,11 +187,12 @@ static boolean amd_buffer_create(__DRIscreenPrivate *dri_screen,
}
switch (visual->depthBits) {
+ case 24:
+ depth_format = PIPE_FORMAT_S8Z24_UNORM;
+ break;
case 16:
depth_format = PIPE_FORMAT_Z16_UNORM;
break;
- case 24:
- depth_format = PIPE_FORMAT_S8Z24_UNORM;
default:
depth_format = PIPE_FORMAT_NONE;
break;