summaryrefslogtreecommitdiff
path: root/src/shader_recompiler
diff options
context:
space:
mode:
authorGravatar Wollnashorn2023-04-05 03:02:24 +0200
committerGravatar Wollnashorn2023-04-08 16:12:44 +0200
commitfe91066f4673f7a3ee87235f08b72db4910eb01c (patch)
tree7228ef7eb04f1f0ceb289d54daeba42d0d2719c8 /src/shader_recompiler
parentshader_recompiler: Add subpixel offset for correct rounding at `ImageGather` (diff)
downloadyuzu-fe91066f4673f7a3ee87235f08b72db4910eb01c.tar.gz
yuzu-fe91066f4673f7a3ee87235f08b72db4910eb01c.tar.xz
yuzu-fe91066f4673f7a3ee87235f08b72db4910eb01c.zip
video_core: Enable ImageGather with subpixel offset on Intel
Diffstat (limited to 'src/shader_recompiler')
-rw-r--r--src/shader_recompiler/profile.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/profile.h b/src/shader_recompiler/profile.h
index 31390e869..9f88fb440 100644
--- a/src/shader_recompiler/profile.h
+++ b/src/shader_recompiler/profile.h
@@ -52,9 +52,9 @@ struct Profile {
52 bool need_declared_frag_colors{}; 52 bool need_declared_frag_colors{};
53 /// Prevents fast math optimizations that may cause inaccuracies 53 /// Prevents fast math optimizations that may cause inaccuracies
54 bool need_fastmath_off{}; 54 bool need_fastmath_off{};
55 /// Some GPU vendors use a lower fixed point format of 16.8 when calculating pixel coordinates 55 /// Some GPU vendors use a different rounding precision when calculating texture pixel
56 /// in the ImageGather instruction than the Maxwell architecture does. Applying an offset does 56 /// coordinates with the 16.8 format in the ImageGather instruction than the Maxwell
57 /// fix this mismatching rounding behaviour. 57 /// architecture. Applying an offset does fix this mismatching rounding behaviour.
58 bool need_gather_subpixel_offset{}; 58 bool need_gather_subpixel_offset{};
59 59
60 /// OpFClamp is broken and OpFMax + OpFMin should be used instead 60 /// OpFClamp is broken and OpFMax + OpFMin should be used instead