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

Tom Stellard thomas.stellard at amd.com
Mon Mar 23 07:53:40 PDT 2015


v2:
  - Fix typo
---
 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 d335bda..c7773b7 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -376,8 +376,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 special 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