From 04f2c88f45e26d7050cc88aaaac8e8154d6018d0 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 24 Jul 2014 20:32:08 +0200 Subject: gallium: rename shader cap MAX_CONSTS to MAX_CONST_BUFFER_SIZE This new name isn't so confusing. I also changed the gallivm limit, because it looked wrong. Reviewed-by: Brian Paul v2: use sizeof(float[4]) --- src/gallium/drivers/ilo/ilo_screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/ilo/ilo_screen.c') diff --git a/src/gallium/drivers/ilo/ilo_screen.c b/src/gallium/drivers/ilo/ilo_screen.c index d22691101d9..fde4cc4f34c 100644 --- a/src/gallium/drivers/ilo/ilo_screen.c +++ b/src/gallium/drivers/ilo/ilo_screen.c @@ -116,8 +116,8 @@ ilo_get_shader_param(struct pipe_screen *screen, unsigned shader, case PIPE_SHADER_CAP_MAX_INPUTS: /* this is limited by how many attributes SF can remap */ return 16; - case PIPE_SHADER_CAP_MAX_CONSTS: - return 1024; + case PIPE_SHADER_CAP_MAX_CONST_BUFFER_SIZE: + return 1024 * sizeof(float[4]); case PIPE_SHADER_CAP_MAX_CONST_BUFFERS: return ILO_MAX_CONST_BUFFERS; case PIPE_SHADER_CAP_MAX_TEMPS: -- cgit v1.2.3