yuzu/src/video_core/shader/decode
ReinUsesLisp 5b2b6d594c shader/texture: Join separate image and sampler pairs offline
Games using D3D idioms can join images and samplers when a shader
executes, instead of baking them into a combined sampler image. This is
also possible on Vulkan.

One approach to this solution would be to use separate samplers on
Vulkan and leave this unimplemented on OpenGL, but we can't do this
because there's no consistent way of determining which constant buffer
holds a sampler and which one an image. We could in theory find the
first bit and if it's in the TIC area, it's an image; but this falls
apart when an image or sampler handle use an index of zero.

The used approach is to track for a LOP.OR operation (this is done at an
IR level, not at an ISA level), track again the constant buffers used as
source and store this pair. Then, outside of shader execution, join
the sample and image pair with a bitwise or operation.

This approach won't work on games that truly use separate samplers in a
meaningful way. For example, pooling textures in a 2D array and
determining at runtime what sampler to use.

This invalidates OpenGL's disk shader cache :)

- Used mostly by D3D ports to Switch
2020-06-05 00:24:51 -03:00
..
arithmetic_half_immediate.cpp shader/decode: Reduce severity of arithmetic rounding warnings 2019-11-07 01:43:38 -03:00
arithmetic_half.cpp decode/arithmetic_half: Fix HADD2 and HMUL2 absolute and negation bits 2020-04-23 18:29:38 -03:00
arithmetic_immediate.cpp shader: Use shared_ptr to store nodes and move initialization to file 2019-06-05 20:41:52 -03:00
arithmetic_integer_immediate.cpp shader: Use shared_ptr to store nodes and move initialization to file 2019-06-05 20:41:52 -03:00
arithmetic_integer.cpp shader/arithmetic_integer: Fix tracking issue in temporary 2020-04-28 17:14:53 -03:00
arithmetic.cpp shader/arithmetic: Add FCMP_CR variant 2020-04-14 19:11:04 -03:00
bfe.cpp clang-format 2020-03-14 10:07:40 +07:00
bfi.cpp shader/decode: Fix constant buffer offsets 2020-02-05 12:19:09 -03:00
conversion.cpp shader/conversion: Implement I2I sign extension, saturation and selection 2020-04-07 02:19:44 -03:00
ffma.cpp shader/decode: Reduce severity of arithmetic rounding warnings 2019-11-07 01:43:38 -03:00
float_set_predicate.cpp Merge pull request #2811 from ReinUsesLisp/fsetp-fix 2019-09-03 22:34:34 -04:00
float_set.cpp video_core: Silent miscellaneous warnings (#2820) 2019-08-30 14:08:00 -04:00
half_set_predicate.cpp shader/decode: Reduce severity of arithmetic rounding warnings 2019-11-07 01:43:38 -03:00
half_set.cpp shader/decode: Reduce severity of arithmetic rounding warnings 2019-11-07 01:43:38 -03:00
hfma2.cpp Shader_Ir: Downgrade precision and rounding asserts to debug asserts. 2019-07-18 08:17:19 -04:00
image.cpp shader_ir: Turn classes into data structures 2020-04-23 18:00:06 -03:00
integer_set_predicate.cpp video_core: Silent miscellaneous warnings (#2820) 2019-08-30 14:08:00 -04:00
integer_set.cpp video_core: Silent miscellaneous warnings (#2820) 2019-08-30 14:08:00 -04:00
memory.cpp shader/memory: Implement non-addition operations in RED 2020-05-21 23:19:46 -03:00
other.cpp Merge pull request #4016 from ReinUsesLisp/invocation-info 2020-06-02 09:47:53 -04:00
predicate_set_predicate.cpp shader: Use shared_ptr to store nodes and move initialization to file 2019-06-05 20:41:52 -03:00
predicate_set_register.cpp video_core: Silent miscellaneous warnings (#2820) 2019-08-30 14:08:00 -04:00
register_set_predicate.cpp decode/register_set_predicate: Implement CC 2020-04-25 22:54:42 -03:00
shift.cpp decode/shift: Remove unused variable within Shift() 2020-04-16 00:16:06 -04:00
texture.cpp shader/texture: Join separate image and sampler pairs offline 2020-06-05 00:24:51 -03:00
video.cpp shader/video: Partially implement VMNMX 2020-04-12 00:34:42 -03:00
warp.cpp shader: Keep track of shaders using warp instructions 2019-12-09 23:40:41 -03:00
xmad.cpp shader_ir: Separate float-point comparisons in ordered and unordered 2020-05-09 04:55:15 -03:00