summaryrefslogtreecommitdiffstats
path: root/thirdparty/astcenc/astcenc_image.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-07 15:34:07 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-02-29 18:36:40 +0100
commit82f20cdcc0a48435fa3ba3f0d4ff4ecbb30da450 (patch)
tree256b97c00b82369d83cc3bd885f7f367ea7fbf5d /thirdparty/astcenc/astcenc_image.cpp
parent7d2ca2d8ac49cde9767e00b70f9eaf1920eb266d (diff)
downloadredot-engine-82f20cdcc0a48435fa3ba3f0d4ff4ecbb30da450.tar.gz
astcenc: Update to 4.7.0
https://github.com/ARM-software/astc-encoder/releases/tag/4.5.0 https://github.com/ARM-software/astc-encoder/releases/tag/4.6.0 https://github.com/ARM-software/astc-encoder/releases/tag/4.7.0
Diffstat (limited to 'thirdparty/astcenc/astcenc_image.cpp')
-rw-r--r--thirdparty/astcenc/astcenc_image.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/thirdparty/astcenc/astcenc_image.cpp b/thirdparty/astcenc/astcenc_image.cpp
index 9c0d6727d0..079f69f194 100644
--- a/thirdparty/astcenc/astcenc_image.cpp
+++ b/thirdparty/astcenc/astcenc_image.cpp
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// ----------------------------------------------------------------------------
-// Copyright 2011-2022 Arm Limited
+// Copyright 2011-2024 Arm Limited
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
@@ -109,7 +109,7 @@ static vfloat4 swz_texel(
vfloat4 data,
const astcenc_swizzle& swz
) {
- alignas(16) float datas[6];
+ ASTCENC_ALIGNAS float datas[6];
storea(data, datas);
datas[ASTCENC_SWZ_0] = 0.0f;
@@ -433,7 +433,7 @@ void store_image_block(
vint data_rgbai = interleave_rgba8(data_ri, data_gi, data_bi, data_ai);
vmask store_mask = vint::lane_id() < vint(used_texels);
- store_lanes_masked(reinterpret_cast<int*>(data8_row), data_rgbai, store_mask);
+ store_lanes_masked(data8_row, data_rgbai, store_mask);
data8_row += ASTCENC_SIMD_WIDTH * 4;
idx += used_texels;