Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug committed Aug 12, 2024
1 parent 57316d1 commit 8b6da90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_conformance/spirv_new/test_spirv_14.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "types.hpp"

#include <string>
#include <vector>

static int test_image_operand_helper(cl_device_id deviceID, cl_context context,
cl_command_queue queue, bool signExtend)
Expand Down Expand Up @@ -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<cl_uchar> 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);
Expand Down

0 comments on commit 8b6da90

Please sign in to comment.