mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 02:50:29 +01:00
r600: Use TRUNC_COORD on samplers
As per d573d1d825 the same should be done
here. It seems like TRUNCATE_COORD not available on r600, so this is
limited to evergreen.
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5078>
This commit is contained in:
parent
4174a13459
commit
c130a3402e
1 changed files with 3 additions and 0 deletions
|
|
@ -574,6 +574,8 @@ static void *evergreen_create_sampler_state(struct pipe_context *ctx,
|
|||
unsigned max_aniso = rscreen->force_aniso >= 0 ? rscreen->force_aniso
|
||||
: state->max_anisotropy;
|
||||
unsigned max_aniso_ratio = r600_tex_aniso_filter(max_aniso);
|
||||
bool trunc_coord = state->min_img_filter == PIPE_TEX_FILTER_NEAREST &&
|
||||
state->mag_img_filter == PIPE_TEX_FILTER_NEAREST;
|
||||
float max_lod = state->max_lod;
|
||||
|
||||
if (!ss) {
|
||||
|
|
@ -608,6 +610,7 @@ static void *evergreen_create_sampler_state(struct pipe_context *ctx,
|
|||
ss->tex_sampler_words[2] =
|
||||
S_03C008_LOD_BIAS(S_FIXED(CLAMP(state->lod_bias, -16, 16), 8)) |
|
||||
(state->seamless_cube_map ? 0 : S_03C008_DISABLE_CUBE_WRAP(1)) |
|
||||
S_03C008_TRUNCATE_COORD(trunc_coord) |
|
||||
S_03C008_TYPE(1);
|
||||
|
||||
if (ss->border_color_use) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue