aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Barbour <tony@LunarG.com>2017-07-28 09:08:26 -0600
committerTony Barbour <tony@LunarG.com>2017-07-28 12:01:52 -0600
commit60c136895a6b03cba0aa9e08d2a66a03191f1f83 (patch)
tree57b1929a589e2f8b5765aa8ebd4b915b59a67722
parentddd08db3e97d83beac11be66e422b88f70afc325 (diff)
downloadusermoji-60c136895a6b03cba0aa9e08d2a66a03191f1f83.tar.xz
demos: Fix cube to use correct pipeline stage for barrier
Change-Id: Ia85e0acc67694d859077044ad24b13b0ad834811
-rw-r--r--demos/cube.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/cube.c b/demos/cube.c
index 2a949ea2..a903f6b6 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -1630,7 +1630,7 @@ static void demo_prepare_textures(struct demo *demo) {
// shader to run until layout transition completes
demo_set_image_layout(demo, demo->textures[i].image, VK_IMAGE_ASPECT_COLOR_BIT,
VK_IMAGE_LAYOUT_PREINITIALIZED, demo->textures[i].imageLayout,
- VK_ACCESS_HOST_WRITE_BIT, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT,
+ VK_ACCESS_HOST_WRITE_BIT, VK_PIPELINE_STAGE_HOST_BIT,
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT);
demo->staging_texture.image = 0;
} else if (props.optimalTilingFeatures &
@@ -1654,14 +1654,14 @@ static void demo_prepare_textures(struct demo *demo) {
VK_IMAGE_LAYOUT_PREINITIALIZED,
VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,
VK_ACCESS_HOST_WRITE_BIT,
- VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT,
+ VK_PIPELINE_STAGE_HOST_BIT,
VK_PIPELINE_STAGE_TRANSFER_BIT);
demo_set_image_layout(demo, demo->textures[i].image,
VK_IMAGE_ASPECT_COLOR_BIT,
VK_IMAGE_LAYOUT_PREINITIALIZED,
VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,
- VK_ACCESS_HOST_WRITE_BIT,
+ 0,
VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT,
VK_PIPELINE_STAGE_TRANSFER_BIT);