diff options
author | pjft | 2017-05-06 21:51:55 +0100 |
---|---|---|
committer | pjft | 2017-05-06 21:51:55 +0100 |
commit | 5c1cbedc034c59caba3955c663868c74e9631731 (patch) | |
tree | bcd4c60d4987b6172565d848c45a8554bba3be97 /plugins/gpu_neon/psx_gpu_if.c | |
parent | 70fb8fe72ff0ff6356e78be861355075bf8fb4fe (diff) | |
download | pcsx_rearmed-5c1cbedc034c59caba3955c663868c74e9631731.tar.gz pcsx_rearmed-5c1cbedc034c59caba3955c663868c74e9631731.tar.bz2 pcsx_rearmed-5c1cbedc034c59caba3955c663868c74e9631731.zip |
Adding enable/disable dithering core option with support for Neon GPU
Diffstat (limited to 'plugins/gpu_neon/psx_gpu_if.c')
-rw-r--r-- | plugins/gpu_neon/psx_gpu_if.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/gpu_neon/psx_gpu_if.c b/plugins/gpu_neon/psx_gpu_if.c index ad01761..788e3b4 100644 --- a/plugins/gpu_neon/psx_gpu_if.c +++ b/plugins/gpu_neon/psx_gpu_if.c @@ -184,4 +184,18 @@ void renderer_set_config(const struct rearmed_cbs *cbs) map_enhancement_buffer(); if (cbs->pl_set_gpu_caps) cbs->pl_set_gpu_caps(GPU_CAP_SUPPORTS_2X); + + egpu.use_dithering = cbs->gpu_neon.allow_dithering; + if(!egpu.use_dithering) { + egpu.dither_table[0] = dither_table_row(0, 0, 0, 0); + egpu.dither_table[1] = dither_table_row(0, 0, 0, 0); + egpu.dither_table[2] = dither_table_row(0, 0, 0, 0); + egpu.dither_table[3] = dither_table_row(0, 0, 0, 0); + } else { + egpu.dither_table[0] = dither_table_row(-4, 0, -3, 1); + egpu.dither_table[1] = dither_table_row(2, -2, 3, -1); + egpu.dither_table[2] = dither_table_row(-3, 1, -4, 0); + egpu.dither_table[3] = dither_table_row(3, -1, 2, -2); + } + } |