summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_cache.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* VideoCore: implement channels on gpu caches.Fernando Sahmkow2022-10-061-6/+3
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* video_core: Reduce unused includesameerj2022-03-191-5/+0
|
* gl_shader_cache: Fixes for async shadersameerj2021-07-231-0/+2
|
* shader: Unify shader stage typesReinUsesLisp2021-07-231-1/+0
|
* gl_shader_cache: Check previous pipeline before checking hash mapReinUsesLisp2021-07-231-1/+4
| | | | Port optimization from Vulkan.
* shader: Split profile and runtime info headersReinUsesLisp2021-07-231-0/+1
|
* shader: Add support for native 16-bit floatsReinUsesLisp2021-07-231-0/+3
|
* gl_shader_cache: Implement async shadersameerj2021-07-231-23/+11
|
* gl_shader_cache: Store workers in shader cache objectReinUsesLisp2021-07-231-0/+7
|
* shader: Handle host exceptionsReinUsesLisp2021-07-231-3/+2
|
* gl_shader_cache: Add disk shader cacheReinUsesLisp2021-07-231-4/+6
|
* gl_shader_cache: Rename Program abstractions into PipelineReinUsesLisp2021-07-231-16/+16
|
* gl_shader_cache,glasm: Conditionally use typeless image reads extensionReinUsesLisp2021-07-231-0/+2
|
* shader: Initial OpenGL implementationReinUsesLisp2021-07-231-51/+47
|
* shader: Move pipeline cache logic to separate filesReinUsesLisp2021-07-231-13/+45
| | | | | | | | | Move code to separate files to be able to reuse it from OpenGL. This greatly simplifies the pipeline cache logic on Vulkan. Transform feedback state is not yet abstracted and it's still intrusively stored inside vk_pipeline_cache. It will be moved when needed on OpenGL.
* shader: Remove old shader managementReinUsesLisp2021-07-231-100/+2
|
* bootmanager: Use std::stop_source for stopping emulationReinUsesLisp2021-06-221-1/+1
| | | | | | | Use its std::stop_token to abort shader cache loading. Using std::stop_token instead of std::atomic_bool allows the usage of other utilities like std::stop_callback.
* video_core: Resolve more variable shadowing scenarios pt.3Lioncash2020-12-051-4/+5
| | | | | Cleans out the rest of the occurrences of variable shadowing and makes any further occurrences of shadowing compiler errors.
* video_core: Resolve more variable shadowing scenariosLioncash2020-12-041-1/+1
| | | | | | Resolves variable shadowing scenarios up to the end of the OpenGL code to make it nicer to review. The rest will be resolved in a following commit.
* video_core: Remove all Core::System references in rendererReinUsesLisp2020-09-061-8/+15
| | | | | | | | | Now that the GPU is initialized when video backends are initialized, it's no longer needed to query components once the game is running: it can be done when yuzu is booting. This allows us to pass components between constructors and in the process remove all Core::System references in the video backend.
* async shadersDavid Marcec2020-07-171-6/+30
|
* gl_shader_cache: Avoid use after move for program sizeReinUsesLisp2020-06-241-1/+0
| | | | | | All programs had a size of zero due to this bug, skipping invalidations. While we are at it, remove some unused forward declarations.
* gl_shader_cache: Use generic shader cacheReinUsesLisp2020-06-071-31/+20
| | | | Trivially port the generic shader cache to OpenGL.
* renderer_opengl: Add assembly program code pathsReinUsesLisp2020-05-191-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add code required to use OpenGL assembly programs based on NV_gpu_program5. Decompilation for ARB programs is intended to be added in a follow up commit. This does **not** include ARB decompilation and it's not in an usable state. The intention behind assembly programs is to reduce shader stutter significantly on drivers supporting NV_gpu_program5 (and other required extensions). Currently only Nvidia's proprietary driver supports these extensions. Add a UI option hidden for now to avoid people enabling this option accidentally. This code path has some limitations that OpenGL compatibility doesn't have: - NV_shader_storage_buffer_object is limited to 16 entries for a single OpenGL context state (I don't know if this is an intended limitation, an specification issue or I am missing something). Currently causes issues on The Legend of Zelda: Link's Awakening. - NV_parameter_buffer_object can't bind buffers using an offset different to zero. The used workaround is to copy to a temporary buffer (this doesn't happen often so it's not an issue). On the other hand, it has the following advantages: - Shaders build a lot faster. - We have control over how floating point rounding is done over individual instructions (SPIR-V on Vulkan can't do this). - Operations on shared memory can be unsigned and signed. - Transform feedbacks are dynamic state (not yet implemented). - Parameter buffers (uniform buffers) are per stage, matching NVN and hardware's behavior. - The API to bind and create assembly programs makes sense, unlike ARB_separate_shader_objects.
* ShaderCache/PipelineCache: Cache null shaders.Fernando Sahmkow2020-04-221-0/+3
|
* Shader/Pipeline Cache: Use VAddr instead of physical memory for addressing.Fernando Sahmkow2020-04-061-7/+1
|
* video_core: Rename "const buffer locker" to "registry"ReinUsesLisp2020-03-091-4/+4
|
* gl_shader_cache: Rework shader cache and remove post-specializationsReinUsesLisp2020-03-091-64/+33
| | | | | Instead of pre-specializing shaders and then post-specializing them, drop the later and only "specialize" the shader while decoding it.
* gl_shader_cache: Remove dynamic BaseBinding specializationReinUsesLisp2019-11-231-1/+1
|
* video_core: Unify ProgramType and ShaderStage into ShaderTypeReinUsesLisp2019-11-231-6/+7
|
* gl_shader_cache: Specialize shader workgroupReinUsesLisp2019-11-231-3/+3
| | | | | | Drop the usage of ARB_compute_variable_group_size and specialize compute shaders instead. This permits compute to run on AMD and Intel proprietary drivers.
* gl_shader_cache: Implement locker variants invalidationReinUsesLisp2019-10-251-5/+10
|
* gl_shader_disk_cache: Store and load fast BRXReinUsesLisp2019-10-251-1/+6
|
* gl_shader_decompiler: Move entries to a separate functionReinUsesLisp2019-10-251-27/+39
|
* Shader_Cache: setup connection of ConstBufferLockerFernando Sahmkow2019-10-251-0/+1
|
* gl_shader_cache: Remove special casing for geometry shadersReinUsesLisp2019-09-041-21/+0
| | | | | Now that ProgramVariants holds the primitive topology we no longer need to keep track of individual geometry shaders topologies.
* video_core: Silent miscellaneous warnings (#2820)Rodrigo Locatti2019-08-301-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | * texture_cache/surface_params: Remove unused local variable * rasterizer_interface: Add missing documentation commentary * maxwell_dma: Remove unused rasterizer reference * video_core/gpu: Sort member declaration order to silent -Wreorder warning * fermi_2d: Remove unused MemoryManager reference * video_core: Silent unused variable warnings * buffer_cache: Silent -Wreorder warnings * kepler_memory: Remove unused MemoryManager reference * gl_texture_cache: Add missing override * buffer_cache: Add missing include * shader/decode: Remove unused variables
* gl_shader_cache: Fix clang-format issuesReinUsesLisp2019-07-161-2/+1
|
* gl_shader_cache: Address review commentariesReinUsesLisp2019-07-151-3/+3
|
* gl_rasterizer: Implement compute shadersReinUsesLisp2019-07-151-3/+12
|
* Merge pull request #2601 from FernandoS27/texture_cacheZach Hilman2019-07-051-9/+8
|\ | | | | Implement a new Texture Cache
| * gl_rasterizer: Track texture buffer usageReinUsesLisp2019-06-211-9/+8
| |
* | gl_shader_cache: Make CachedShader constructor privateZach Hilman2019-07-041-3/+3
| | | | | | | | Fixes missing review comments introduced.
* | gl_shader_cache: Use static constructors for CachedShader initializationReinUsesLisp2019-06-081-10/+19
|/
* gl_shader_cache: Store a system class and drop global accessorsReinUsesLisp2019-05-301-0/+1
|
* gl_shader_cache: Use shared contexts to build shaders in parallelReinUsesLisp2019-05-211-5/+9
|
* Merge pull request #2413 from FernandoS27/opt-gpuRodrigo Locatti2019-05-141-3/+4
|\ | | | | Rasterizer Cache: refactor flushing & optimize memory usage of surfaces
| * RasterizerCache Redesign: Flush Fernando Sahmkow2019-04-201-3/+4
| | | | | | | | | | | | flushing is now responsability of children caches instead of the cache object. This change will allow the specific cache to pass extra parameters on flushing and will allow more flexibility.
* | gl_shader_decompiler: Use variable AOFFI on supported hardwareReinUsesLisp2019-04-141-2/+6
|/
* video_core/renderer_opengl: Remove unnecessary includesLioncash2019-04-041-3/+2
| | | | | | | Quite a few unused includes have built up over time, particularly on core/memory.h. Removing these includes means the source files including those files will no longer need to be rebuilt if they're changed, making compilation slightly faster in this scenario.
* video_core: Refactor to use MemoryManager interface for all memory access.bunnei2019-03-161-4/+4
| | | | | | | | | | | # Conflicts: # src/video_core/engines/kepler_memory.cpp # src/video_core/engines/maxwell_3d.cpp # src/video_core/morton.cpp # src/video_core/morton.h # src/video_core/renderer_opengl/gl_global_cache.cpp # src/video_core/renderer_opengl/gl_global_cache.h # src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
* gpu: Use host address for caching instead of guest address.bunnei2019-03-151-9/+10
|
* gl_shader_disk_cache: Use unordered containersReinUsesLisp2019-02-071-10/+10
|
* gl_shader_cache: Link loading screen with disk shader cache loadReinUsesLisp2019-02-071-1/+4
|
* gl_shader_disk_cache: Pass core system as argument and guard against games without title idsReinUsesLisp2019-02-071-1/+5
|
* gl_shader_disk_cache: Address miscellaneous feedbackReinUsesLisp2019-02-071-3/+3
|
* gl_shader_disk_cache: Save GLSL and entries into the precompiled fileReinUsesLisp2019-02-071-5/+4
|
* gl_shader_cache: Refactor to support disk shader cacheReinUsesLisp2019-02-071-16/+43
|
* gl_shader_disk_cache: Add file and move BaseBindings declarationReinUsesLisp2019-02-071-10/+1
|
* rasterizer_interface: Add disk cache entry for the rasterizerReinUsesLisp2019-02-071-0/+3
|
* gl_shader_cache: Use explicit bindingsReinUsesLisp2019-01-301-53/+37
|
* gl_rasterizer: Implement global memory managementReinUsesLisp2019-01-301-1/+5
|
* video_core: Rename glsl_decompiler to gl_shader_decompilerReinUsesLisp2019-01-151-1/+1
|
* video_core: Replace gl_shader_decompilerReinUsesLisp2019-01-151-0/+1
|
* gl_shader_cache: Use dirty flags for shadersReinUsesLisp2019-01-071-0/+4
|
* Fixed uninitialized memory due to missing returns in canaryDavid Marcec2018-12-191-0/+1
| | | | Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used.
* Implemented a shader unique identifier.Fernando Sahmkow2018-12-091-0/+2
|
* shader_cache: Only lock covered instructions.Markus Wick2018-11-201-1/+2
|
* Merge pull request #1669 from ReinUsesLisp/fixup-gsbunnei2018-11-111-6/+7
|\ | | | | gl_shader_decompiler: Guard out of bound geometry shader input reads
| * gl_shader_decompiler: Guard out of bound geometry shader input readsReinUsesLisp2018-11-101-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Geometry shaders follow a pattern that results in out of bound reads. This pattern is: - VSETP to predicate - Use that predicate to conditionally set a register a big number - Use the register to access geometry shaders At the time of writing this commit I don't know what's the intent of this number. Some drivers argue about these out of bound reads. To avoid this issue, input reads are guarded limiting reads to the highest posible vertex input of the current topology (e.g. points to 1 and triangles to 3).
* | rasterizer_cache: Remove reliance on the System singletonLioncash2018-11-081-0/+4
|/ | | | | | Rather than have a transparent dependency, we can make it explicit in the interface. This also gets rid of the need to put the core include in a header.
* rasterizer_cache: Refactor to support in-order flushing.bunnei2018-10-161-6/+4
|
* rasterizer_cache: Reintroduce method for flushing.bunnei2018-10-161-0/+3
|
* gl_shader_decompiler: Implement geometry shadersReinUsesLisp2018-10-071-2/+44
|
* Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi2018-09-151-1/+1
|
* gl_shader_cache: Use an u32 for the binding point cache.Markus Wick2018-09-041-5/+5
| | | | | | | The std::string generation with its malloc and free requirement was a noticeable overhead. Also switch to an ordered_map to avoid the std::hash call. As those maps usually have a size of two elements, the lookup time shall not matter.
* gl_renderer: Cache textures, framebuffers, and shaders based on CPU address.bunnei2018-08-311-4/+3
|
* Report correct shader size.Markus Wick2018-08-311-1/+1
| | | | | Seems like this was an oversee in regards to 1fd979f50a9f4c21fa8cafba7268d959e3076924 It changed GLShader::ProgramCode to a std::vector, so sizeof is wrong.
* renderer_opengl: Implement a new shader cache.bunnei2018-08-281-0/+69