[Mesa-dev] [PATCH v2 14/17] radeonsi: We don't support indirect addressing of geometry shader inputs

Michel Dänzer michel at daenzer.net
Tue Jan 28 01:44:53 PST 2014


From: Michel Dänzer <michel.daenzer at amd.com>

Fixes piglit spec/glsl-1.50/execution/geometry/dynamic_input_array_index

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---

v2: Limit to geometry shader inputs, add explanatory comment

 src/gallium/drivers/radeonsi/si_pipe.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 040944d..768b84d 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -380,6 +380,10 @@ static int si_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enu
 	case PIPE_SHADER_CAP_TGSI_SQRT_SUPPORTED:
 		return 0;
 	case PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR:
+		/* Indirection of geometry shader input dimension is not
+		 * handled yet
+		 */
+		return shader < PIPE_SHADER_GEOMETRY;
 	case PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR:
 	case PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR:
 	case PIPE_SHADER_CAP_INDIRECT_CONST_ADDR:
-- 
1.8.5.3



More information about the mesa-dev mailing list