Fix Color RT Disabling Bug

Color RTs are disabled by setting their format as `None`, it was removed while transitioning to macros and resulted in a missing format exception. It has been readded as several applications depend on this behavior.
This commit is contained in:
PixelyIon 2022-01-11 20:24:33 +05:30
parent a2285669b3
commit edd51c3dfa

View File

@ -193,6 +193,9 @@ namespace skyline::gpu::interconnect {
#define FORMAT_SAME_NORM_INT_FLOAT_CASE(fmt) FORMAT_NORM_INT_FLOAT_CASE(fmt, fmt)
switch (format) {
case maxwell3d::ColorRenderTarget::Format::None:
return {};
FORMAT_SAME_NORM_INT_CASE(R8);
FORMAT_SAME_NORM_INT_FLOAT_CASE(R16);
FORMAT_SAME_NORM_INT_CASE(R8G8);