mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-27 15:49:04 +02:00
Revert "[TEST] Add ifdef for required bit"
This commit is contained in:
parent
9d75f52d6a
commit
2107d1dad4
3 changed files with 4 additions and 7 deletions
|
|
@ -205,14 +205,11 @@ 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,7 +2400,8 @@ 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) {
|
||||
|
|
@ -2408,7 +2409,8 @@ 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,9 +449,7 @@ 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