Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2021-11-22 16:18:22 +0300
committerSergey Sharybin <sergey@blender.org>2021-11-22 19:26:52 +0300
commit25c83c217b1fbf19d67363aa7d5bdeda46b0b6d9 (patch)
treecdfd2095697b75b4453acd017ad2317ee34c0c05
parent875f24352a761adfd33e46c0cb782e3bb9262ff8 (diff)
Cleanup: Clang-format of the HIP device implementation
-rw-r--r--intern/cycles/device/hip/device_impl.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/intern/cycles/device/hip/device_impl.cpp b/intern/cycles/device/hip/device_impl.cpp
index 78ccf318cf8..76e300eb132 100644
--- a/intern/cycles/device/hip/device_impl.cpp
+++ b/intern/cycles/device/hip/device_impl.cpp
@@ -233,9 +233,7 @@ string HIPDevice::compile_kernel_get_common_cflags(const uint kernel_features)
return cflags;
}
-string HIPDevice::compile_kernel(const uint kernel_features,
- const char *name,
- const char *base)
+string HIPDevice::compile_kernel(const uint kernel_features, const char *name, const char *base)
{
/* Compute kernel name. */
int major, minor;
@@ -990,7 +988,7 @@ void HIPDevice::tex_alloc(device_texture &mem)
<< string_human_readable_number(mem.memory_size()) << " bytes. ("
<< string_human_readable_size(mem.memory_size()) << ")";
- hip_assert(hipArray3DCreate((hArray*)&array_3d, &desc));
+ hip_assert(hipArray3DCreate((hArray *)&array_3d, &desc));
if (!array_3d) {
return;