Mesa (master): lavapipe: don't advertise linear filtering on integer textures.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Nov 3 21:46:13 UTC 2020
Module: Mesa
Branch: master
Commit: 9d3615166efa648499157c7747db96076081721b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d3615166efa648499157c7747db96076081721b
Author: Dave Airlie <airlied at redhat.com>
Date: Tue Nov 3 13:57:32 2020 +1000
lavapipe: don't advertise linear filtering on integer textures.
The backend doesn't support this.
Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7416>
---
src/gallium/frontends/lavapipe/lvp_formats.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/frontends/lavapipe/lvp_formats.c b/src/gallium/frontends/lavapipe/lvp_formats.c
index c05863dec4e..b5123306e8b 100644
--- a/src/gallium/frontends/lavapipe/lvp_formats.c
+++ b/src/gallium/frontends/lavapipe/lvp_formats.c
@@ -201,7 +201,8 @@ lvp_physical_device_get_format_properties(struct lvp_physical_device *physical_d
if (physical_device->pscreen->is_format_supported(physical_device->pscreen, pformat,
PIPE_TEXTURE_2D, 0, 0, PIPE_BIND_SAMPLER_VIEW)) {
features |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT;
- features |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT;
+ if (!util_format_is_pure_integer(pformat))
+ features |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT;
}
if (physical_device->pscreen->is_format_supported(physical_device->pscreen, pformat,
More information about the mesa-commit
mailing list