aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/decode/image.cpp
AgeCommit message (Collapse)Author
2021-07-22shader: Remove old shader managementReinUsesLisp
2020-12-30video_core: Rewrite the texture cacheReinUsesLisp
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.2Lioncash
Migrates the video core code closer to enabling variable shadowing warnings as errors. This primarily sorts out shadowing occurrences within the Vulkan code.
2020-11-24Merge pull request #3681 from lioncash/componentRodrigo Locatti
decoder/image: Fix incorrect G24R8 component sizes in GetComponentSize()
2020-09-17decode/image: Eliminate switch fallthrough in DecodeImage()Lioncash
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=switchReinUsesLisp
This forces us to fix all -Wswitch warnings in video_core.
2020-07-13video_core: Rearrange pixel format namesReinUsesLisp
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 B10G11R11FMorph
- Used by Kirby Star Allies
2020-04-23shader_ir: Turn classes into data structuresReinUsesLisp
2020-04-15decode/image: Fix typo in assert in GetComponentSize()Lioncash
2020-04-15decoder/image: Fix incorrect G24R8 component sizes in GetComponentSize()Lioncash
The components' sizes were mismatched. This corrects that.
2020-04-15CMakeLists: Specify -Wextra on linux buildsLioncash
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 Nam
2020-04-07Apply suggestions from code reviewNguyen Dac Nam
Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc>
2020-04-06shader_decode: SULD.D using std::pair instead of out parameternamkazy
2020-04-06shader_decode: SULD.D avoid duplicate code block.namkazy
2020-04-06shader_decode: SULD.D fix conversion error.namkazy
2020-04-06shader_decode: SULD.D implement bits64 and reverse shader ir init method to ↵namkazy
removed shader stage.
2020-04-05silent warning (conversion error)namkazy
2020-04-05shader_decode: SULD.D -> SINT actually same as UNORM.namkazy
2020-04-05shader_decode: SULD.D fix decode SNORM componentnamkazy
2020-04-05clang-formatnamkazy
2020-04-05shader_decode: get sampler descriptor from registry.namkazy
2020-04-05tweaking.namkazy
2020-04-05cleanup unuse paramsnamkazy
2020-04-05cleanup debug code.namkazy
2020-04-05reimplement get component type, uncomment mistaken codenamkazy
2020-04-05remove disable optimizenamkazy
2020-04-05[wip] reimplement SULD.Dnamkazy
2020-04-05clang-fixNguyen Dac Nam
2020-04-05shader: image - import PredConditionNguyen Dac Nam
2020-04-05shader: SULD.D bits32 implement more complexer method.Nguyen Dac Nam
2020-04-05shader: SULD.D import StoreTypeNguyen Dac Nam
2020-04-05shader: implement SULD.D bits32Nguyen Dac Nam
2019-10-29shader/node: Unpack bindless texture encodingReinUsesLisp
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-23video_core/shader: Resolve instances of variable shadowingLioncash
Silences a few -Wshadow warnings.
2019-09-21gl_shader_decompiler: Use uint for images and fix SUATOMReinUsesLisp
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 codeReinUsesLisp
* Implement SULD as float. * Remove conditional declaration of GL_ARB_shader_viewport_layer_array.
2019-09-10shader/image: Implement SUATOM and fix SUSTReinUsesLisp
2019-09-05gl_shader_decompiler: Keep track of written images and mark them as modifiedReinUsesLisp
2019-07-14shader: Allow tracking of indirect buffers without variable offsetReinUsesLisp
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-20shader_ir: Fix image copy rebase issuesFernando Sahmkow
2019-06-20shader: Implement bindless imagesReinUsesLisp
2019-06-20shader: Decode SUST and implement backing image functionalityReinUsesLisp