Stubbed color format.

This commit is contained in:
Ben Vanik 2015-06-06 22:57:15 -07:00
parent 6edf4f898f
commit 58324352ae
2 changed files with 4 additions and 1 deletions

View File

@ -139,6 +139,8 @@ enum class ColorFormat : uint32_t {
k_32_32_FLOAT = 37,
k_32_32_32_32_FLOAT = 38,
k_2_10_10_10_FLOAT = 62,
kUnknown0x36 = 0x36, // not sure, but like 8888
};
enum class VertexFormat : uint32_t {

View File

@ -306,7 +306,8 @@ void VdSwap(lpvoid_t buffer_ptr, // ptr into primary ringbuffer
auto color_format = gpu::xenos::ColorFormat(color_format_ptr.value());
auto color_space = *color_space_ptr;
assert_true(color_format == gpu::xenos::ColorFormat::k_8_8_8_8);
assert_true(color_format == gpu::xenos::ColorFormat::k_8_8_8_8 ||
color_format == gpu::xenos::ColorFormat::kUnknown0x36);
assert_true(color_space == 0);
assert_true(*frontbuffer_ptr == fetch.address << 12);
assert_true(last_frontbuffer_width_ == 1 + fetch.size_2d.width);