diff options
author | Juan A. Suarez Romero <jasuarez@igalia.com> | 2022-02-25 17:47:44 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-03-02 12:55:17 +0000 |
commit | 5b43075888612d12b7f367a5c32a3e42a9ff0e0a (patch) | |
tree | 802fbd64543dac4610fc2105e76ae8f2a73c5f43 | |
parent | dc77542ed2226173286f4c9b37425efd101dc51c (diff) |
v3d: enable texture filtering anisotropic
Seems we already had implemented this feature (see commit 521e1d0275e
"broadcom/vc5: Add support for anisotropic filtering"), but we didn't
enable the proper capability.
Also update the maximum level of anistropy supported.
Fixes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4201
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15180>
-rw-r--r-- | src/gallium/drivers/v3d/v3d_screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c index 3a9019c070f..6aa4568cdcc 100644 --- a/src/gallium/drivers/v3d/v3d_screen.c +++ b/src/gallium/drivers/v3d/v3d_screen.c @@ -140,6 +140,7 @@ v3d_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_TGSI_TEXCOORD: case PIPE_CAP_TEXTURE_MIRROR_CLAMP_TO_EDGE: case PIPE_CAP_SAMPLER_VIEW_TARGET: + case PIPE_CAP_ANISOTROPIC_FILTER: return 1; case PIPE_CAP_TEXTURE_QUERY_LOD: @@ -320,7 +321,7 @@ v3d_screen_get_paramf(struct pipe_screen *pscreen, enum pipe_capf param) return V3D_MAX_POINT_SIZE; case PIPE_CAPF_MAX_TEXTURE_ANISOTROPY: - return 0.0f; + return 16.0f; case PIPE_CAPF_MAX_TEXTURE_LOD_BIAS: return 16.0f; |