diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-02-25 11:48:28 -0700 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-02-25 17:15:47 -0700 |
| commit | 02ba99a09a6138b0c7e8735e405a608b0a24df14 (patch) | |
| tree | 90e44d5c2efc46ef524d71b41c6c116099dfd0ec | |
| parent | e88f99c1c0f693cc2c15f0a4d56537251124fc61 (diff) | |
| download | usermoji-02ba99a09a6138b0c7e8735e405a608b0a24df14.tar.xz | |
demos: Be sure to request correct memory type
| -rw-r--r-- | demos/cube.c | 1 | ||||
| -rw-r--r-- | demos/tri.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/demos/cube.c b/demos/cube.c index 5ea5b248..37db0de9 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -788,6 +788,7 @@ static void demo_prepare_texture_image(struct demo *demo, mem_alloc.memProps = XGL_MEMORY_PROPERTY_CPU_VISIBLE_BIT; for (uint32_t j = 0; j < num_allocations; j ++) { mem_alloc.allocationSize = mem_reqs[j].size; + mem_alloc.memType = mem_reqs[j].memType; /* allocate memory */ err = xglAllocMemory(demo->device, &mem_alloc, diff --git a/demos/tri.c b/demos/tri.c index e497c670..b10037ac 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -458,6 +458,7 @@ static void demo_prepare_texture_image(struct demo *demo, mem_alloc.memProps = XGL_MEMORY_PROPERTY_CPU_VISIBLE_BIT; for (uint32_t j = 0; j < num_allocations; j ++) { mem_alloc.allocationSize = mem_reqs[j].size; + mem_alloc.memType = mem_reqs[j].memType; /* allocate memory */ err = xglAllocMemory(demo->device, &mem_alloc, |
