Merge pull request #11528 from delroth/clang-format-13
lint: update to clang-format-13
This commit is contained in:
commit
6669d160b1
|
@ -91,8 +91,8 @@ static const char* to_string(MTLCompareFunction compare)
|
||||||
|
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
static void SetupDepthStencil(
|
static void
|
||||||
MRCOwned<id<MTLDepthStencilState>> (&dss)[Metal::DepthStencilSelector::N_VALUES])
|
SetupDepthStencil(MRCOwned<id<MTLDepthStencilState>> (&dss)[Metal::DepthStencilSelector::N_VALUES])
|
||||||
{
|
{
|
||||||
auto desc = MRCTransfer([MTLDepthStencilDescriptor new]);
|
auto desc = MRCTransfer([MTLDepthStencilDescriptor new]);
|
||||||
Metal::DepthStencilSelector sel;
|
Metal::DepthStencilSelector sel;
|
||||||
|
|
|
@ -440,7 +440,8 @@ void Metal::StateTracker::FlushEncoders()
|
||||||
if (StateTracker* tracker = backref->state_tracker)
|
if (StateTracker* tracker = backref->state_tracker)
|
||||||
{
|
{
|
||||||
// We can do the update non-atomically because we only ever update under the lock
|
// We can do the update non-atomically because we only ever update under the lock
|
||||||
u64 newval = std::max(draw, tracker->m_last_finished_draw.load(std::memory_order_relaxed));
|
u64 newval =
|
||||||
|
std::max(draw, tracker->m_last_finished_draw.load(std::memory_order_relaxed));
|
||||||
tracker->m_last_finished_draw.store(newval, std::memory_order_release);
|
tracker->m_last_finished_draw.store(newval, std::memory_order_release);
|
||||||
if (q)
|
if (q)
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,7 +18,7 @@ if ! [ -x "$(command -v $GIT)" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
REQUIRED_CLANG_FORMAT_MAJOR=12
|
REQUIRED_CLANG_FORMAT_MAJOR=13
|
||||||
REQUIRED_CLANG_FORMAT_MINOR=0
|
REQUIRED_CLANG_FORMAT_MINOR=0
|
||||||
CLANG_FORMAT=clang-format
|
CLANG_FORMAT=clang-format
|
||||||
CLANG_FORMAT_MAJOR=clang-format-${REQUIRED_CLANG_FORMAT_MAJOR}
|
CLANG_FORMAT_MAJOR=clang-format-${REQUIRED_CLANG_FORMAT_MAJOR}
|
||||||
|
|
Loading…
Reference in New Issue