From: Khaled Emara Date: Tue, 9 Apr 2019 08:19:22 +0000 (+0200) Subject: freedreno: PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT unreachable statement X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0fb73dcf67adc109aebd58219d663f4a40e01f0;p=mesa.git freedreno: PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT unreachable statement There seems to be a duplicate return statement, as A2XX doesn't support shader buffers. Reviewed-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index c27b1d36253..40dc16f82cd 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -290,7 +290,6 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT: if (is_a6xx(screen)) return 64; if (is_a5xx(screen)) return 4; - return 4; return 0; case PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS: