Adjust clang format to the new versions, revert broken macro layout (#714)

이 커밋은 다음에 포함됨:
Danylo Lytovchenko
2025-08-22 17:23:22 +02:00
커밋한 사람 GitHub
부모 ed877433f3
커밋 2ff2316227
189개의 변경된 파일과 1906개의 추가작업 그리고 2418개의 파일을 삭제
+9 -10
파일 보기
@@ -2166,18 +2166,18 @@ bool KernelBlitManager::fillBuffer(device::Memory& memory, const void* pattern,
for (auto& packed_obj : packed_vector) {
constexpr uint32_t kFillType = FillBufferAligned;
uint32_t kpattern_size = (packed_obj.pattern_expanded_)
? HostBlitManager::FillBufferInfo::kExtendedSize
: patternSize;
? HostBlitManager::FillBufferInfo::kExtendedSize
: patternSize;
size_t kfill_size = packed_obj.fill_size_ / kpattern_size;
uint64_t koffset = overall_offset;
overall_offset += packed_obj.fill_size_;
size_t globalWorkOffset[3] = {0, 0, 0};
uint32_t alignment = (kpattern_size & 0xf) == 0 ? 2 * sizeof(uint64_t)
: (kpattern_size & 0x7) == 0 ? sizeof(uint64_t)
: (kpattern_size & 0x3) == 0 ? sizeof(uint32_t)
: (kpattern_size & 0x1) == 0 ? sizeof(uint16_t)
: sizeof(uint8_t);
uint32_t alignment = (kpattern_size & 0xf) == 0 ? 2 * sizeof(uint64_t)
: (kpattern_size & 0x7) == 0 ? sizeof(uint64_t)
: (kpattern_size & 0x3) == 0 ? sizeof(uint32_t)
: (kpattern_size & 0x1) == 0 ? sizeof(uint16_t)
: sizeof(uint8_t);
// Program kernels arguments for the fill operation
Memory* mem = &gpuMem(memory);
@@ -2302,9 +2302,8 @@ bool KernelBlitManager::fillImage(device::Memory& memory, const void* pattern,
constexpr size_t kFillImageThreshold = 256 * 256;
// Use host fill if memory has direct access and image is small
if (setup_.disableFillImage_ ||
(gpuMem(memory).isHostMemDirectAccess() &&
(size.c[0] * size.c[1] * size.c[2]) <= kFillImageThreshold)) {
if (setup_.disableFillImage_ || (gpuMem(memory).isHostMemDirectAccess() &&
(size.c[0] * size.c[1] * size.c[2]) <= kFillImageThreshold)) {
gpu().releaseGpuMemoryFence();
result = HostBlitManager::fillImage(memory, pattern, origin, size, entire);