mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
Merge pull request #6801 from stenzek/copy-filter-typo
D3D/Vulkan: Fix incorrect clamp in EFB RAM copy
This commit is contained in:
commit
d1bb5249ec
@ -110,7 +110,7 @@ void PSTextureEncoder::Encode(
|
|||||||
encode_params.y_scale = y_scale;
|
encode_params.y_scale = y_scale;
|
||||||
encode_params.gamma_rcp = 1.0f / gamma;
|
encode_params.gamma_rcp = 1.0f / gamma;
|
||||||
encode_params.clamp_top = clamp_top ? src_rect.top / float(EFB_HEIGHT) : 0.0f;
|
encode_params.clamp_top = clamp_top ? src_rect.top / float(EFB_HEIGHT) : 0.0f;
|
||||||
encode_params.clamp_bottom = clamp_bottom ? src_rect.bottom / float(EFB_HEIGHT) : 0.0f;
|
encode_params.clamp_bottom = clamp_bottom ? src_rect.bottom / float(EFB_HEIGHT) : 1.0f;
|
||||||
for (size_t i = 0; i < filter_coefficients.size(); i++)
|
for (size_t i = 0; i < filter_coefficients.size(); i++)
|
||||||
encode_params.filter_coefficients[i] = filter_coefficients[i];
|
encode_params.filter_coefficients[i] = filter_coefficients[i];
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ void TextureConverter::EncodeTextureToMemory(
|
|||||||
encoder_params.y_scale = y_scale;
|
encoder_params.y_scale = y_scale;
|
||||||
encoder_params.gamma_rcp = 1.0f / gamma;
|
encoder_params.gamma_rcp = 1.0f / gamma;
|
||||||
encoder_params.clamp_top = clamp_top ? src_rect.top / float(EFB_HEIGHT) : 0.0f;
|
encoder_params.clamp_top = clamp_top ? src_rect.top / float(EFB_HEIGHT) : 0.0f;
|
||||||
encoder_params.clamp_bottom = clamp_bottom ? src_rect.bottom / float(EFB_HEIGHT) : 0.0f;
|
encoder_params.clamp_bottom = clamp_bottom ? src_rect.bottom / float(EFB_HEIGHT) : 1.0f;
|
||||||
for (size_t i = 0; i < filter_coefficients.size(); i++)
|
for (size_t i = 0; i < filter_coefficients.size(); i++)
|
||||||
encoder_params.filter_coefficients[i] = filter_coefficients[i];
|
encoder_params.filter_coefficients[i] = filter_coefficients[i];
|
||||||
u8* ubo_ptr = draw.AllocatePSUniforms(sizeof(EFBEncodeParams));
|
u8* ubo_ptr = draw.AllocatePSUniforms(sizeof(EFBEncodeParams));
|
||||||
|
Loading…
Reference in New Issue
Block a user