[graphics] partial tfrag implementation (#958)

* temp

* some decomp

* tfrag dma setup

* fix negative label bug

* tfrag dma setup

* tfrag, with pipeline tricks

* kinda works

* cleanup before trying some color stuff

* time of day works

* clean up

* temp before render changes

* a few more fixes

* fix up tests

* clean up

* fix

* fix alignment

* one more cleanup
This commit is contained in:
water111
2021-11-13 20:44:17 -05:00
committed by GitHub
parent ff50cf2552
commit 3afd99a8e3
85 changed files with 7793 additions and 1675 deletions
+8
View File
@@ -184,6 +184,14 @@ std::vector<std::shared_ptr<TextureRecord>> TexturePool::convert_textures(const
u32 size = ((sizes[0] + sizes[1] + 2047) / 256) * 256;
m_tex_converter.upload(memory_base + texture_page.segment[0].block_data_ptr,
texture_page.segment[0].dest, size);
} else if (mode == 0) {
has_segment[1] = false;
has_segment[2] = false;
u32 size = ((sizes[0] + 255) / 256) * 256;
// dest is in 4-byte vram words
m_tex_converter.upload(memory_base + texture_page.segment[0].block_data_ptr,
texture_page.segment[0].dest, size);
} else {
// no reason to skip this, other than
lg::error("TexturePool skipping upload now with mode {}.", mode);