rsx/fixup: Fix color clear logic

- Enable fast clears on ABGR formats in vulkan
- Fix disabling color clears for unsupported formats in GL
This commit is contained in:
kd-11 2020-06-22 20:16:08 +03:00 committed by kd-11
parent 7e3ece7d9f
commit c6a9a5d5d7
2 changed files with 2 additions and 1 deletions

View File

@ -580,6 +580,7 @@ void GLGSRender::clear_surface(u32 arg)
case rsx::surface_color_format::w32z32y32x32:
{
//Nop
colormask = 0;
break;
}
case rsx::surface_color_format::g8b8:

View File

@ -1158,7 +1158,7 @@ void VKGSRender::clear_surface(u32 mask)
{
rsx::get_abgr8_clear_color(clear_r, clear_g, clear_b, clear_a);
colormask = rsx::get_abgr8_colormask(colormask);
break;
[[fallthrough]];
}
default:
{