mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
* test_common: Replace cl_ushort with cl_half (#885) Change-Id: I507eca2084629c3b6f3e7331f062f006edbce434 Signed-off-by: Chetankumar Mistry <chetan.mistry@arm.com> * buffers, pipes, profiling: Replace cl_ushort with cl_half (#885) Change-Id: Id9799322b636af6aa0eec3d4e846d7af8c7f9602 Signed-off-by: Chetankumar Mistry <chetan.mistry@arm.com> * images/kernel_read_write: Replace cl_ushort with cl_half (#885) Change-Id: I922ddb593b6e5631d0f4ea1522c7f75f8770be40 Signed-off-by: Chetankumar Mistry <chetan.mistry@arm.com> * half: Replace cl_ushort with cl_half (#885) Change-Id: I484a5bb2b33a7e87805fc6079953c66e5f8d9239 Signed-off-by: Chetankumar Mistry <chetan.mistry@arm.com>
This commit is contained in:
@@ -1277,9 +1277,7 @@ void * CreateGLTexture2DMultisample( size_t width, size_t height, size_t samples
|
||||
case kUInt:
|
||||
*((unsigned int*)p) = val*0xffffffff;
|
||||
break;
|
||||
case kHalf:
|
||||
*((cl_ushort*)p) = convert_float_to_half(val);
|
||||
break;
|
||||
case kHalf: *((cl_half *)p) = convert_float_to_half(val); break;
|
||||
default:
|
||||
log_error("Test error: unexpected type enum 0x%x\n",type);
|
||||
}
|
||||
@@ -1541,9 +1539,7 @@ void * CreateGLTexture2DArrayMultisample(size_t width, size_t height,
|
||||
case kUInt:
|
||||
*((unsigned int*)p) = val*0xffffffff;
|
||||
break;
|
||||
case kHalf:
|
||||
*((cl_ushort*)p) = convert_float_to_half(val);
|
||||
break;
|
||||
case kHalf: *((cl_half *)p) = convert_float_to_half(val); break;
|
||||
default:
|
||||
log_error("Test error: unexpected type enum 0x%x\n",type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user