Merge branch 'master' of https://github.com/xenia-project/xenia into canary_experimental

This commit is contained in:
Gliniak 2022-10-18 12:19:52 +02:00
commit 48fea6d9aa
1 changed files with 8 additions and 9 deletions

View File

@ -693,15 +693,14 @@ void DxbcShaderTranslator::StartPixelShader() {
if (i == param_gen_interpolator) {
continue;
}
a_.OpMov(
uses_register_dynamic_addressing ? dxbc::Dest::X(0, i)
: dxbc::Dest::R(i),
(i < xenos::kMaxInterpolators &&
(interpolator_mask & (UINT32_C(1) << i)))
? dxbc::Src::V1D(
in_reg_ps_interpolators_ +
xe::bit_count((interpolator_mask & (UINT32_C(1) << i)) - 1))
: dxbc::Src::LF(0.0f));
a_.OpMov(uses_register_dynamic_addressing ? dxbc::Dest::X(0, i)
: dxbc::Dest::R(i),
(i < xenos::kMaxInterpolators &&
(interpolator_mask & (UINT32_C(1) << i)))
? dxbc::Src::V1D(in_reg_ps_interpolators_ +
xe::bit_count(interpolator_mask &
((UINT32_C(1) << i) - 1)))
: dxbc::Src::LF(0.0f));
}
// Write the pixel parameters to the specified interpolator register