Skip to content

Commit

Permalink
Fix flipped logic
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianWildgrube committed Jan 19, 2024
1 parent 9872498 commit 6c1ae1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pal/pal_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,11 @@ bool allocation_is_host_visible(Pal::IGpuMemory* gpu_allocation) {
const Pal::GpuMemoryDesc& memory_desc = gpu_allocation->Desc();
for (Pal::uint32 i = 0; i < memory_desc.heapCount; ++i) {
if (memory_desc.heaps[i] == Pal::GpuHeap::GpuHeapInvisible) {
return true;
return false;
}
}

return false;
return true;
}

ShaderSrc::ShaderSrc(const std::string& filename, const std::string& src_code, const std::string& kernelname)
Expand Down

0 comments on commit 6c1ae1d

Please sign in to comment.