From 8b6da900c3c5d7cfd7c81538b04489b7b2c0cf1a Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Mon, 12 Aug 2024 07:35:48 -0700 Subject: [PATCH] address review comments --- test_conformance/spirv_new/test_spirv_14.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_conformance/spirv_new/test_spirv_14.cpp b/test_conformance/spirv_new/test_spirv_14.cpp index 9aad1e7f42..83a72d44d7 100644 --- a/test_conformance/spirv_new/test_spirv_14.cpp +++ b/test_conformance/spirv_new/test_spirv_14.cpp @@ -19,6 +19,7 @@ #include "types.hpp" #include +#include static int test_image_operand_helper(cl_device_id deviceID, cl_context context, cl_command_queue queue, bool signExtend) @@ -59,10 +60,9 @@ static int test_image_operand_helper(cl_device_id deviceID, cl_context context, h_dst.size() * sizeof(cl_uint), h_dst.data(), &error); SPIRV_CHECK_ERROR(error, "Failed to create dst buffer"); - std::vector h_imgdata({ 0x1, 0x80, 0xFF, 0x0 }); clMemWrapper src = clCreateImage2D(context, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR, - &image_format, 1, 1, 0, h_imgdata.data(), &error); + &image_format, 1, 1, 0, imgData.data(), &error); SPIRV_CHECK_ERROR(error, "Failed to create src image"); error |= clSetKernelArg(kernel, 0, sizeof(dst), &dst);