diff options
| author | 2016-12-15 23:53:06 -0800 | |
|---|---|---|
| committer | 2016-12-16 00:15:55 -0800 | |
| commit | 6e7e76764569fd34d1d5dffd77db98b36cd7fa84 (patch) | |
| tree | 01156555cdc3e6864637ac9af877ef8c56c0d6cb /src | |
| parent | VideoCore/Shader: Extract evaluate_condition lambda to function scope (diff) | |
| download | yuzu-6e7e76764569fd34d1d5dffd77db98b36cd7fa84.tar.gz yuzu-6e7e76764569fd34d1d5dffd77db98b36cd7fa84.tar.xz yuzu-6e7e76764569fd34d1d5dffd77db98b36cd7fa84.zip | |
Remove unnecessary cast
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/shader_jit_x64.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp index a85a6776f..65898035e 100644 --- a/src/video_core/shader/shader_jit_x64.cpp +++ b/src/video_core/shader/shader_jit_x64.cpp | |||
| @@ -266,9 +266,7 @@ void JitShader::Compile_DestEnable(Instruction instr, Xmm src) { | |||
| 266 | 266 | ||
| 267 | SwizzlePattern swiz = {g_state.vs.swizzle_data[operand_desc_id]}; | 267 | SwizzlePattern swiz = {g_state.vs.swizzle_data[operand_desc_id]}; |
| 268 | 268 | ||
| 269 | int dest_offset_disp = (int)UnitState<false>::OutputOffset(dest); | 269 | size_t dest_offset_disp = UnitState<false>::OutputOffset(dest); |
| 270 | ASSERT_MSG(dest_offset_disp == UnitState<false>::OutputOffset(dest), | ||
| 271 | "Destinaton offset too large for int type"); | ||
| 272 | 270 | ||
| 273 | // If all components are enabled, write the result to the destination register | 271 | // If all components are enabled, write the result to the destination register |
| 274 | if (swiz.dest_mask == NO_DEST_REG_MASK) { | 272 | if (swiz.dest_mask == NO_DEST_REG_MASK) { |