Skip to content

Commit 0655045

Browse files
Enable SNORM format in aubs
Change-Id: If57781dd83668e3e3eaed2867e8000078b2691be Signed-off-by: Dunajski, Bartosz <[email protected]>
1 parent ecb204f commit 0655045

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

unit_tests/aub_tests/command_queue/enqueue_fill_image_aub_tests.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2017-2018 Intel Corporation
2+
* Copyright (C) 2017-2019 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -41,10 +41,8 @@ static const uint8_t expectedUNORM8[4] = { 0xff, 0x00, 0xd4, 0xa9};
4141
static const uint8_t expectedUNORM8sRGB[4] = { 0xff, 0x00, 0xeb, 0xa9};
4242
static const uint8_t expectedUNORM8sBGR[4] = { 0xeb, 0x00, 0xff, 0xa9};
4343

44-
#if SUPPORT_SNORM
45-
static const uint16_t expectedSNORM16[4] = {0x7fff, 0x0000, 0x2000, 0x4000};
46-
static const uint8_t expectedSNORM8[4] = { 0x7f, 0x00, 0x1f, 0x3f};
47-
#endif
44+
static const uint16_t expectedSNORM16[4] = {0x7fff, 0x0000, 0x6AA9, 0x5554};
45+
static const uint8_t expectedSNORM8[4] = { 0x7f, 0x00, 0x69, 0x54};
4846

4947
static auto expectedSINT32 = fillValues;
5048
static uint16_t expectedSINT16[4] = { 0x0000, 0x0000, 0x5555, 0xaaaa };
@@ -61,10 +59,8 @@ struct FillChannelType {
6159
cl_channel_type type;
6260
const void *expectedValues;
6361
} fillChannelTypes[] = {
64-
#if SUPPORT_SNORM
6562
{CL_SNORM_INT8, expectedSNORM8},
6663
{CL_SNORM_INT16, expectedSNORM16},
67-
#endif
6864
{CL_UNORM_INT8, expectedUNORM8},
6965
{CL_UNORM_INT16, expectedUNORM16},
7066
{CL_SIGNED_INT8, expectedSINT8},

0 commit comments

Comments
 (0)