mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-18 12:08:38 +00:00
Preserve pool flags in the Vulkan memory probe texture fixture
This commit is contained in:
1 parent
c26c3a04bc
commit
74bb01d2af
1 file changed
+1
@@ -453,6 +453,7 @@ static int test_virtual(pool_t *phys, pool_t *virt) {
|
||||
static tex_t make_tex(pool_t *pool, uint64_t off, int format, uint32_t w, uint32_t h, uint32_t levels, uint64_t serial) {
|
||||
tex_t t;
|
||||
memset(&t, 0, sizeof t);
|
||||
t.pool_flags = (uint16_t)pool->flags;
|
||||
t.magic = MAGIC('T', 'E', 'X', 0);
|
||||
t.d.target = 1, t.d.format = format, t.d.width = w, t.d.height = h, t.d.depth = 1, t.d.levels = levels;
|
||||
nvn_tex_layout(&t.d, &t.L);
|
||||
|
||||
Reference in new issue
Block a user