Skip to content

Commit

Permalink
Fix support for 1D buffer images
Browse files Browse the repository at this point in the history
Change-Id: Ic907a219ccdc6f81e32b4b2572162b004425c939
  • Loading branch information
kpet committed Oct 29, 2023
1 parent a25eb53 commit 29f60f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/api/images.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 1 addition & 4 deletions tests/api/testcl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 29f60f4

Please sign in to comment.