mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 21:40:20 +01:00
r600g: disable aniso filtering for non-mipmap textures on EG
this is the default behavior of the closed driver when running on VI Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
3bc2d967c4
commit
b36f19bf98
1 changed files with 3 additions and 1 deletions
|
|
@ -848,10 +848,12 @@ evergreen_create_sampler_view_custom(struct pipe_context *ctx,
|
|||
view->tex_resource_words[5] |= S_030014_LAST_LEVEL(log_samples);
|
||||
view->tex_resource_words[6] |= S_030018_FMASK_BANK_HEIGHT(fmask_bankh);
|
||||
} else {
|
||||
bool no_mip = first_level == last_level;
|
||||
|
||||
view->tex_resource_words[4] |= S_030010_BASE_LEVEL(first_level);
|
||||
view->tex_resource_words[5] |= S_030014_LAST_LEVEL(last_level);
|
||||
/* aniso max 16 samples */
|
||||
view->tex_resource_words[6] |= S_030018_MAX_ANISO_RATIO(4);
|
||||
view->tex_resource_words[6] |= S_030018_MAX_ANISO_RATIO(no_mip ? 0 : 4);
|
||||
}
|
||||
|
||||
view->tex_resource_words[7] = S_03001C_DATA_FORMAT(format) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue