Lioncash
0c9db2ddf0
video_core/engines/engine_upload: Default destructor in the cpp file
Avoids inlining destruction logic where applicable, and also makes
forward declarations not cause unexpected compilation errors depending
on where the State class is used.
7 years ago
Lioncash
f06049438a
video_core/engines/engine_upload: Remove unnecessary const on parameters in function declarations
These only apply in the definition of the function. They can be omitted
from the declaration.
7 years ago
Lioncash
d3f74a0c6f
video_core/engines/engine_upload: Remove unnecessary includes
7 years ago
Lioncash
a394c8b35a
video_core/engines/maxwell3d: Get rid of three magic values in CallMethod()
We can use the named constant instead of using 32 directly.
7 years ago
Lioncash
e9064216a2
video_core/engines/maxwell_3d: Simplify for loops into ranged for loops within InitializeRegisterDefaults()
Lessens the amount of code that needs to be read, and gets rid of the
need to introduce an indexing variable. Instead, we just operate on the
objects directly.
7 years ago
Lioncash
b66f9188cb
video_core/engines/maxwell_3d: Add is_trivially_copyable_v check for Regs
std::memset is used to clear the entire register structure, which
requires that the Regs struct be trivially copyable (otherwise undefined
behavior is invoked). This prevents the case where a non-trivial type is
potentially added to the struct.
7 years ago
Lioncash
68cd911bd1
yuzu: Remove explicit types from locks where applicable
With C++17's deduction guides, the type doesn't need to be explicitly
specified within locking primitives anymore.
7 years ago
Lioncash
f7e6e4a882
video_core/gpu_thread: Remove redundant copy constructor for CommandDataContainer
std::move within a copy constructor (on a data member that isn't
mutable) will always result in a copy. Because of that, the behavior of
this copy constructor is identical to the one that would be generated
automatically by the compiler, so we can remove it.
7 years ago
Sebastian Valle
0315253319
GPU/MMEInterpreter: Ignore the 'exit' flag when it's executed inside a delay slot.
It seems instructions marked with the 'exit' flag will not cause an exit when executed within a delay slot.
This was hwtested by fincs.
7 years ago
Lioncash
542ab1b1b9
video_core/memory_manager: Mark IsBlockContinuous() as a const member function
Corrects the typo in its name and marks the function as a const member
function, given it doesn't actually modify memory manager state.
7 years ago
Lioncash
24e9c43cf1
video_core/memory_manager: Mark the constructor as explicit
Prevents implicit converting constructions of the memory manager.
7 years ago
Lioncash
cb867f250a
video_core/memory_manager: Default the destructor within the cpp file
Makes the class less surprising when it comes to forward declaring the
type, and also prevents inlining the destruction code of the class,
given it contains non-trivial types.
7 years ago
Lioncash
cf685d3e43
video_core/memory_manager: Amend doxygen comments
Corrects references to non-existent parameters and corrects typos.
7 years ago
Lioncash
57744806c3
video_core/memory_manager: Remove superfluous const from function declarations
These are able to be omitted from the declaration of functions, since
they don't do anything at the type system level. The definitions of the
functions can retain the use of const though, since they make the
variables immutable in the implementation of the function where they're
used.
7 years ago
Lioncash
7afe083f67
video_core/renderer_opengl/gl_shader_cache: Correct member initialization order
Silences a -Wreorder warning.
7 years ago
Lioncash
18d2c00687
video_core/shader/decode/texture: Remove unused variable from GetTld4Code()
7 years ago
Lioncash
7033f5486e
renderer_vulkan/vk_shader_decompiler: Remove unused variable from DeclareInternalFlags()
7 years ago
Lioncash
0feddedab1
video_core/renderer_opengl/gl_shader_decompiler: Remove unused Composite() function
This isn't used at all, so it can be removed.
7 years ago
Lioncash
af21c30808
video_core/renderer_opengl/gl_rasterizer_cache: Remove unused variable in UploadGLMipmapTexture()
This variable is unused entirely, so it can be removed.
7 years ago
Lioncash
56ccfcdb4b
video_core/gpu_thread: Remove unused local variable
Instead of retrieving the data from the std::variant instance, we can
just check if the variant contains that type of data.
This is essentially the same behavior, only it returns a bool indicating
whether or not the type in the variant is currently active, instead of
actually retrieving the data.
7 years ago
Lioncash
d6db5ebae2
video_core/textures/astc: Remove unused variables
Silences a few compilation warnings.
7 years ago
Fernando Sahmkow
ce5862c505
Correct possible error on Rasterizer Caches
There was a weird bug that could happen if the object died directly and
the cache address wasn't stored.
7 years ago
Lioncash
7af5216680
shader/decode/texture: Remove unused variable
This isn't used anywhere, so we can get rid of it.
7 years ago
Lioncash
bf153808f6
gl_rasterizer: Silence unused variable warning
Makes use of src, so it's not considered unused.
7 years ago
ReinUsesLisp
5bf7324068
shader_ir/other: Implement IPA.IDX
7 years ago
ReinUsesLisp
f1c26af844
gl_shader_decompiler: Skip physical unused attributes
7 years ago
ReinUsesLisp
6ed96fd359
shader_ir/memory: Assert on non-32 bits ALD.PHYS
7 years ago
ReinUsesLisp
d6193e2e36
shader: Add physical attributes commentaries
7 years ago
ReinUsesLisp
7680b96e1a
gl_shader_decompiler: Implement GLSL physical attributes
7 years ago
ReinUsesLisp
f96020b2ae
shader_ir/memory: Implement physical input attributes
7 years ago
ReinUsesLisp
0ace07d1cc
gl_shader_decompiler: Abstract generic attribute operations
7 years ago
ReinUsesLisp
ac78410d39
gl_shader_decompiler: Declare all possible varyings on physical attribute usage
7 years ago
ReinUsesLisp
f6194ce3fe
shader: Remove unused AbufNode Ipa mode
7 years ago
ReinUsesLisp
d786245490
shader_ir/memory: Emit AL2P IR
7 years ago
ReinUsesLisp
9a9902214e
shader_bytecode: Add AL2P decoding
7 years ago
Fernando Sahmkow
08f861a820
Refactors and name corrections.
7 years ago
ReinUsesLisp
5e5eff2081
gl_shader_disk_cache: Skip stored shader variants instead of asserting
Instead of asserting on already stored shader variants, silently skip them.
This shouldn't be happening but when a shader is invalidated and it is
not stored in the shader cache, this assert would hit and save that
shader anyways when the asserts are disabled.
7 years ago
Fernando Sahmkow
aebe67fac7
Fix Layered ASTC Textures
By adding the missing layer offset in ASTC compression.
7 years ago
ReinUsesLisp
5ea871b373
shader_ir: Move Sampler index entry in operand< to sort declarations
7 years ago
ReinUsesLisp
cd9e8ee0eb
shader_ir: Add missing entry to Sampler operand< comparison
7 years ago
ReinUsesLisp
6198b04557
shader_ir/texture: Fix sampler const buffer key shift
7 years ago
FreddyFunk
04c474b840
Re added new lines at the end of files
7 years ago
unknown
4dfccb1f21
gl_shader_disk_cache: Compress precompiled shader cache file with Zstandard
7 years ago
unknown
5417aaca6d
gl_shader_disk_cache: Use VectorVfsFile for the virtual precompiled shader cache file
7 years ago
unknown
f6568c07ac
gl_shader_disk_cache: Remove per shader compression
7 years ago
Fernando Sahmkow
3d37c4161a
Fixes and Corrections to DMA Engine
7 years ago
Fernando Sahmkow
122b06d102
Add Swizzle Parameters to the DMA engine
7 years ago
Fernando Sahmkow
bcf4b19fca
Add Documentation Headers to all the GPU Engines
7 years ago
Fernando Sahmkow
5c4de1e3fb
Corrections and styling
7 years ago
Fernando Sahmkow
4a2763a121
Implement Maxwell3D Data Upload
7 years ago