diff options
author | Marek Olšák <marek.olsak@amd.com> | 2014-07-24 20:32:08 +0200 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2014-07-28 23:57:08 +0200 |
commit | 04f2c88f45e26d7050cc88aaaac8e8154d6018d0 (patch) | |
tree | f2c3713a675d01a3a44f90c01b69d44aecfdb7b5 /src/gallium/drivers/radeonsi | |
parent | d5bcb5e8dea3dc949ff6b093af7f46585b94b63e (diff) | |
download | external_mesa3d-04f2c88f45e26d7050cc88aaaac8e8154d6018d0.zip external_mesa3d-04f2c88f45e26d7050cc88aaaac8e8154d6018d0.tar.gz external_mesa3d-04f2c88f45e26d7050cc88aaaac8e8154d6018d0.tar.bz2 |
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 <brianp@vmware.com>
v2: use sizeof(float[4])
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 4f19268..635b37d 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -350,8 +350,8 @@ static int si_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enu case PIPE_SHADER_CAP_MAX_ADDRS: /* FIXME Isn't this equal to TEMPS? */ return 1; /* Max native address registers */ - case PIPE_SHADER_CAP_MAX_CONSTS: - return 4096; /* actually only memory limits this */ + case PIPE_SHADER_CAP_MAX_CONST_BUFFER_SIZE: + return 4096 * sizeof(float[4]); /* actually only memory limits this */ case PIPE_SHADER_CAP_MAX_CONST_BUFFERS: return SI_NUM_USER_CONST_BUFFERS; case PIPE_SHADER_CAP_MAX_PREDS: |