summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/decode/image.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-07-23shader: Remove old shader managementReinUsesLisp1-536/+0
2020-12-30video_core: Rewrite the texture cacheReinUsesLisp1-5/+6
The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage.The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage. This commit aims to address those issues.
2020-12-05video_core: Resolve more variable shadowing scenarios pt.2Lioncash1-5/+5
Migrates the video core code closer to enabling variable shadowing warnings as errors. This primarily sorts out shadowing occurrences within the Vulkan code.
2020-09-17decode/image: Eliminate switch fallthrough in DecodeImage()Lioncash1-0/+1
Fortunately this didn't result in any issues, given the block that code was falling through to would immediately break.
2020-09-16video_core: Enforce -Werror=switchReinUsesLisp1-4/+10
This forces us to fix all -Wswitch warnings in video_core.
2020-07-13video_core: Rearrange pixel format namesReinUsesLisp1-27/+27
Normalizes pixel format names to match Vulkan names. Previous to this commit pixel formats had no convention, leading to confusion and potential bugs.
2020-06-20decode/image: Implement B10G11R11FMorph1-9/+17
- Used by Kirby Star Allies
2020-04-23shader_ir: Turn classes into data structuresReinUsesLisp1-10/+8
2020-04-16decode/image: Fix typo in assert in GetComponentSize()Lioncash1-3/+3
2020-04-16decoder/image: Fix incorrect G24R8 component sizes in GetComponentSize()Lioncash1-2/+2
The components' sizes were mismatched. This corrects that.
2020-04-16CMakeLists: Specify -Wextra on linux buildsLioncash1-3/+8
Allows reporting more cases where logic errors may exist, such as implicit fallthrough cases, etc. We currently ignore unused parameters, since we currently have many cases where this is intentional (virtual interfaces). While we're at it, we can also tidy up any existing code that causes warnings. This also uncovered a few bugs as well.
2020-04-07address nit.Nguyen Dac Nam1-1/+1
2020-04-07Apply suggestions from code reviewNguyen Dac Nam1-9/+9
Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc>
2020-04-06shader_decode: SULD.D using std::pair instead of out parameternamkazy1-17/+13
2020-04-06shader_decode: SULD.D avoid duplicate code block.namkazy1-39/+2
2020-04-06shader_decode: SULD.D fix conversion error.namkazy1-3/+3
2020-04-06shader_decode: SULD.D implement bits64 and reverse shader ir init method to removed shader stage.namkazy1-35/+92
2020-04-05silent warning (conversion error)namkazy1-3/+2
2020-04-05shader_decode: SULD.D -> SINT actually same as UNORM.namkazy1-5/+4
2020-04-05shader_decode: SULD.D fix decode SNORM componentnamkazy1-10/+9
2020-04-05clang-formatnamkazy1-2/+2
2020-04-05shader_decode: get sampler descriptor from registry.namkazy1-77/+93
2020-04-05tweaking.namkazy1-3/+3
2020-04-05cleanup unuse paramsnamkazy1-8/+6
2020-04-05cleanup debug code.namkazy1-14/+3
2020-04-05reimplement get component type, uncomment mistaken codenamkazy1-18/+93
2020-04-05remove disable optimizenamkazy1-2/+0
2020-04-05[wip] reimplement SULD.Dnamkazy1-22/+229
2020-04-05clang-fixNguyen Dac Nam1-1/+1
2020-04-05shader: image - import PredConditionNguyen Dac Nam1-0/+1
2020-04-05shader: SULD.D bits32 implement more complexer method.Nguyen Dac Nam1-4/+28
2020-04-05shader: SULD.D import StoreTypeNguyen Dac Nam1-0/+1
2020-04-05shader: implement SULD.D bits32Nguyen Dac Nam1-11/+27
2019-10-30shader/node: Unpack bindless texture encodingReinUsesLisp1-26/+24
Bindless textures were using u64 to pack the buffer and offset from where they come from. Drop this in favor of separated entries in the struct. Remove the usage of std::set in favor of std::list (it's not std::vector to avoid reference invalidations) for samplers and images.
2019-10-24video_core/shader: Resolve instances of variable shadowingLioncash1-2/+2
Silences a few -Wshadow warnings.
2019-09-21gl_shader_decompiler: Use uint for images and fix SUATOMReinUsesLisp1-37/+29
In the process remove implementation of SUATOM.MIN and SUATOM.MAX as these require a distinction between U32 and S32. These have to be implemented with imageCompSwap loop.
2019-09-21shader/image: Implement SULD and remove irrelevant codeReinUsesLisp1-24/+49
* Implement SULD as float. * Remove conditional declaration of GL_ARB_shader_viewport_layer_array.
2019-09-11shader/image: Implement SUATOM and fix SUSTReinUsesLisp1-21/+71
2019-09-06gl_shader_decompiler: Keep track of written images and mark them as modifiedReinUsesLisp1-21/+19
2019-07-15shader: Allow tracking of indirect buffers without variable offsetReinUsesLisp1-5/+1
While changing this code, simplify tracking code to allow returning the base address node, this way callers don't have to manually rebuild it on each invocation.
2019-06-21shader_ir: Fix image copy rebase issuesFernando Sahmkow1-2/+7
2019-06-21shader: Implement bindless imagesReinUsesLisp1-2/+28
2019-06-21shader: Decode SUST and implement backing image functionalityReinUsesLisp1-0/+89