yuzu/src/shader_recompiler/backend/spirv
Wollnashorn 780240e697 shader_recompiler: Add subpixel offset for correct rounding at ImageGather
On AMD a subpixel offset of 1/512 of the texel size is applied to the texture coordinates at a ImageGather call to ensure the rounding at the texel centers is done the same way as in Maxwell or other Nvidia architectures.
See https://www.reedbeta.com/blog/texture-gathers-and-coordinate-precision/ for more details why this might be necessary.

This should fix shadow artifacts at object edges in Zelda: Breath of the Wild (#9957, #6956).
2023-04-08 16:12:30 +02:00
..
emit_spirv.cpp Vulkan: update initialization 2022-11-27 14:58:28 -05:00
emit_spirv.h video_core: Generate mipmap texture by drawing 2022-09-20 11:55:43 +08:00
emit_spirv_atomic.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_spirv_barriers.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_spirv_bitwise_conversion.cpp shader_recompiler: Remove S32 IR type 2023-01-25 22:03:15 -05:00
emit_spirv_composite.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_spirv_context_get_set.cpp Run clang-format 2023-01-05 22:18:10 +00:00
emit_spirv_control_flow.cpp Vulkan: update initialization 2022-11-27 14:58:28 -05:00
emit_spirv_convert.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_spirv_floating_point.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_spirv_image.cpp shader_recompiler: Add subpixel offset for correct rounding at ImageGather 2023-04-08 16:12:30 +02:00
emit_spirv_image_atomic.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_spirv_instructions.h Merge pull request #9694 from ameerj/txq-mips 2023-01-29 12:27:26 -05:00
emit_spirv_integer.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_spirv_logical.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_spirv_memory.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_spirv_select.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_spirv_shared_memory.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_spirv_special.cpp Vulkan: Add support for VK_EXT_depth_clip_control. 2022-12-13 21:39:18 -05:00
emit_spirv_undefined.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_spirv_warp.cpp shader_recompiler: Fix shuffle partitioning for >64 invoc-per-subgroup GPUs 2023-01-05 22:13:07 +00:00
spirv_emit_context.cpp spirv: Fix TXQ with MSAA textures 2023-01-29 13:47:30 -05:00
spirv_emit_context.h spirv: Fix TXQ with MSAA textures 2023-01-29 13:47:30 -05:00