Another linux Vulkan fix
authorjvanverth <jvanverth@google.com>
Tue, 14 Jun 2016 16:01:33 +0000 (09:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 14 Jun 2016 16:01:33 +0000 (09:01 -0700)
BUG=skia:
TBR=egdaniel@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2069443003

Review-Url: https://codereview.chromium.org/2069443003

tests/VkWrapTests.cpp

index 76b8f90d1da6b0c0d9c7966902a02f099cdf2bae..852597edc07782e8c1ac2e2f89c68115decf203d 100644 (file)
@@ -53,7 +53,7 @@ void wrap_tex_test(skiatest::Reporter* reporter, GrContext* context) {
 
     // alloc is null
     backendCopy.fImage = backendTex->fImage;
-    backendCopy.fAlloc = { VK_NULL_HANDLE, 0 };
+    backendCopy.fAlloc = { VK_NULL_HANDLE, 0, 0 };
     tex = gpu->wrapBackendTexture(desc, kBorrow_GrWrapOwnership);
     REPORTER_ASSERT(reporter, !tex);
     tex = gpu->wrapBackendTexture(desc, kAdopt_GrWrapOwnership);
@@ -98,7 +98,7 @@ void wrap_rt_test(skiatest::Reporter* reporter, GrContext* context) {
 
     // alloc is null
     backendCopy.fImage = backendTex->fImage;
-    backendCopy.fAlloc = { VK_NULL_HANDLE, 0 };
+    backendCopy.fAlloc = { VK_NULL_HANDLE, 0, 0 };
     // can wrap null alloc if borrowing
     rt = gpu->wrapBackendRenderTarget(desc, kBorrow_GrWrapOwnership);
     REPORTER_ASSERT(reporter, rt);
@@ -143,7 +143,7 @@ void wrap_trt_test(skiatest::Reporter* reporter, GrContext* context) {
 
     // alloc is null
     backendCopy.fImage = backendTex->fImage;
-    backendCopy.fAlloc = { VK_NULL_HANDLE, 0 };
+    backendCopy.fAlloc = { VK_NULL_HANDLE, 0, 0 };
     tex = gpu->wrapBackendTexture(desc, kBorrow_GrWrapOwnership);
     REPORTER_ASSERT(reporter, !tex);
     tex = gpu->wrapBackendTexture(desc, kAdopt_GrWrapOwnership);