From: Marek Olšák Date: Fri, 4 Nov 2016 11:31:53 +0000 (+0100) Subject: radeonsi: increase MAX_CONTROL_FLOW_DEPTH AKA MaxIfDepth X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f6e0063c8e06856004bed9b6bccc2492e351d5a;p=mesa.git radeonsi: increase MAX_CONTROL_FLOW_DEPTH AKA MaxIfDepth we don't want to lower deep IFs unconditionally Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 273633cdb48..900de9fa214 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -608,9 +608,8 @@ static int si_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enu case PIPE_SHADER_CAP_MAX_ALU_INSTRUCTIONS: case PIPE_SHADER_CAP_MAX_TEX_INSTRUCTIONS: case PIPE_SHADER_CAP_MAX_TEX_INDIRECTIONS: - return 16384; case PIPE_SHADER_CAP_MAX_CONTROL_FLOW_DEPTH: - return 32; + return 16384; case PIPE_SHADER_CAP_MAX_INPUTS: return shader == PIPE_SHADER_VERTEX ? SI_NUM_VERTEX_BUFFERS : 32; case PIPE_SHADER_CAP_MAX_OUTPUTS: