Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit e1a6e78

Browse files
authored
[ESIMD] Fix rgba smoke test to honor write mask restrictions. (#1023)
Signed-off-by: Konstantin S Bobrovsky <[email protected]>
1 parent 5dd32c5 commit e1a6e78

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

SYCL/ESIMD/api/esimd_rgba_smoke.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,11 @@ int main(void) {
205205
auto dev = q.get_device();
206206
std::cout << "Running on " << dev.get_info<info::device::name>() << "\n";
207207
bool passed = true;
208+
// Only these four masks are supported for rgba write operations:
208209
passed &= test<rgba_channel_mask::ABGR>(q);
209-
passed &= test<rgba_channel_mask::AR>(q);
210-
passed &= test<rgba_channel_mask::A>(q);
210+
passed &= test<rgba_channel_mask::BGR>(q);
211+
passed &= test<rgba_channel_mask::GR>(q);
211212
passed &= test<rgba_channel_mask::R>(q);
212-
passed &= test<rgba_channel_mask::B>(q);
213-
// TODO disabled due to a compiler bug:
214-
//passed &= test<rgba_channel_mask::ABR>(q);
215213

216214
std::cout << (passed ? "Test passed\n" : "Test FAILED\n");
217215
return passed ? 0 : 1;

0 commit comments

Comments
 (0)