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:
@@ -250,8 +250,8 @@ struct gl_render_target_traits
|
|||||||
{
|
{
|
||||||
return (surface->get_internal_format() == ref->get_internal_format() &&
|
return (surface->get_internal_format() == ref->get_internal_format() &&
|
||||||
surface->get_spp() == sample_count &&
|
surface->get_spp() == sample_count &&
|
||||||
surface->get_surface_width<rsx::surface_metrics::pixels>() >= width &&
|
surface->get_surface_width<rsx::surface_metrics::pixels>() == width &&
|
||||||
surface->get_surface_height<rsx::surface_metrics::pixels>() >= height);
|
surface->get_surface_height<rsx::surface_metrics::pixels>() == height);
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
|
|||||||
@@ -405,8 +405,8 @@ namespace vk
|
|||||||
{
|
{
|
||||||
return (surface->format() == ref->format() &&
|
return (surface->format() == ref->format() &&
|
||||||
surface->get_spp() == sample_count &&
|
surface->get_spp() == sample_count &&
|
||||||
surface->get_surface_width() >= width &&
|
surface->get_surface_width() == width &&
|
||||||
surface->get_surface_height() >= height);
|
surface->get_surface_height() == height);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void prepare_surface_for_drawing(vk::command_buffer& cmd, vk::render_target* surface)
|
static void prepare_surface_for_drawing(vk::command_buffer& cmd, vk::render_target* surface)
|
||||||
|
|||||||
Reference in New Issue
Block a user