rsx: Res scaling improvements

- gl: Reintroduce the wcb hw downscaling
- rsx: Clamp scalable render target size with a config var
This commit is contained in:
kd-11 2017-10-03 14:38:00 +03:00
parent 3fe37ede97
commit fc0f98b5db
4 changed files with 47 additions and 11 deletions

View file

@ -809,7 +809,7 @@ namespace rsx
const auto window_origin = rsx::method_registers.shader_window_origin();
const u32 window_height = rsx::method_registers.shader_window_height();
const f32 resolution_scale = rsx::get_resolution_scale();
const f32 resolution_scale = (window_height <= g_cfg.video.min_scalable_dimension)? 1.f : rsx::get_resolution_scale();
const f32 wpos_scale = (window_origin == rsx::window_origin::top) ? (1.f / resolution_scale) : (-1.f / resolution_scale);
const f32 wpos_bias = (window_origin == rsx::window_origin::top) ? 0.f : window_height;