Module: Mesa
Branch: master
Commit: 9d3615166efa648499157c7747db96076081721b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d3615166efa648499157c7747db96076081721b

Author: Dave Airlie <[email protected]>
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 <[email protected]>
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,

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to