Lioncash
0f83c8dffa
video_core/engines/engine_upload: Remove unnecessary includes
7 years ago
Lioncash
5db1b54b58
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
48ce5880a0
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
c212fc9b2c
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
d6d809db87
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
c5129a3a58
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
9ef45f00bf
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
716fbaef74
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
d4bcd006b2
video_core/memory_manager: Mark the constructor as explicit
Prevents implicit converting constructions of the memory manager.
7 years ago
Lioncash
fd12788967
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
53afe47cec
video_core/memory_manager: Amend doxygen comments
Corrects references to non-existent parameters and corrects typos.
7 years ago
Lioncash
5235b053b4
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
b6408e9671
video_core/renderer_opengl/gl_shader_cache: Correct member initialization order
Silences a -Wreorder warning.
7 years ago
Lioncash
e43ba3acd4
video_core/shader/decode/texture: Remove unused variable from GetTld4Code()
7 years ago
Lioncash
e3c45b4338
renderer_vulkan/vk_shader_decompiler: Remove unused variable from DeclareInternalFlags()
7 years ago
Lioncash
175fe8aaeb
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
6d28d288a3
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
ba165b1092
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
c56d893e77
video_core/textures/astc: Remove unused variables
Silences a few compilation warnings.
7 years ago
Fernando Sahmkow
3a08c3207b
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
9e15193ef8
shader/decode/texture: Remove unused variable
This isn't used anywhere, so we can get rid of it.
7 years ago
Lioncash
08b270676b
gl_rasterizer: Silence unused variable warning
Makes use of src, so it's not considered unused.
7 years ago
ReinUsesLisp
d4df803b2b
shader_ir/other: Implement IPA.IDX
7 years ago
ReinUsesLisp
5321cdd276
gl_shader_decompiler: Skip physical unused attributes
7 years ago
ReinUsesLisp
28bffb1ffa
shader_ir/memory: Assert on non-32 bits ALD.PHYS
7 years ago
ReinUsesLisp
fe700e1856
shader: Add physical attributes commentaries
7 years ago
ReinUsesLisp
c6f9e651b2
gl_shader_decompiler: Implement GLSL physical attributes
7 years ago
ReinUsesLisp
71aa9d0877
shader_ir/memory: Implement physical input attributes
7 years ago
ReinUsesLisp
b7d412c99b
gl_shader_decompiler: Abstract generic attribute operations
7 years ago
ReinUsesLisp
bd81a03d9d
gl_shader_decompiler: Declare all possible varyings on physical attribute usage
7 years ago
ReinUsesLisp
06b363c9b5
shader: Remove unused AbufNode Ipa mode
7 years ago
ReinUsesLisp
002ecbea19
shader_ir/memory: Emit AL2P IR
7 years ago
ReinUsesLisp
7632a7d6d2
shader_bytecode: Add AL2P decoding
7 years ago
Fernando Sahmkow
e64c41efe8
Refactors and name corrections.
7 years ago
ReinUsesLisp
4aa081b4e7
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
95261639fb
Fix Layered ASTC Textures
By adding the missing layer offset in ASTC compression.
7 years ago
ReinUsesLisp
2156e52014
shader_ir: Move Sampler index entry in operand< to sort declarations
7 years ago
ReinUsesLisp
b77b4b76bb
shader_ir: Add missing entry to Sampler operand< comparison
7 years ago
ReinUsesLisp
0b91087a1e
shader_ir/texture: Fix sampler const buffer key shift
7 years ago
FreddyFunk
1a3ff252a4
Re added new lines at the end of files
7 years ago
unknown
3091b40691
gl_shader_disk_cache: Compress precompiled shader cache file with Zstandard
7 years ago
unknown
9db2c734c9
gl_shader_disk_cache: Use VectorVfsFile for the virtual precompiled shader cache file
7 years ago
unknown
3fe542cf60
gl_shader_disk_cache: Remove per shader compression
7 years ago
Fernando Sahmkow
b3118ee316
Fixes and Corrections to DMA Engine
7 years ago
Fernando Sahmkow
f1e5314f1a
Add Swizzle Parameters to the DMA engine
7 years ago
Fernando Sahmkow
e140e2ebc6
Add Documentation Headers to all the GPU Engines
7 years ago
Fernando Sahmkow
021d28c9b8
Corrections and styling
7 years ago
Fernando Sahmkow
701ce1c9d0
Implement Maxwell3D Data Upload
7 years ago
Fernando Sahmkow
e4ff140b99
Introduce skeleton of the GPU Compute Engine.
7 years ago
Fernando Sahmkow
a91d3fc639
Revamp Kepler Memory to use a subegine to manage uploads
7 years ago