remove virtual flag leftover

This commit is contained in:
psucien 2024-11-24 16:41:12 +01:00
parent 683849d33b
commit 7fd9b4b057
4 changed files with 0 additions and 8 deletions

View File

@ -558,7 +558,6 @@ void Rasterizer::BindTextures(const Shader::Info& stage, Shader::Backend::Bindin
std::tuple{tsharp, image_desc});
image_id = texture_cache.FindImage(desc);
auto& image = texture_cache.GetImage(image_id);
ASSERT(False(image.flags & VideoCore::ImageFlagBits::Virtual));
if (image.binding.is_bound) {
// The image is already bound. In case if it is about to be used as storage we need
// to force general layout on it.

View File

@ -146,11 +146,6 @@ Image::Image(const Vulkan::Instance& instance_, Vulkan::Scheduler& scheduler_,
: instance{&instance_}, scheduler{&scheduler_}, info{info_},
image{instance->GetDevice(), instance->GetAllocator()}, cpu_addr{info.guest_address},
cpu_addr_end{cpu_addr + info.guest_size_bytes} {
if (info.props.is_virtual) {
flags |= ImageFlagBits::Virtual;
return;
}
mip_hashes.resize(info.resources.levels);
ASSERT(info.pixel_format != vk::Format::eUndefined);
// Here we force `eExtendedUsage` as don't know all image usage cases beforehand. In normal case

View File

@ -22,7 +22,6 @@ VK_DEFINE_HANDLE(VmaAllocator)
namespace VideoCore {
enum ImageFlagBits : u32 {
Virtual = 1 << 0, ///< Image doesn't have Vk object representation and used only for tracking
CpuDirty = 1 << 1, ///< Contents have been modified from the CPU
GpuDirty = 1 << 2, ///< Contents have been modified from the GPU (valid data in buffer cache)
Dirty = CpuDirty | GpuDirty,

View File

@ -66,7 +66,6 @@ struct ImageInfo {
u32 is_tiled : 1;
u32 is_pow2 : 1;
u32 is_block : 1;
u32 is_virtual : 1;
} props{}; // Surface properties with impact on various calculation factors
vk::Format pixel_format = vk::Format::eUndefined;