summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-09-25 03:28:45 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-09-25 03:29:48 -0700
commitc87407b3e8d6ac8ad8494c44c69ad8f60652afeb (patch)
treea3e4c75387992d4ca27f590b5dc062b71175df30
parentc38d380fee91f2f86f0cb62b19f347c48c440328 (diff)
tests/func.miptree: Properly set a scissor
Clients are required to set a scissor and this test wasn't.
-rw-r--r--src/tests/func/miptree/miptree.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tests/func/miptree/miptree.c b/src/tests/func/miptree/miptree.c
index 19345be..720621f 100644
--- a/src/tests/func/miptree/miptree.c
+++ b/src/tests/func/miptree/miptree.c
@@ -899,6 +899,18 @@ copy_color_images_with_draw(const test_data_t *data,
.maxDepth = 1
});
+ vkCmdSetScissor(cmd, 0, 1,
+ &(VkRect2D) {
+ .offset = {
+ .x = 0,
+ .y = 0,
+ },
+ .extent = {
+ .width = width,
+ .height = height,
+ },
+ });
+
VkFramebuffer fb = qoCreateFramebuffer(t_device,
.attachmentCount = 1,
.pAttachments = (VkImageView[]) {