rpcsx/rpcsx-gpu2/lib/amdgpu-tiler/include/amdgpu/tiler_vulkan.hpp
DH 4185b1aa40 gpu2: implement depth textures
initial 2d tiler implementation
fixed mtbuf index order
simplify v_mac_*_f32 instructions
2024-09-28 03:12:12 +03:00

26 lines
785 B
C++

#pragma once
#include "gnm/constants.hpp"
#include "tiler.hpp"
#include <Scheduler.hpp>
#include <memory>
namespace amdgpu {
struct GpuTiler {
struct Impl;
GpuTiler();
~GpuTiler();
void detile(Scheduler &scheduler, const amdgpu::SurfaceInfo &info,
amdgpu::TileMode tileMode, gnm::DataFormat dfmt,
std::uint64_t srcTiledAddress, std::uint64_t dstLinearAddress,
int mipLevel, int baseArray, int arrayCount);
void tile(Scheduler &scheduler, const amdgpu::SurfaceInfo &info,
amdgpu::TileMode tileMode, gnm::DataFormat dfmt,
std::uint64_t srcLinearAddress, std::uint64_t dstTiledAddress,
int mipLevel, int baseArray, int arrayCount);
private:
std::unique_ptr<Impl> mImpl;
};
} // namespace amdgpu