mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix misleading indentation and enable -Wmisleading-indentation (#1458)
Signed-off-by: Stuart Brady <stuart.brady@arm.com>
This commit is contained in:
@@ -90,14 +90,17 @@ int test_read_image_1D(cl_context context, cl_command_queue queue,
|
||||
|
||||
region[0] = width_lod;
|
||||
|
||||
if ( gDebugTrace )
|
||||
if ( gTestMipmaps) {
|
||||
log_info(" - Working at mipLevel :%llu\n", (unsigned long long)lod);
|
||||
}
|
||||
error = clEnqueueWriteImage(queue, image, CL_FALSE,
|
||||
origin, region, ( gEnablePitch ? row_pitch_lod : 0 ), 0,
|
||||
(char*)imageValues + imgValMipLevelOffset, 0, NULL, NULL);
|
||||
if (error != CL_SUCCESS) {
|
||||
if (gDebugTrace)
|
||||
if (gTestMipmaps)
|
||||
{
|
||||
log_info(" - Working at mipLevel :%llu\n", (unsigned long long)lod);
|
||||
}
|
||||
error = clEnqueueWriteImage(queue, image, CL_FALSE, origin, region,
|
||||
(gEnablePitch ? row_pitch_lod : 0), 0,
|
||||
(char *)imageValues + imgValMipLevelOffset, 0,
|
||||
NULL, NULL);
|
||||
if (error != CL_SUCCESS)
|
||||
{
|
||||
log_error( "ERROR: Unable to write to 1D image of size %d \n", (int)width_lod );
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user