diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-11-21 22:02:02 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-11-22 21:44:35 +0100 |
commit | e7c74a7dfab789496761226fe62a08f2d9fea5c7 (patch) | |
tree | 76ae18013c2933a75123380f19c339bfb5772f56 | |
parent | 6a0255122a7d7c0aa09bceacda90a5cea67d5ee2 (diff) |
st/mesa: set MaxUniformComponents
Signed-off-by: Brian Paul <brianp@vmware.com>
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 8c3fa0eef4..e72caa3842 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -164,6 +164,7 @@ void st_init_limits(struct st_context *st) pc->MaxNativeTemps = screen->get_shader_param(screen, i, PIPE_SHADER_CAP_MAX_TEMPS); pc->MaxNativeAddressRegs = screen->get_shader_param(screen, i, PIPE_SHADER_CAP_MAX_ADDRS); pc->MaxNativeParameters = screen->get_shader_param(screen, i, PIPE_SHADER_CAP_MAX_CONSTS); + pc->MaxUniformComponents = 4 * MIN2(pc->MaxNativeParameters, MAX_UNIFORMS); options->EmitNoNoise = TRUE; |