video_core: Add vulkan shaders (#6619)
This commit is contained in:
@@ -1000,7 +1000,7 @@ void RasterizerCache<T>::UploadSurface(Surface& surface, SurfaceInterval interva
|
||||
}
|
||||
|
||||
const BufferTextureCopy upload = {
|
||||
.buffer_offset = 0,
|
||||
.buffer_offset = staging.offset,
|
||||
.buffer_size = staging.size,
|
||||
.texture_rect = surface.GetSubRect(load_info),
|
||||
.texture_level = surface.LevelOf(load_info.addr),
|
||||
@@ -1080,7 +1080,7 @@ void RasterizerCache<T>::DownloadSurface(Surface& surface, SurfaceInterval inter
|
||||
flush_info.width * flush_info.height * surface.GetInternalBytesPerPixel(), false);
|
||||
|
||||
const BufferTextureCopy download = {
|
||||
.buffer_offset = 0,
|
||||
.buffer_offset = staging.offset,
|
||||
.buffer_size = staging.size,
|
||||
.texture_rect = surface.GetSubRect(flush_info),
|
||||
.texture_level = surface.LevelOf(flush_start),
|
||||
@@ -1137,7 +1137,7 @@ bool RasterizerCache<T>::ValidateByReinterpretation(Surface& surface, SurfacePar
|
||||
if (reinterpret_id) {
|
||||
Surface& src_surface = slot_surfaces[reinterpret_id];
|
||||
const SurfaceInterval copy_interval = src_surface.GetCopyableInterval(params);
|
||||
if (boost::icl::is_empty(copy_interval)) {
|
||||
if (boost::icl::is_empty(copy_interval & interval)) {
|
||||
return false;
|
||||
}
|
||||
const PAddr addr = boost::icl::lower(interval);
|
||||
|
@@ -75,8 +75,8 @@ struct BufferTextureCopy {
|
||||
|
||||
struct StagingData {
|
||||
u32 size;
|
||||
u32 offset;
|
||||
std::span<u8> mapped;
|
||||
u64 buffer_offset;
|
||||
};
|
||||
|
||||
struct TextureCubeConfig {
|
||||
|
Reference in New Issue
Block a user