[Mesa-dev] [PATCH 3/3] radeonsi/compute: Default to the same PIPE_SHADER_CAP values as other shader types

Tom Stellard thomas.stellard at amd.com
Fri Mar 20 17:35:08 PDT 2015


---
 src/gallium/drivers/radeonsi/si_pipe.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index f1a5388..545c156 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -373,8 +373,12 @@ static int si_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enu
 			return max_const_buffer_size;
 		}
 		default:
-			return 0;
+			/* If compute shaders don't require a speical value
+			 * for this cap, we can return the same value we
+			 * do for other shader types. */
+			break;
 		}
+		break;
 	default:
 		/* TODO: support tessellation */
 		return 0;
-- 
2.0.4



More information about the mesa-dev mailing list