From f0fb73dcf67adc109aebd58219d663f4a40e01f0 Mon Sep 17 00:00:00 2001 From: Khaled Emara Date: Tue, 9 Apr 2019 10:19:22 +0200 Subject: 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 --- src/gallium/drivers/freedreno/freedreno_screen.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/gallium/drivers/freedreno/freedreno_screen.c') 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: -- cgit v1.2.3