[Mesa-dev] [PATCH] gallivm: disable accurate cube corner for integer textures.

Dave Airlie airlied at gmail.com
Thu Aug 29 20:06:57 UTC 2019


From: Dave Airlie <airlied at redhat.com>

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111511
---
 src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
index adb6adf143a..69dba78ac8a 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
@@ -1039,6 +1039,10 @@ lp_build_sample_image_linear(struct lp_build_sample_context *bld,
 
    accurate_cube_corners = ACCURATE_CUBE_CORNERS && seamless_cube_filter;
 
+   /* disable accurate cube corners for integer textures. */
+   if (is_gather && util_format_is_pure_integer(bld->static_texture_state->format))
+      accurate_cube_corners = FALSE;
+
    lp_build_extract_image_sizes(bld,
                                 &bld->int_size_bld,
                                 bld->int_coord_type,
-- 
2.21.0



More information about the mesa-dev mailing list