Fix #145667: Nearest interpolation is ignored in Vulkan

Blender compositor ignores nearest interpolation in Vulkan backend.
That's because anisotropic interpolation is used based on same left over
sampler state. To fix this, we clear anisotropic sampling in the
realization shader.

Pull Request: https://projects.blender.org/blender/blender/pulls/145905
This commit is contained in:
Omar Emara
2025-09-08 12:02:53 +02:00
committed by Omar Emara
parent f8303efd57
commit 329ba2f69e

View File

@@ -98,6 +98,7 @@ void RealizeOnDomainOperation::realize_on_domain_gpu(const float3x3 &inverse_tra
const bool use_bilinear = ELEM(
realization_options.interpolation, Interpolation::Bilinear, Interpolation::Bicubic);
GPU_texture_filter_mode(input, use_bilinear);
GPU_texture_anisotropic_filter(input, false);
GPU_texture_extend_mode_x(input,
map_extension_mode_to_extend_mode(realization_options.extension_x));