rsx: Do not lie about surface details

This commit is contained in:
kd-11 2022-08-19 22:02:04 +03:00 committed by kd-11
parent b5abd777b0
commit f981e05908
2 changed files with 8 additions and 10 deletions

View File

@ -240,10 +240,9 @@ struct gl_render_target_traits
std::unique_ptr<gl::render_target> convert_pitch( std::unique_ptr<gl::render_target> convert_pitch(
gl::command_context& /*cmd*/, gl::command_context& /*cmd*/,
std::unique_ptr<gl::render_target>& src, std::unique_ptr<gl::render_target>& src,
usz out_pitch) usz /*out_pitch*/)
{ {
// TODO // TODO
src->set_rsx_pitch(static_cast<u32>(out_pitch));
src->state_flags = rsx::surface_state_flags::erase_bkgnd; src->state_flags = rsx::surface_state_flags::erase_bkgnd;
return {}; return {};
} }
@ -348,19 +347,19 @@ struct gl_render_target_traits
} }
static static
void spill_buffer(std::unique_ptr<gl::buffer>& bo) void spill_buffer(std::unique_ptr<gl::buffer>& /*bo*/)
{ {
// TODO // TODO
} }
static static
void unspill_buffer(std::unique_ptr<gl::buffer>& bo) void unspill_buffer(std::unique_ptr<gl::buffer>& /*bo*/)
{ {
// TODO // TODO
} }
static static
gl::buffer* merge_bo_list(const std::vector<gl::buffer*>& list) gl::buffer* merge_bo_list(const std::vector<gl::buffer*>& /*list*/)
{ {
// TODO // TODO
return nullptr; return nullptr;

View File

@ -335,10 +335,9 @@ namespace vk
static std::unique_ptr<vk::render_target> convert_pitch( static std::unique_ptr<vk::render_target> convert_pitch(
vk::command_buffer& /*cmd*/, vk::command_buffer& /*cmd*/,
std::unique_ptr<vk::render_target>& src, std::unique_ptr<vk::render_target>& src,
usz out_pitch) usz /*out_pitch*/)
{ {
// TODO // TODO
src->rsx_pitch = static_cast<u32>(out_pitch);
src->state_flags = rsx::surface_state_flags::erase_bkgnd; src->state_flags = rsx::surface_state_flags::erase_bkgnd;
return {}; return {};
} }
@ -454,17 +453,17 @@ namespace vk
return int_surface_matches_properties(surface, vk_format, width, height, antialias, check_refs); return int_surface_matches_properties(surface, vk_format, width, height, antialias, check_refs);
} }
static void spill_buffer(std::unique_ptr<vk::buffer>& bo) static void spill_buffer(std::unique_ptr<vk::buffer>& /*bo*/)
{ {
// TODO // TODO
} }
static void unspill_buffer(std::unique_ptr<vk::buffer>& bo) static void unspill_buffer(std::unique_ptr<vk::buffer>& /*bo*/)
{ {
// TODO // TODO
} }
static vk::buffer* merge_bo_list(const std::vector<vk::buffer*>& list) static vk::buffer* merge_bo_list(const std::vector<vk::buffer*>& /*list*/)
{ {
// TODO // TODO
return nullptr; return nullptr;