mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 08:33:12 -05:00
An S# with FILTER_MODE (word0 bits 29-30) set threw in DecodeSamplerResource. Modes 1 and 2 now map to Vulkan's MIN and MAX sampler reduction through VK_EXT_sampler_filter_minmax, which the device enables when it reports both filterMinmax properties; mode 3 throws. Min/max still throws with anisotropy, a linear mip filter (lavapipe and NVIDIA disagree there), depth comparison, color-texture compare emulation, and, in PointFilteredSamplerWord (S# words 0 and 2), when it filters between texels or mips of an image the recompiler point-samples. A texture sampled through a linear min/max sampler needs SAMPLED_IMAGE_FILTER_MINMAX on its view format; the image-sampler pairs travel in DescriptorBinding::imageSamplers (shader disk cache format 5). Adds the agc_driver_image_sample_reduction GPU test and extends the sampler, emulated color compare and disk cache tests.