Skip to content

Commit

Permalink
Generate misalignment event upon specifying an unhandled format.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbernhar committed Apr 12, 2022
1 parent f8d3d7b commit 1ecbfc6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gpgmm/d3d12/UtilsD3D12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,8 @@ namespace gpgmm { namespace d3d12 {
const D3D12_TILE_SHAPE& tile =
GetSmallTextureTile(resourceDescriptor.Format, resourceDescriptor.Dimension,
resourceDescriptor.SampleDesc.Count);
// Assume it can use small alignment since the caller is responsible to get the correct
// (or larger) alignment anyway if cannot be granted by GetResourceAllocationInfo().
if (IsTileZeroSized(tile)) {
return true;
return false;
}

return GetTileCount(resourceDescriptor, tile) <= 16;
Expand Down

0 comments on commit 1ecbfc6

Please sign in to comment.