mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:09:46 +08:00
Don't use half_float images with bcs OCL
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Related-To: NEO-4692
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
edf294b49b
commit
9c181df6e6
@@ -1370,6 +1370,23 @@ TEST(CommandQueue, givenNV12ImageWhenCallingBlitEnqueueImageAllowedThenCorrectRe
|
||||
EXPECT_TRUE(queue.blitEnqueueImageAllowed(correctOrigin, correctRegion, image));
|
||||
}
|
||||
|
||||
TEST(CommandQueue, givenHalfFloatImageWhenCallingBlitEnqueueImageAllowedThenCorrectResultIsReturned) {
|
||||
DebugManagerStateRestore restorer;
|
||||
DebugManager.flags.EnableBlitterForReadWriteImage.set(1);
|
||||
MockContext context{};
|
||||
MockCommandQueue queue(&context, context.getDevice(0), 0);
|
||||
|
||||
size_t correctRegion[3] = {10u, 10u, 0};
|
||||
size_t correctOrigin[3] = {1u, 1u, 0};
|
||||
MockImageBase image;
|
||||
|
||||
image.imageFormat.image_channel_data_type = CL_HALF_FLOAT;
|
||||
EXPECT_FALSE(queue.blitEnqueueImageAllowed(correctOrigin, correctRegion, image));
|
||||
|
||||
image.imageFormat.image_channel_data_type = CL_UNORM_INT8;
|
||||
EXPECT_TRUE(queue.blitEnqueueImageAllowed(correctOrigin, correctRegion, image));
|
||||
}
|
||||
|
||||
TEST(CommandQueue, givenSupportForOperationWhenValidatingSupportThenReturnSuccess) {
|
||||
MockCommandQueue queue{};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user