Browse Source

FUCKCLANG

lizzie/astc-mp4-improv
lizzie 1 month ago
committed by crueter
parent
commit
144e20800f
  1. 1
      src/video_core/textures/astc.cpp

1
src/video_core/textures/astc.cpp

@ -590,7 +590,6 @@ static TexelWeightParams DecodeBlockInfo(InputBitStream& strm) {
// Replicates low num_bits such that [(to_bit - 1):(to_bit - 1 - from_bit)]
// is the same as [(num_bits - 1):0] and repeats all the way down.
[[nodiscard]] constexpr u32 Replicate(u32 v, u32 num_bits, u32 to_bit) {
auto const mask = u32(1 << num_bits) - 1;
auto val = v;
for (; num_bits < to_bit; num_bits <<= 1)
val |= val << u32(num_bits);

Loading…
Cancel
Save