From 4ac250c9d594898ad02323dbf02aab8792366d11 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 22 Nov 2011 20:44:14 +0100 Subject: [PATCH] r600g: remove default case statements in get_param This will throw a compile warning if there's an unhandled CAP. --- src/gallium/drivers/r600/r600_pipe.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index c31ddc254c3..0b751e046bb 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -425,11 +425,8 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_MAX_TEXEL_OFFSET: return 7; - - default: - R600_ERR("r600: unknown param %d\n", param); - return 0; } + return 0; } static float r600_get_paramf(struct pipe_screen* pscreen, @@ -451,10 +448,8 @@ static float r600_get_paramf(struct pipe_screen* pscreen, return 16.0f; case PIPE_CAPF_MAX_TEXTURE_LOD_BIAS: return 16.0f; - default: - R600_ERR("r600: unsupported paramf %d\n", param); - return 0.0f; } + return 0.0f; } static int r600_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enum pipe_shader_cap param) @@ -515,9 +510,8 @@ static int r600_get_shader_param(struct pipe_screen* pscreen, unsigned shader, e return 16; case PIPE_SHADER_CAP_OUTPUT_READ: return 1; - default: - return 0; } + return 0; } static int r600_get_video_param(struct pipe_screen *screen, -- 2.30.2