From 838316dd5b530444499d285c3c679a2dd421791e Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Mon, 10 May 2021 09:08:48 +0200 Subject: [PATCH] broacom/compiler: enable PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR We have been able to to handle indirect offsets on GS outputs for a while and we have just implemented this for VS, so we can enable this capability and avoid the horrible if-ladder code to convert indirect output indices to constant indices. Reviewed-by: Juan A. Suarez Part-of: --- src/gallium/drivers/v3d/v3d_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c index 546cdf8e341..c319241cd9c 100644 --- a/src/gallium/drivers/v3d/v3d_screen.c +++ b/src/gallium/drivers/v3d/v3d_screen.c @@ -370,7 +370,7 @@ v3d_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader, case PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR: return 1; case PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR: - return 0; + return 1; case PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR: return 1; case PIPE_SHADER_CAP_INDIRECT_CONST_ADDR: