softpipe: Clamp border colors when needed

Graphics / Mesa 3D Graphics Library / Mesa - Gert Wollny [collabora.com] - 18 July 2019 03:49 EDT

unorm and snorm require that the border color values are clamped, so when picking the sampler view copy/clamp the border color from the sampler and use these adjusted values.

Fixes:

dEQP-GLES31.functional.texture.border_clamp.range_clamp.linear_compressed_color dEQP-GLES31.functional.texture.border_clamp.range_clamp.linear_snorm_color dEQP-GLES31.functional.texture.border_clamp.range_clamp.linear_srgb_color dEQP-GLES31.functional.texture.border_clamp.range_clamp.linear_unorm_color dEQP-GLES31.functional.texture.border_clamp.range_clamp.nearest_compressed_color dEQP-GLES31.functional.texture.border_clamp.range_clamp.nearest_snorm_color dEQP-GLES31.functional.texture.border_clamp.range_clamp.nearest_srgb_color dEQP-GLES31.functional.texture.border_clamp.range_clamp.nearest_unorm_color dEQP-GLES31.functional.texture.border_clamp.range_clamp.nearest_unorm_depth dEQP-GLES31.functional.texture.border_clamp.range_clamp.nearest_unorm_depth_uint_stencil_sample_depth

45951452aa2 softpipe: Clamp border colors when needed
src/gallium/drivers/softpipe/sp_tex_sample.c | 44 +++++++++++++++++++---------
src/gallium/drivers/softpipe/sp_tex_sample.h | 1 +
2 files changed, 31 insertions(+), 14 deletions(-)

Upstream: cgit.freedesktop.org


  • Share