diff options
author | notaz | 2012-08-15 23:52:38 +0300 |
---|---|---|
committer | notaz | 2012-10-12 00:05:08 +0300 |
commit | c6063f8985c69362a89a12111f393229ab65d05f (patch) | |
tree | 7b601359aa0b83baf41b51d6ea674bc3307a52cc /plugins/gpu_neon/psx_gpu/psx_gpu.c | |
parent | 24c742fccede19c9baecc36008f4d8ac4f9a51fa (diff) | |
download | pcsx_rearmed-c6063f8985c69362a89a12111f393229ab65d05f.tar.gz pcsx_rearmed-c6063f8985c69362a89a12111f393229ab65d05f.tar.bz2 pcsx_rearmed-c6063f8985c69362a89a12111f393229ab65d05f.zip |
psx_gpu: use different uvrgb phase for enhancement
Diffstat (limited to 'plugins/gpu_neon/psx_gpu/psx_gpu.c')
-rw-r--r-- | plugins/gpu_neon/psx_gpu/psx_gpu.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu.c b/plugins/gpu_neon/psx_gpu/psx_gpu.c index 1385e2e..28ebcf5 100644 --- a/plugins/gpu_neon/psx_gpu/psx_gpu.c +++ b/plugins/gpu_neon/psx_gpu/psx_gpu.c @@ -567,7 +567,7 @@ void compute_all_gradients(psx_gpu_struct *psx_gpu, vertex_struct *a, vec_4x32u uvrg_base; vec_4x32u b_base; - vec_4x32u const_0x8000; + vec_4x32u uvrgb_phase; vec_4x16s d0_a_d3_c, d0_b, d0_c; vec_4x16s d1_a, d1_b, d1_c_d2_a; @@ -596,12 +596,12 @@ void compute_all_gradients(psx_gpu_struct *psx_gpu, vertex_struct *a, setup_gradient_calculation_input(1, b); setup_gradient_calculation_input(2, c); - dup_4x32b(const_0x8000, 0x8000); + dup_4x32b(uvrgb_phase, psx_gpu->uvrgb_phase); shl_long_4x16b(uvrg_base, x0_a_y0_c, 16); shl_long_4x16b(b_base, x0_b, 16); - add_4x32b(uvrg_base, uvrg_base, const_0x8000); - add_4x32b(b_base, b_base, const_0x8000); + add_4x32b(uvrg_base, uvrg_base, uvrgb_phase); + add_4x32b(b_base, b_base, uvrgb_phase); // Can probably pair these, but it'll require careful register allocation sub_4x16b(d0_a_d3_c, x1_a_y1_c, x0_a_y0_c); @@ -4632,6 +4632,7 @@ void initialize_psx_gpu(psx_gpu_struct *psx_gpu, u16 *vram) psx_gpu->render_state = 0; psx_gpu->render_state_base = 0; psx_gpu->num_blocks = 0; + psx_gpu->uvrgb_phase = 0x8000; psx_gpu->vram_ptr = vram; psx_gpu->vram_out_ptr = vram; |