mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
gallium/radeon: fix maximum texture anisotropy setup
We were overdoing it for non-power-of-two values. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
2d7be5d37e
commit
1a98be001f
1 changed files with 9 additions and 5 deletions
|
|
@ -644,11 +644,15 @@ static inline bool r600_get_strmout_en(struct r600_common_context *rctx)
|
|||
|
||||
static inline unsigned r600_tex_aniso_filter(unsigned filter)
|
||||
{
|
||||
if (filter <= 1) return 0;
|
||||
if (filter <= 2) return 1;
|
||||
if (filter <= 4) return 2;
|
||||
if (filter <= 8) return 3;
|
||||
/* else */ return 4;
|
||||
if (filter < 2)
|
||||
return 0;
|
||||
if (filter < 4)
|
||||
return 1;
|
||||
if (filter < 8)
|
||||
return 2;
|
||||
if (filter < 16)
|
||||
return 3;
|
||||
return 4;
|
||||
}
|
||||
|
||||
static inline unsigned r600_wavefront_size(enum radeon_family family)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue