From 38db6cc4d14eb1097c47504e7a9087223631ce7a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 20 Jan 2023 02:23:55 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- taichi/rhi/opengl/opengl_device.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/taichi/rhi/opengl/opengl_device.cpp b/taichi/rhi/opengl/opengl_device.cpp index 53b0979c05d65..2f28d0e7043cb 100644 --- a/taichi/rhi/opengl/opengl_device.cpp +++ b/taichi/rhi/opengl/opengl_device.cpp @@ -524,15 +524,15 @@ GLDevice::GLDevice() : stream_(this) { caps.set(DeviceCapability::spirv_has_int16, true); caps.set(DeviceCapability::spirv_has_float16, true); } - + if (GLAD_GL_AMD_gpu_shader_int16) { caps.set(DeviceCapability::spirv_has_int16, true); } - + if (GLAD_GL_AMD_gpu_shader_half_float) { caps.set(DeviceCapability::spirv_has_float16, true); } - + caps.set(DeviceCapability::spirv_version, 0x10300); set_caps(std::move(caps)); } @@ -827,8 +827,7 @@ void GLCommandList::CmdBindResources::execute() { check_opengl_error("glBindBufferBase"); } else { glBindBufferRange(bind.target, bind.index, bind.buffer, - GLintptr(bind.offset), - GLsizeiptr(bind.size)); + GLintptr(bind.offset), GLsizeiptr(bind.size)); check_opengl_error("glBindBufferRange"); } }