Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13246 from hrydgard/framebuffer-code-cleanups
Framebuffer code cleanups, log changes, enable BlockTransferAllowCreateFB for Burnout Legends
- Loading branch information
Showing
17 changed files
with
109 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include "GPU/ge_constants.h" | ||
|
||
const char *GeBufferFormatToString(GEBufferFormat fmt) { | ||
switch (fmt) { | ||
case GE_FORMAT_4444: return "4444"; | ||
case GE_FORMAT_5551: return "5551"; | ||
case GE_FORMAT_565: return "565"; | ||
case GE_FORMAT_8888: return "8888"; | ||
default: return "N/A"; | ||
} | ||
} | ||
|
||
const char *GeTextureFormatToString(GETextureFormat fmt) { | ||
switch (fmt) { | ||
case GE_TFMT_5650: return "565"; | ||
case GE_TFMT_5551: return "5551"; | ||
case GE_TFMT_4444: return "4444"; | ||
case GE_TFMT_8888: return "8888"; | ||
case GE_TFMT_CLUT4: return "CLUT4"; | ||
case GE_TFMT_CLUT8: return "CLUT8"; | ||
case GE_TFMT_CLUT16: return "CLUT16"; | ||
case GE_TFMT_CLUT32: return "CLUT32"; | ||
case GE_TFMT_DXT1: return "DXT1"; | ||
case GE_TFMT_DXT3: return "DXT3"; | ||
case GE_TFMT_DXT5: return "DXT5"; | ||
default: return "N/A"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.