From 29f60f4e2d8668f760b7fc47ee2ad48d1ab87631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Petit?= Date: Sat, 28 Oct 2023 17:35:46 +0100 Subject: [PATCH] Fix support for 1D buffer images Change-Id: Ic907a219ccdc6f81e32b4b2572162b004425c939 --- tests/api/images.cpp | 2 +- tests/api/testcl.hpp | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/api/images.cpp b/tests/api/images.cpp index 4643f456..454cad3d 100644 --- a/tests/api/images.cpp +++ b/tests/api/images.cpp @@ -594,7 +594,7 @@ kernel void test(global uint* dst, uint magic, image2d_t read_only image, uint o } } -TEST_F(WithCommandQueue, 1DBufferImageFromSubBuffer) { +TEST_F(WithCommandQueue, DISABLED_SWIFTSHADER(1DBufferImageFromSubBuffer)) { const size_t IMAGE_WIDTH = 128; const unsigned long nb_prefix_elements = 16; const unsigned long nb_suffix_elements = 16; diff --git a/tests/api/testcl.hpp b/tests/api/testcl.hpp index 7dd1a73f..ccdc5f70 100644 --- a/tests/api/testcl.hpp +++ b/tests/api/testcl.hpp @@ -409,10 +409,7 @@ class WithContext : public ::testing::Test { const size_t region_origin, const size_t region_size) { cl_int err; - cl_buffer_region buffer_region = { - .origin = region_origin, - .size = region_size, - }; + cl_buffer_region buffer_region = {region_origin, region_size}; auto mem = clCreateSubBuffer( buffer, flags, CL_BUFFER_CREATE_TYPE_REGION, &buffer_region, &err); EXPECT_CL_SUCCESS(err);