diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.h | 6 |
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: | |||
| 184 | default: | 184 | default: |
| 185 | // Thresholds begin at 0x10 (1 << 4) | 185 | // Thresholds begin at 0x10 (1 << 4) |
| 186 | // Threshold is in the range 0x1 to 0x13 | 186 | // Threshold is in the range 0x1 to 0x13 |
| 187 | return 1 << (4 + threshold.Value() - 1); | 187 | return 1U << (4 + threshold.Value() - 1); |
| 188 | } | 188 | } |
| 189 | } | 189 | } |
| 190 | }; | 190 | }; |
| @@ -822,11 +822,11 @@ public: | |||
| 822 | struct CompressionThresholdSamples { | 822 | struct CompressionThresholdSamples { |
| 823 | u32 samples; | 823 | u32 samples; |
| 824 | 824 | ||
| 825 | u32 Samples() { | 825 | u32 Samples() const { |
| 826 | if (samples == 0) { | 826 | if (samples == 0) { |
| 827 | return 0; | 827 | return 0; |
| 828 | } | 828 | } |
| 829 | return 1 << (samples - 1); | 829 | return 1U << (samples - 1); |
| 830 | } | 830 | } |
| 831 | }; | 831 | }; |
| 832 | 832 | ||