From: Nicolai Hähnle Date: Wed, 6 Apr 2016 16:45:37 +0000 (-0500) Subject: radeonsi: replace magic 16 by SI_NUM_USER_SAMPLERS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f270067ef9c755a10d852c3e6ef4e9a01aabcb17;p=mesa.git radeonsi: replace magic 16 by SI_NUM_USER_SAMPLERS Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 97be59d2272..41bb84d68df 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -523,7 +523,7 @@ static int si_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enu return 0; case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS: case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS: - return 16; + return SI_NUM_USER_SAMPLERS; case PIPE_SHADER_CAP_PREFERRED_IR: return PIPE_SHADER_IR_TGSI; case PIPE_SHADER_CAP_SUPPORTED_IRS: