summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/drm
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-01-23 16:00:33 -0800
committerCorbin Simpson <[email protected]>2009-02-01 23:30:26 -0800
commit5f95f0538e5a354431cc3bbed662c4983e6d0614 (patch)
tree2f1e2977dac42e396d01312281a070d0fe6b55c0 /src/gallium/winsys/drm
parent45cb94217ebd55a4d38264ce83806062ba25a478 (diff)
amd: Fix missing break statement.
Diffstat (limited to 'src/gallium/winsys/drm')
-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;