mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 09:18:40 +12:00
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:
parent
7e3ece7d9f
commit
c6a9a5d5d7
2 changed files with 2 additions and 1 deletions
|
@ -580,6 +580,7 @@ void GLGSRender::clear_surface(u32 arg)
|
||||||
case rsx::surface_color_format::w32z32y32x32:
|
case rsx::surface_color_format::w32z32y32x32:
|
||||||
{
|
{
|
||||||
//Nop
|
//Nop
|
||||||
|
colormask = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case rsx::surface_color_format::g8b8:
|
case rsx::surface_color_format::g8b8:
|
||||||
|
|
|
@ -1158,7 +1158,7 @@ void VKGSRender::clear_surface(u32 mask)
|
||||||
{
|
{
|
||||||
rsx::get_abgr8_clear_color(clear_r, clear_g, clear_b, clear_a);
|
rsx::get_abgr8_clear_color(clear_r, clear_g, clear_b, clear_a);
|
||||||
colormask = rsx::get_abgr8_colormask(colormask);
|
colormask = rsx::get_abgr8_colormask(colormask);
|
||||||
break;
|
[[fallthrough]];
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue