Preserve pool flags in the Vulkan memory probe texture fixture

This commit is contained in:
shenjack authored and Valiantsin Dzerakh committed 2026-11-15 11:07:25 +03:00
1 parent c26c3a04bc
commit 74bb01d2af
1 file changed
+1
+1
View File
@@ -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);