radeonsi: replace magic 16 by SI_NUM_USER_SAMPLERS
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 6 Apr 2016 16:45:37 +0000 (11:45 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 7 Apr 2016 18:15:06 +0000 (13:15 -0500)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c

index 97be59d2272e0a3ae97e16b440de247c9659e364..41bb84d68df9eea8b719d91ee4f99b379951add1 100644 (file)
@@ -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: