From c85527cec765021c0f76f8c83382ccbdd8316029 Mon Sep 17 00:00:00 2001 From: Grzegorz Wawiorko Date: Fri, 3 Apr 2020 13:39:39 +0200 Subject: [PATCH] Review fixes - check error state --- test_conformance/spirv_new/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_conformance/spirv_new/main.cpp b/test_conformance/spirv_new/main.cpp index 5e1b3145..246864d8 100644 --- a/test_conformance/spirv_new/main.cpp +++ b/test_conformance/spirv_new/main.cpp @@ -161,7 +161,7 @@ int get_program_with_il(clProgramWrapper &prog, else { cl_platform_id platform; err = clGetDeviceInfo(deviceID, CL_DEVICE_PLATFORM, sizeof(cl_platform_id), &platform, NULL); - print_error(err, "clGetDeviceInfo for CL_DEVICE_PLATFORM failed"); + SPIRV_CHECK_ERROR(err, "Failed to get platform info with clGetDeviceInfo"); clCreateProgramWithILKHR_fn clCreateProgramWithILKHR = NULL; clCreateProgramWithILKHR = (clCreateProgramWithILKHR_fn)clGetExtensionFunctionAddressForPlatform(platform, "clCreateProgramWithILKHR");