summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-11-29 14:39:31 +0100
committerLioncash <mathew1800@gmail.com>2022-11-29 14:39:33 +0100
commit96ffc174aae2f2ac0662d770613ee7ed48e54c74 (patch)
tree99fefee7605c3f3892d97cacb332229579e637ad /src/video_core
parentengines: Remove unnecessary casts (diff)
downloadyuzu-96ffc174aae2f2ac0662d770613ee7ed48e54c74.tar
yuzu-96ffc174aae2f2ac0662d770613ee7ed48e54c74.tar.gz
yuzu-96ffc174aae2f2ac0662d770613ee7ed48e54c74.tar.bz2
yuzu-96ffc174aae2f2ac0662d770613ee7ed48e54c74.tar.lz
yuzu-96ffc174aae2f2ac0662d770613ee7ed48e54c74.tar.xz
yuzu-96ffc174aae2f2ac0662d770613ee7ed48e54c74.tar.zst
yuzu-96ffc174aae2f2ac0662d770613ee7ed48e54c74.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/engines/maxwell_3d.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index cd334f188..deba292a5 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -184,7 +184,7 @@ public:
default:
// Thresholds begin at 0x10 (1 << 4)
// Threshold is in the range 0x1 to 0x13
- return 1 << (4 + threshold.Value() - 1);
+ return 1U << (4 + threshold.Value() - 1);
}
}
};
@@ -822,11 +822,11 @@ public:
struct CompressionThresholdSamples {
u32 samples;
- u32 Samples() {
+ u32 Samples() const {
if (samples == 0) {
return 0;
}
- return 1 << (samples - 1);
+ return 1U << (samples - 1);
}
};