From 10db10e6ba774a08de21255981a7364535fc87fa Mon Sep 17 00:00:00 2001 From: "sudonim1@gmail.com" Date: Mon, 6 Aug 2012 17:38:28 +0000 Subject: [PATCH] GSDX: reduce precision requirement for DATE, partially fixes Intel GPUs. (Not sure exactly what's going on here, I think that 0x80 as a 8 bit unorm isn't exactly the same as 128.f/255 but I don't know whether it's required to be... we can just play safe on this anyway). git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5362 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/res/convert.fx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/res/convert.fx b/plugins/GSdx/res/convert.fx index 5118817fa8..045a2cbd55 100644 --- a/plugins/GSdx/res/convert.fx +++ b/plugins/GSdx/res/convert.fx @@ -132,7 +132,7 @@ PS_OUTPUT ps_main2(PS_INPUT input) { PS_OUTPUT output; - clip(sample_c(input.t).a - 128.0f / 255); // >= 0x80 pass + clip(sample_c(input.t).a - 127.5f / 255); // >= 0x80 pass output.c = 0; @@ -143,7 +143,7 @@ PS_OUTPUT ps_main3(PS_INPUT input) { PS_OUTPUT output; - clip(127.95f / 255 - sample_c(input.t).a); // < 0x80 pass (== 0x80 should not pass) + clip(127.5f / 255 - sample_c(input.t).a); // < 0x80 pass (== 0x80 should not pass) output.c = 0;