summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/decode/image.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* video_core: Rewrite the texture cacheReinUsesLisp2020-12-301-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.
* video_core: Resolve more variable shadowing scenarios pt.2Lioncash2020-12-051-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.
* Merge pull request #3681 from lioncash/componentRodrigo Locatti2020-11-241-2/+2
|\ | | | | decoder/image: Fix incorrect G24R8 component sizes in GetComponentSize()
| * decode/image: Fix typo in assert in GetComponentSize()Lioncash2020-04-161-3/+3
| |
| * decoder/image: Fix incorrect G24R8 component sizes in GetComponentSize()Lioncash2020-04-161-2/+2
| | | | | | | | The components' sizes were mismatched. This corrects that.
* | decode/image: Eliminate switch fallthrough in DecodeImage()Lioncash2020-09-171-0/+1
| | | | | | | | | | Fortunately this didn't result in any issues, given the block that code was falling through to would immediately break.
* | video_core: Enforce -Werror=switchReinUsesLisp2020-09-161-4/+10
| | | | | | | | This forces us to fix all -Wswitch warnings in video_core.
* | video_core: Rearrange pixel format namesReinUsesLisp2020-07-131-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.
* | decode/image: Implement B10G11R11FMorph2020-06-201-9/+17
| | | | | | | | - Used by Kirby Star Allies
* | shader_ir: Turn classes into data structuresReinUsesLisp2020-04-231-10/+8
| |
* | CMakeLists: Specify -Wextra on linux buildsLioncash2020-04-161-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.
* address nit.Nguyen Dac Nam2020-04-071-1/+1
|
* Apply suggestions from code reviewNguyen Dac Nam2020-04-071-9/+9
| | | Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc>
* shader_decode: SULD.D using std::pair instead of out parameternamkazy2020-04-061-17/+13
|
* shader_decode: SULD.D avoid duplicate code block.namkazy2020-04-061-39/+2
|
* shader_decode: SULD.D fix conversion error.namkazy2020-04-061-3/+3
|
* shader_decode: SULD.D implement bits64 and reverse shader ir init method to removed shader stage.namkazy2020-04-061-35/+92
|
* silent warning (conversion error)namkazy2020-04-051-3/+2
|
* shader_decode: SULD.D -> SINT actually same as UNORM.namkazy2020-04-051-5/+4
|
* shader_decode: SULD.D fix decode SNORM componentnamkazy2020-04-051-10/+9
|
* clang-formatnamkazy2020-04-051-2/+2
|
* shader_decode: get sampler descriptor from registry.namkazy2020-04-051-77/+93
|
* tweaking.namkazy2020-04-051-3/+3
|
* cleanup unuse paramsnamkazy2020-04-051-8/+6
|
* cleanup debug code.namkazy2020-04-051-14/+3
|
* reimplement get component type, uncomment mistaken codenamkazy2020-04-051-18/+93
|
* remove disable optimizenamkazy2020-04-051-2/+0
|
* [wip] reimplement SULD.Dnamkazy2020-04-051-22/+229
|
* clang-fixNguyen Dac Nam2020-04-051-1/+1
|
* shader: image - import PredConditionNguyen Dac Nam2020-04-051-0/+1
|
* shader: SULD.D bits32 implement more complexer method.Nguyen Dac Nam2020-04-051-4/+28
|
* shader: SULD.D import StoreTypeNguyen Dac Nam2020-04-051-0/+1
|
* shader: implement SULD.D bits32Nguyen Dac Nam2020-04-051-11/+27
|
* shader/node: Unpack bindless texture encodingReinUsesLisp2019-10-301-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.
* video_core/shader: Resolve instances of variable shadowingLioncash2019-10-241-2/+2
| | | | Silences a few -Wshadow warnings.
* gl_shader_decompiler: Use uint for images and fix SUATOMReinUsesLisp2019-09-211-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.
* shader/image: Implement SULD and remove irrelevant codeReinUsesLisp2019-09-211-24/+49
| | | | | * Implement SULD as float. * Remove conditional declaration of GL_ARB_shader_viewport_layer_array.
* shader/image: Implement SUATOM and fix SUSTReinUsesLisp2019-09-111-21/+71
|
* gl_shader_decompiler: Keep track of written images and mark them as modifiedReinUsesLisp2019-09-061-21/+19
|
* shader: Allow tracking of indirect buffers without variable offsetReinUsesLisp2019-07-151-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.
* shader_ir: Fix image copy rebase issuesFernando Sahmkow2019-06-211-2/+7
|
* shader: Implement bindless imagesReinUsesLisp2019-06-211-2/+28
|
* shader: Decode SUST and implement backing image functionalityReinUsesLisp2019-06-211-0/+89