Skip to content

Commit b5e1498

Browse files
committed
update
Signed-off-by: Vlad Romanov <[email protected]>
1 parent c948cbc commit b5e1498

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sycl/include/CL/sycl/detail/image_impl.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class image_impl final : public SYCLMemObjT<AllocatorT> {
283283
RT::PiEvent &OutEventToWait) override {
284284
void *UserPtr = InitFromUserData ? BaseT::getUserPtr() : nullptr;
285285

286-
RT::PiMemImageDesc Desc = getImageDesc((bool)UserPtr);
286+
RT::PiMemImageDesc Desc = getImageDesc(static_cast<bool>(UserPtr));
287287
assert(checkImageDesc(Desc, Context, UserPtr) &&
288288
"The check an image desc failed.");
289289

@@ -385,8 +385,8 @@ class image_impl final : public SYCLMemObjT<AllocatorT> {
385385
// TODO handle cases with IMAGE1D_ARRAY and IMAGE2D_ARRAY
386386
Desc.image_array_size = 0;
387387
// Pitches must be 0 if host ptr is not provided.
388-
Desc.image_row_pitch = InitFromHostPtr ? MRowPitch: 0;
389-
Desc.image_slice_pitch = InitFromHostPtr ? MSlicePitch: 0;
388+
Desc.image_row_pitch = InitFromHostPtr ? MRowPitch : 0;
389+
Desc.image_slice_pitch = InitFromHostPtr ? MSlicePitch : 0;
390390

391391
Desc.num_mip_levels = 0;
392392
Desc.num_samples = 0;

sycl/test/basic_tests/image.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ int main() {
2525
const sycl::image_channel_type ChanType = sycl::image_channel_type::fp32;
2626

2727
constexpr auto SYCLRead = sycl::access::mode::read;
28-
constexpr auto SYCLWrite = cl::sycl::access::mode::write;
28+
constexpr auto SYCLWrite = sycl::access::mode::write;
2929

3030
const sycl::range<2> Img1Size(4, 4);
3131
const sycl::range<2> Img2Size(4, 4);

0 commit comments

Comments
 (0)