summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/video_core/host_shaders/convert_abgr8_to_d24s8.frag2
-rw-r--r--src/video_core/host_shaders/convert_d24s8_to_abgr8.frag2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/host_shaders/convert_abgr8_to_d24s8.frag b/src/video_core/host_shaders/convert_abgr8_to_d24s8.frag
index d51397a0c..ea055ddad 100644
--- a/src/video_core/host_shaders/convert_abgr8_to_d24s8.frag
+++ b/src/video_core/host_shaders/convert_abgr8_to_d24s8.frag
@@ -9,7 +9,7 @@ layout(binding = 0) uniform sampler2D color_texture;
9 9
10void main() { 10void main() {
11 ivec2 coord = ivec2(gl_FragCoord.xy); 11 ivec2 coord = ivec2(gl_FragCoord.xy);
12 uvec4 color = uvec4(texelFetch(color_texture, coord, 0).rgba * (exp2(8) - 1.0f)); 12 uvec4 color = uvec4(texelFetch(color_texture, coord, 0).abgr * (exp2(8) - 1.0f));
13 uvec4 bytes = color << uvec4(24, 16, 8, 0); 13 uvec4 bytes = color << uvec4(24, 16, 8, 0);
14 uint depth_stencil_unorm = bytes.x | bytes.y | bytes.z | bytes.w; 14 uint depth_stencil_unorm = bytes.x | bytes.y | bytes.z | bytes.w;
15 15
diff --git a/src/video_core/host_shaders/convert_d24s8_to_abgr8.frag b/src/video_core/host_shaders/convert_d24s8_to_abgr8.frag
index 47f9c1abc..94368fb59 100644
--- a/src/video_core/host_shaders/convert_d24s8_to_abgr8.frag
+++ b/src/video_core/host_shaders/convert_d24s8_to_abgr8.frag
@@ -19,5 +19,5 @@ void main() {
19 lowp uint stencil_val = textureLod(stencil_tex, coord, 0).r; 19 lowp uint stencil_val = textureLod(stencil_tex, coord, 0).r;
20 highp uvec4 components = 20 highp uvec4 components =
21 uvec4(stencil_val, (uvec3(depth_val) >> uvec3(24u, 16u, 8u)) & 0x000000FFu); 21 uvec4(stencil_val, (uvec3(depth_val) >> uvec3(24u, 16u, 8u)) & 0x000000FFu);
22 color = vec4(components) / (exp2(8.0) - 1.0); 22 color.abgr = vec4(components) / (exp2(8.0) - 1.0);
23} 23}