rsx: Do not allow 'compatible' check to pass if the size does not match

- It's not worth it. We end up with a mish-mash of internal configuration parameters that don't match the surface.
  Maybe with more abstraction it can work, but there is little benefit.
This commit is contained in:
kd-11 2023-05-11 13:13:36 +03:00 committed by kd-11
parent 654c4e3c06
commit 7d710cbf8c
2 changed files with 4 additions and 4 deletions

View File

@ -250,8 +250,8 @@ struct gl_render_target_traits
{
return (surface->get_internal_format() == ref->get_internal_format() &&
surface->get_spp() == sample_count &&
surface->get_surface_width<rsx::surface_metrics::pixels>() >= width &&
surface->get_surface_height<rsx::surface_metrics::pixels>() >= height);
surface->get_surface_width<rsx::surface_metrics::pixels>() == width &&
surface->get_surface_height<rsx::surface_metrics::pixels>() == height);
}
static

View File

@ -405,8 +405,8 @@ namespace vk
{
return (surface->format() == ref->format() &&
surface->get_spp() == sample_count &&
surface->get_surface_width() >= width &&
surface->get_surface_height() >= height);
surface->get_surface_width() == width &&
surface->get_surface_height() == height);
}
static void prepare_surface_for_drawing(vk::command_buffer& cmd, vk::render_target* surface)