[Mesa-dev] [PATCH] st/mesa: set MaxUniformComponents
Brian Paul
brianp at vmware.com
Mon Nov 22 08:19:16 PST 2010
On 11/21/2010 02:18 PM, Marek Olšák wrote:
> ---
> 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 8c3fa0e..e72caa3 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;
>
Signed-off-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list