mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-27 20:09:01 +02:00
[TEST] Add ifdef for required bit
This commit is contained in:
parent
06fb00af94
commit
a906f6e72b
3 changed files with 7 additions and 4 deletions
|
|
@ -205,11 +205,14 @@ inline void PushImageDescriptors(TextureCache& texture_cache,
|
|||
const auto& device = texture_cache.runtime.device;
|
||||
const auto fmt_info = MaxwellToVK::SurfaceFormat(device, FormatType::Optimal, true,
|
||||
image_view.format);
|
||||
#ifdef VK_FORMAT_FEATURE_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT
|
||||
if (!device.IsFormatSupported(fmt_info.format,
|
||||
VK_FORMAT_FEATURE_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT,
|
||||
FormatType::Optimal)) {
|
||||
need_no_compare = true;
|
||||
}
|
||||
#else
|
||||
#endif
|
||||
}
|
||||
|
||||
VkSampler vk_sampler;
|
||||
|
|
|
|||
|
|
@ -2400,8 +2400,7 @@ Sampler::Sampler(TextureCacheRuntime& runtime, const Tegra::Texture::TSCEntry& t
|
|||
if (compare_enable) {
|
||||
sampler_no_compare = create_sampler(max_anisotropy, false);
|
||||
} else {
|
||||
sampler_no_compare = sampler;
|
||||
}
|
||||
|
||||
|
||||
const f32 max_anisotropy_default = static_cast<f32>(1U << tsc.max_anisotropy);
|
||||
if (max_anisotropy > max_anisotropy_default) {
|
||||
|
|
@ -2409,8 +2408,7 @@ Sampler::Sampler(TextureCacheRuntime& runtime, const Tegra::Texture::TSCEntry& t
|
|||
if (compare_enable) {
|
||||
sampler_no_compare_default_anisotropy = create_sampler(max_anisotropy_default, false);
|
||||
} else {
|
||||
sampler_no_compare_default_anisotropy = sampler_default_anisotropy;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -449,7 +449,9 @@ private:
|
|||
void QueueAsyncUnswizzle(Image& image, ImageId image_id);
|
||||
void TickAsyncUnswizzle();
|
||||
|
||||
public:
|
||||
Runtime& runtime;
|
||||
private:
|
||||
|
||||
Tegra::MaxwellDeviceMemoryManager& device_memory;
|
||||
std::deque<TextureCacheGPUMap> gpu_page_table_storage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue