mesa/st: add pipe_sampler_state::border_color_is_integer

some drivers need to know whether the border color format is integer,
so this allows disambiguation between samplers based on format types

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8756>
This commit is contained in:
Mike Blumenkrantz
2021-01-25 15:31:15 -05:00
committed by Marge Bot
parent b154a4154b
commit 10e71d5c9a
2 changed files with 2 additions and 0 deletions

View File

@@ -202,6 +202,7 @@ st_convert_sampler(const struct st_context *st,
&sampler->border_color,
texBaseFormat, is_integer);
}
sampler->border_color_is_integer = is_integer;
}
sampler->max_anisotropy = (msamp->Attrib.MaxAnisotropy == 1.0 ?