aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpulib
diff options
context:
space:
mode:
authorpjft2017-05-06 21:51:55 +0100
committerpjft2017-05-06 21:51:55 +0100
commit5c1cbedc034c59caba3955c663868c74e9631731 (patch)
treebcd4c60d4987b6172565d848c45a8554bba3be97 /plugins/gpulib
parent70fb8fe72ff0ff6356e78be861355075bf8fb4fe (diff)
downloadpcsx_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/gpulib')
-rw-r--r--plugins/gpulib/gpu.c1
-rw-r--r--plugins/gpulib/gpu.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/gpulib/gpu.c b/plugins/gpulib/gpu.c
index 125bd89..9fc5f43 100644
--- a/plugins/gpulib/gpu.c
+++ b/plugins/gpulib/gpu.c
@@ -726,6 +726,7 @@ void GPUrearmedCallbacks(const struct rearmed_cbs *cbs)
gpu.state.allow_interlace = cbs->gpu_neon.allow_interlace;
gpu.state.enhancement_enable = cbs->gpu_neon.enhancement_enable;
+ gpu.useDithering = cbs->gpu_neon.allow_dithering;
gpu.mmap = cbs->mmap;
gpu.munmap = cbs->munmap;
diff --git a/plugins/gpulib/gpu.h b/plugins/gpulib/gpu.h
index d11f991..7e1d18b 100644
--- a/plugins/gpulib/gpu.h
+++ b/plugins/gpulib/gpu.h
@@ -88,6 +88,7 @@ struct psx_gpu {
uint32_t last_flip_frame;
uint32_t pending_fill[3];
} frameskip;
+ int useDithering:1; /* 0 - off , 1 - on */
uint16_t *(*get_enhancement_bufer)
(int *x, int *y, int *w, int *h, int *vram_h);
void *(*mmap)(unsigned int size);