[Mesa-dev] [PATCH 2/2] mesa/st: set min/max texture gather offset to driver-reported value

Marek Olšák maraeo at gmail.com
Thu Apr 10 04:31:51 PDT 2014


For the series: Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Thu, Apr 10, 2014 at 5:30 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> It was always getting set to -8/7 unconditionally.  Use the
> driver-reported value instead.
>
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>  src/mesa/state_tracker/st_extensions.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
> index 845d29c..673a855 100644
> --- a/src/mesa/state_tracker/st_extensions.c
> +++ b/src/mesa/state_tracker/st_extensions.c
> @@ -275,6 +275,9 @@ void st_init_limits(struct st_context *st)
>     c->MaxProgramTexelOffset = screen->get_param(screen, PIPE_CAP_MAX_TEXEL_OFFSET);
>
>     c->MaxProgramTextureGatherComponents = screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS);
> +   c->MinProgramTextureGatherOffset = screen->get_param(screen, PIPE_CAP_MIN_TEXTURE_GATHER_OFFSET);
> +   c->MaxProgramTextureGatherOffset = screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_GATHER_OFFSET);
> +
>     c->UniformBooleanTrue = ~0;
>
>     c->MaxTransformFeedbackBuffers =
> --
> 1.8.3.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list