Lioncash
341083a5e1
video_core: Resolve more variable shadowing scenarios pt.2
Migrates the video core code closer to enabling variable shadowing
warnings as errors.
This primarily sorts out shadowing occurrences within the Vulkan code.
5 years ago
Lioncash
888cca3dfc
decode/image: Eliminate switch fallthrough in DecodeImage()
Fortunately this didn't result in any issues, given the block that code
was falling through to would immediately break.
6 years ago
ReinUsesLisp
ee7e70cfbc
video_core: Enforce -Werror=switch
This forces us to fix all -Wswitch warnings in video_core.
6 years ago
ReinUsesLisp
a068ce4c32
video_core: Rearrange pixel format names
Normalizes pixel format names to match Vulkan names. Previous to this
commit pixel formats had no convention, leading to confusion and
potential bugs.
6 years ago
Morph
1e9be249e1
decode/image: Implement B10G11R11F
- Used by Kirby Star Allies
6 years ago
ReinUsesLisp
c9b4c56d69
shader_ir: Turn classes into data structures
6 years ago
Lioncash
32069ff923
decode/image: Fix typo in assert in GetComponentSize()
6 years ago
Lioncash
b4b58a359b
decoder/image: Fix incorrect G24R8 component sizes in GetComponentSize()
The components' sizes were mismatched. This corrects that.
6 years ago
Lioncash
02e095313a
CMakeLists: Specify -Wextra on linux builds
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.
6 years ago
Nguyen Dac Nam
ca3161ee7e
address nit.
6 years ago
Nguyen Dac Nam
e2349b001e
Apply suggestions from code review
Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc>
6 years ago
namkazy
a18e88be44
shader_decode: SULD.D using std::pair instead of out parameter
6 years ago
namkazy
319f68c624
shader_decode: SULD.D avoid duplicate code block.
6 years ago
namkazy
a6e264cd58
shader_decode: SULD.D fix conversion error.
6 years ago
namkazy
ca16317add
shader_decode: SULD.D implement bits64 and reverse shader ir init method to removed shader stage.
6 years ago
namkazy
d61a333362
silent warning (conversion error)
6 years ago
namkazy
15366b7474
shader_decode: SULD.D -> SINT actually same as UNORM.
6 years ago
namkazy
615eecd94e
shader_decode: SULD.D fix decode SNORM component
6 years ago
namkazy
dbd8cf0304
clang-format
6 years ago
namkazy
c26cea4ad2
shader_decode: get sampler descriptor from registry.
6 years ago
namkazy
8990c9a814
tweaking.
6 years ago
namkazy
2799ef5f43
cleanup unuse params
6 years ago
namkazy
35995111c9
cleanup debug code.
6 years ago
namkazy
2f42b04ae5
reimplement get component type, uncomment mistaken code
6 years ago
namkazy
d4038bf4ae
remove disable optimize
6 years ago
namkazy
e4402955e4
[wip] reimplement SULD.D
6 years ago
Nguyen Dac Nam
731b0dbebc
clang-fix
6 years ago
Nguyen Dac Nam
4c3ddd9c99
shader: image - import PredCondition
6 years ago
Nguyen Dac Nam
9f407fad5e
shader: SULD.D bits32 implement more complexer method.
6 years ago
Nguyen Dac Nam
06fa4a3a41
shader: SULD.D import StoreType
6 years ago
Nguyen Dac Nam
94fecd1b68
shader: implement SULD.D bits32
6 years ago
ReinUsesLisp
1589a146ed
shader/node: Unpack bindless texture encoding
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.
7 years ago
Lioncash
0a71f5d6f4
video_core/shader: Resolve instances of variable shadowing
Silences a few -Wshadow warnings.
7 years ago
ReinUsesLisp
79a7463f4c
gl_shader_decompiler: Use uint for images and fix SUATOM
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.
7 years ago
ReinUsesLisp
331d140bb4
shader/image: Implement SULD and remove irrelevant code
* Implement SULD as float.
* Remove conditional declaration of GL_ARB_shader_viewport_layer_array.
7 years ago
ReinUsesLisp
2e6bebb3d2
shader/image: Implement SUATOM and fix SUST
7 years ago
ReinUsesLisp
e2aad88d51
gl_shader_decompiler: Keep track of written images and mark them as modified
7 years ago
ReinUsesLisp
a54be6ef96
shader: Allow tracking of indirect buffers without variable offset
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.
7 years ago
Fernando Sahmkow
d826617314
shader_ir: Fix image copy rebase issues
7 years ago
ReinUsesLisp
7e4a7929f8
shader: Implement bindless images
7 years ago
ReinUsesLisp
224e4e174d
shader: Decode SUST and implement backing image functionality
7 years ago