aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_screen.c
diff options
context:
space:
mode:
authorKhaled Emara <[email protected]>2019-04-09 10:19:22 +0200
committerRob Clark <[email protected]>2019-04-09 17:31:06 -0400
commitf0fb73dcf67adc109aebd58219d663f4a40e01f0 (patch)
treea8ce41673ffa29ca62dda2f4719ca9c4aec4fe2c /src/gallium/drivers/freedreno/freedreno_screen.c
parented009e68c5862fdac8ebd86bfb8a6899931eb8d3 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_screen.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_screen.c1
1 files changed, 0 insertions, 1 deletions
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: