[Freedreno] [PATCH] freedreno: PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT unreachable statement

Khaled Emara ekhaled1836 at gmail.com
Tue Apr 9 08:19:22 UTC 2019


There seems to be a duplicate return statement,
as A2XX doesn't support shader buffers.
---
 src/gallium/drivers/freedreno/freedreno_screen.c | 1 -
 1 file changed, 1 deletion(-)

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:
-- 
2.21.0



More information about the Freedreno mailing list