diff options
author | Dave Airlie <[email protected]> | 2019-08-30 05:50:26 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2019-08-30 08:27:16 +1000 |
commit | a69ae76cc8b5cb707c6a4ec064a0d097dc25a0d1 (patch) | |
tree | b7a479e048c50e164db35e31a412e2b21e369418 | |
parent | 47cc660d9c19572e5ef2dce7c8ae1766a2ac9885 (diff) |
gallivm: disable accurate cube corner for integer textures.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111511
Reviewed-by: Roland Scheidegger <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c index adb6adf143a..48d98bb617a 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c @@ -1037,7 +1037,12 @@ lp_build_sample_image_linear(struct lp_build_sample_context *bld, bld->static_texture_state->target == PIPE_TEXTURE_CUBE_ARRAY) && bld->static_sampler_state->seamless_cube_map; - accurate_cube_corners = ACCURATE_CUBE_CORNERS && seamless_cube_filter; + /* + * Disable accurate cube corners for integer textures, which should only + * get here in the gather path. + */ + accurate_cube_corners = ACCURATE_CUBE_CORNERS && seamless_cube_filter && + !util_format_is_pure_integer(bld->static_texture_state->format); lp_build_extract_image_sizes(bld, &bld->int_size_bld, |