Skip to content

Commit

Permalink
Fix formatting in updated code
Browse files Browse the repository at this point in the history
Related-To: VLCLJ-1948

Signed-off-by: Neil R Spruit <[email protected]>
  • Loading branch information
nrspruit committed Jul 13, 2023
1 parent 90e2f3a commit 11c3649
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 45 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Level zero loader changelog

## v1.13.1
* Fix Formatting issues
## v1.13.0
* Update to spec 1.7.0
* Add reference to Tracing Layer in README.md
Expand Down
72 changes: 36 additions & 36 deletions source/layers/validation/ze_valddi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace validation_layer

auto result = pfnGet( pCount, phDrivers );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
for (size_t i = 0; ( nullptr != phDrivers) && (i < *pCount); ++i){
if (phDrivers[i]){
context.handleLifetime->addHandle( phDrivers[i] );
Expand Down Expand Up @@ -349,7 +349,7 @@ namespace validation_layer

auto result = pfnGet( hDriver, pCount, phDevices );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
for (size_t i = 0; ( nullptr != phDevices) && (i < *pCount); ++i){
if (phDevices[i]){
context.handleLifetime->addHandle( phDevices[i] );
Expand Down Expand Up @@ -432,7 +432,7 @@ namespace validation_layer

auto result = pfnGetSubDevices( hDevice, pCount, phSubdevices );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
for (size_t i = 0; ( nullptr != phSubdevices) && (i < *pCount); ++i){
if (phSubdevices[i]){
context.handleLifetime->addHandle( phSubdevices[i] );
Expand Down Expand Up @@ -948,7 +948,7 @@ namespace validation_layer

auto result = pfnCreate( hDriver, desc, phContext );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phContext){
context.handleLifetime->addHandle( *phContext );
}
Expand Down Expand Up @@ -999,7 +999,7 @@ namespace validation_layer

auto result = pfnCreateEx( hDriver, desc, numDevices, phDevices, phContext );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phContext){
context.handleLifetime->addHandle( *phContext );
}
Expand Down Expand Up @@ -1107,7 +1107,7 @@ namespace validation_layer

auto result = pfnCreate( hContext, hDevice, desc, phCommandQueue );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phCommandQueue){
context.handleLifetime->addHandle( *phCommandQueue );
}
Expand Down Expand Up @@ -1259,7 +1259,7 @@ namespace validation_layer

auto result = pfnCreate( hContext, hDevice, desc, phCommandList );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phCommandList){
context.handleLifetime->addHandle( *phCommandList );
}
Expand Down Expand Up @@ -1301,7 +1301,7 @@ namespace validation_layer

auto result = pfnCreateImmediate( hContext, hDevice, altdesc, phCommandList );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phCommandList){
context.handleLifetime->addHandle( *phCommandList , false);
}
Expand Down Expand Up @@ -2051,7 +2051,7 @@ namespace validation_layer

auto result = pfnCreate( hContext, desc, numDevices, phDevices, phEventPool );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phEventPool){
context.handleLifetime->addHandle( *phEventPool );
}
Expand Down Expand Up @@ -2125,7 +2125,7 @@ namespace validation_layer

auto result = pfnCreate( hEventPool, desc, phEvent );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phEvent){
context.handleLifetime->addHandle( *phEvent );
}
Expand Down Expand Up @@ -2198,7 +2198,7 @@ namespace validation_layer

auto result = pfnGetIpcHandle( hEventPool, phIpc );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
}
return result;
}
Expand Down Expand Up @@ -2662,7 +2662,7 @@ namespace validation_layer

auto result = pfnCreate( hCommandQueue, desc, phFence );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phFence){
context.handleLifetime->addHandle( *phFence );
}
Expand Down Expand Up @@ -2878,7 +2878,7 @@ namespace validation_layer

auto result = pfnCreate( hContext, hDevice, desc, phImage );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phImage){
context.handleLifetime->addHandle( *phImage );
}
Expand Down Expand Up @@ -3178,7 +3178,7 @@ namespace validation_layer

auto result = pfnGetIpcHandle( hContext, ptr, pIpcHandle );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
}
return result;
}
Expand Down Expand Up @@ -3216,7 +3216,7 @@ namespace validation_layer

auto result = pfnGetIpcHandleFromFileDescriptorExp( hContext, handle, pIpcHandle );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
}
return result;
}
Expand Down Expand Up @@ -3254,7 +3254,7 @@ namespace validation_layer

auto result = pfnGetFileDescriptorFromIpcHandleExp( hContext, ipcHandle, pHandle );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
}
return result;
}
Expand Down Expand Up @@ -3438,7 +3438,7 @@ namespace validation_layer

auto result = pfnGetAtomicAccessAttributeExp( hContext, hDevice, ptr, size, pAttr );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
}
return result;
}
Expand Down Expand Up @@ -3478,7 +3478,7 @@ namespace validation_layer

auto result = pfnCreate( hContext, hDevice, desc, phModule, phBuildLog );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phModule){
context.handleLifetime->addHandle( *phModule );
}
Expand Down Expand Up @@ -3805,7 +3805,7 @@ namespace validation_layer

auto result = pfnCreate( hModule, desc, phKernel );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phKernel){
context.handleLifetime->addHandle( *phKernel );
}
Expand Down Expand Up @@ -4584,7 +4584,7 @@ namespace validation_layer

auto result = pfnCreate( hContext, hDevice, desc, phSampler );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phSampler){
context.handleLifetime->addHandle( *phSampler );
}
Expand Down Expand Up @@ -4768,7 +4768,7 @@ namespace validation_layer

auto result = pfnCreate( hContext, hDevice, desc, phPhysicalMemory );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phPhysicalMemory){
context.handleLifetime->addHandle( *phPhysicalMemory );
}
Expand Down Expand Up @@ -5145,7 +5145,7 @@ namespace validation_layer

auto result = pfnGetMemoryPropertiesExp( hImage, pMemoryProperties );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
}
return result;
}
Expand Down Expand Up @@ -5185,7 +5185,7 @@ namespace validation_layer

auto result = pfnViewCreateExt( hContext, hDevice, desc, hImage, phImageView );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phImageView){
context.handleLifetime->addHandle( *phImageView );
}
Expand Down Expand Up @@ -5228,7 +5228,7 @@ namespace validation_layer

auto result = pfnViewCreateExp( hContext, hDevice, desc, hImage, phImageView );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phImageView){
context.handleLifetime->addHandle( *phImageView );
}
Expand Down Expand Up @@ -5542,7 +5542,7 @@ namespace validation_layer

auto result = pfnGetExp( hDriver, pCount, phVertices );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
for (size_t i = 0; ( nullptr != phVertices) && (i < *pCount); ++i){
if (phVertices[i]){
context.handleLifetime->addHandle( phVertices[i] );
Expand Down Expand Up @@ -5592,7 +5592,7 @@ namespace validation_layer

auto result = pfnGetSubVerticesExp( hVertex, pCount, phSubvertices );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
for (size_t i = 0; ( nullptr != phSubvertices) && (i < *pCount); ++i){
if (phSubvertices[i]){
context.handleLifetime->addHandle( phSubvertices[i] );
Expand Down Expand Up @@ -5634,7 +5634,7 @@ namespace validation_layer

auto result = pfnGetPropertiesExp( hVertex, pVertexProperties );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
}
return result;
}
Expand Down Expand Up @@ -5671,7 +5671,7 @@ namespace validation_layer

auto result = pfnGetDeviceExp( hVertex, phDevice );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phDevice){
context.handleLifetime->addHandle( *phDevice );
}
Expand Down Expand Up @@ -5711,7 +5711,7 @@ namespace validation_layer

auto result = pfnGetFabricVertexExp( hDevice, phVertex );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phVertex){
context.handleLifetime->addHandle( *phVertex );
}
Expand Down Expand Up @@ -5760,7 +5760,7 @@ namespace validation_layer

auto result = pfnGetExp( hVertexA, hVertexB, pCount, phEdges );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
for (size_t i = 0; ( nullptr != phEdges) && (i < *pCount); ++i){
if (phEdges[i]){
context.handleLifetime->addHandle( phEdges[i] );
Expand Down Expand Up @@ -5803,7 +5803,7 @@ namespace validation_layer

auto result = pfnGetVerticesExp( hEdge, phVertexA, phVertexB );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phVertexA){
context.handleLifetime->addHandle( *phVertexA );
}
Expand Down Expand Up @@ -5846,7 +5846,7 @@ namespace validation_layer

auto result = pfnGetPropertiesExp( hEdge, pEdgeProperties );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
}
return result;
}
Expand Down Expand Up @@ -5932,7 +5932,7 @@ namespace validation_layer

auto result = pfnCreateExp( hDriver, pDescriptor, phBuilder );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phBuilder){
context.handleLifetime->addHandle( *phBuilder );
}
Expand Down Expand Up @@ -5973,7 +5973,7 @@ namespace validation_layer

auto result = pfnGetBuildPropertiesExp( hBuilder, pBuildOpDescriptor, pProperties );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
}
return result;
}
Expand Down Expand Up @@ -6123,7 +6123,7 @@ namespace validation_layer

auto result = pfnCreateExp( hDriver, phParallelOperation );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if (phParallelOperation){
context.handleLifetime->addHandle( *phParallelOperation );
}
Expand Down Expand Up @@ -6163,7 +6163,7 @@ namespace validation_layer

auto result = pfnGetPropertiesExp( hParallelOperation, pProperties );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
}
return result;
}
Expand Down
4 changes: 2 additions & 2 deletions source/layers/validation/zes_valddi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace validation_layer

auto result = pfnGet( pCount, phDrivers );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
for (size_t i = 0; ( nullptr != phDrivers) && (i < *pCount); ++i){
if (phDrivers[i]){
context.handleLifetime->addHandle( phDrivers[i] );
Expand Down Expand Up @@ -136,7 +136,7 @@ namespace validation_layer

auto result = pfnGet( hDriver, pCount, phDevices );

if( result==ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
if( result == ZE_RESULT_SUCCESS && context.enableHandleLifetime ){
for (size_t i = 0; ( nullptr != phDevices) && (i < *pCount); ++i){
if (phDevices[i]){
context.handleLifetime->addHandle( phDevices[i] );
Expand Down
Loading

0 comments on commit 11c3649

Please sign in to comment.