diff options
author | Chad Versace <[email protected]> | 2015-08-19 12:28:14 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-08-20 09:31:12 -0700 |
commit | 44ef4484c8ebffd2ef966cee1f8fc3327e955adb (patch) | |
tree | 15aa91d0accd60cff43b399a1ba24375f6f4c9e8 /src/vulkan/anv_meta.c | |
parent | 4aef5c62cd1b39ffb9ca26dffb18dc39444daf3a (diff) |
vk/meta: Add Z coord to clear vertices
For now, the Z coordinate is always 0.0. Will later be used for depth
clears.
Diffstat (limited to 'src/vulkan/anv_meta.c')
-rw-r--r-- | src/vulkan/anv_meta.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index c3538f0e455..add5f7d6d9b 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -65,7 +65,7 @@ anv_device_init_meta_clear_state(struct anv_device *device) .pVertexBindingDescriptions = (VkVertexInputBindingDescription[]) { { .binding = 0, - .strideInBytes = 8, + .strideInBytes = 12, .stepRate = VK_VERTEX_INPUT_STEP_RATE_VERTEX }, { @@ -87,7 +87,7 @@ anv_device_init_meta_clear_state(struct anv_device *device) /* Position */ .location = 1, .binding = 0, - .format = VK_FORMAT_R32G32_SFLOAT, + .format = VK_FORMAT_R32G32B32_SFLOAT, .offsetInBytes = 0 }, { @@ -207,12 +207,12 @@ meta_emit_clear(struct anv_cmd_buffer *cmd_buffer, const float vertex_data[] = { /* Rect-list coordinates */ - 0.0, 0.0, - fb->width, 0.0, - fb->width, fb->height, + 0.0, 0.0, 0.0, + fb->width, 0.0, 0.0, + fb->width, fb->height, 0.0, /* Align to 16 bytes */ - 0.0, 0.0, + 0.0, 0.0, 0.0, }; size = sizeof(vertex_data) + num_instances * sizeof(*instance_data); |