Fix misleading indentation and enable -Wmisleading-indentation (#1458)

Signed-off-by: Stuart Brady <stuart.brady@arm.com>
This commit is contained in:
Stuart Brady
2022-08-02 18:16:03 +01:00
committed by GitHub
parent bd03e17a56
commit cdf5a105fc
13 changed files with 72 additions and 75 deletions

View File

@@ -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;
}