summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/const_buffer_engine_interface.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-06-05shader/texture: Join separate image and sampler pairs offlineReinUsesLisp1-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
2020-03-27engines/const_buffer_engine_interface: Store image format typeReinUsesLisp1-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).
2020-03-09const_buffer_engine_interface: Store component typesReinUsesLisp1-43/+24
This is required for Vulkan. Sampling integer textures with float handles is illegal.
2020-01-24Shader_IR: Allow constant access of guest driver.Fernando Sahmkow1-0/+1
2020-01-24GPU: Implement guest driver profile and deduce texture handler sizes.Fernando Sahmkow1-0/+3
2019-11-23video_core: Unify ProgramType and ShaderStage into ShaderTypeReinUsesLisp1-9/+1
2019-10-26Shader_IR: Address Feedback.Fernando Sahmkow1-3/+6
2019-10-25gl_shader_disk_cache: Store and load fast BRXReinUsesLisp1-19/+16
2019-10-25Shader_IR: allow lookup of texture samplers within the shader_ir for instructions that don't provide itFernando Sahmkow1-1/+94
2019-10-25VideoCore: Unify const buffer accessing along engines and provide ConstBufferLocker class to shaders.Fernando Sahmkow1-0/+26