diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-11-22 20:44:14 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-11-22 20:56:51 +0100 |
commit | 4ac250c9d594898ad02323dbf02aab8792366d11 (patch) | |
tree | 646ac4d2651eb3d912957f8d36bd840f12bcae40 /src | |
parent | 650f6a68153cb06a0fe0a34b6497d673cd24cec9 (diff) |
r600g: remove default case statements in get_param
This will throw a compile warning if there's an unhandled CAP.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index c31ddc254c..0b751e046b 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, |