aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-25 11:48:28 -0700
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-25 17:15:47 -0700
commit02ba99a09a6138b0c7e8735e405a608b0a24df14 (patch)
tree90e44d5c2efc46ef524d71b41c6c116099dfd0ec
parente88f99c1c0f693cc2c15f0a4d56537251124fc61 (diff)
downloadusermoji-02ba99a09a6138b0c7e8735e405a608b0a24df14.tar.xz
demos: Be sure to request correct memory type
-rw-r--r--demos/cube.c1
-rw-r--r--demos/tri.c1
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,