summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/const_buffer_engine_interface.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* shader/texture: Join separate image and sampler pairs offlineReinUsesLisp2020-06-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* engines/const_buffer_engine_interface: Store image format typeReinUsesLisp2020-03-271-4/+10
| | | | | | | This information is required to properly implement SULD.B. It might also be handy for all image operations, since it would allow us to implement them on devices that require the image format to be specified (on desktop, this would be AMD on OpenGL and Intel on OpenGL and Vulkan).
* const_buffer_engine_interface: Store component typesReinUsesLisp2020-03-091-43/+24
| | | | | This is required for Vulkan. Sampling integer textures with float handles is illegal.
* Shader_IR: Allow constant access of guest driver.Fernando Sahmkow2020-01-241-0/+1
|
* GPU: Implement guest driver profile and deduce texture handler sizes.Fernando Sahmkow2020-01-241-0/+3
|
* video_core: Unify ProgramType and ShaderStage into ShaderTypeReinUsesLisp2019-11-231-9/+1
|
* Shader_IR: Address Feedback.Fernando Sahmkow2019-10-261-3/+6
|
* gl_shader_disk_cache: Store and load fast BRXReinUsesLisp2019-10-251-19/+16
|
* Shader_IR: allow lookup of texture samplers within the shader_ir for instructions that don't provide itFernando Sahmkow2019-10-251-1/+94
|
* VideoCore: Unify const buffer accessing along engines and provide ConstBufferLocker class to shaders.Fernando Sahmkow2019-10-251-0/+26