aboutsummaryrefslogtreecommitdiff
path: root/src/video_core
AgeCommit message (Collapse)Author
2019-05-19gl_shader_gen: std::move objects where applicableLioncash
Avoids performing copies into the pair being returned. Instead, we can just move the resources into the pair, avoiding the need to make copies of both the std::string and ShaderEntries struct.
2019-05-19gl_shader_disk_cache: in-class initialize virtual file offset of ↵Lioncash
ShaderDiskCacheOpenGL Given the offset is assigned a fixed value in the constructor, we can just assign it directly and get rid of the need to write the name of the variable again in the constructor initializer list.
2019-05-19gl_shader_disk_cache: Default ShaderDiskCacheOpenGL's destructor in the cpp fileLioncash
Given the disk shader cache contains non-trivial types, we should default it in the cpp file in order to prevent inlining of the complex destruction logic.
2019-05-19gl_shader_disk_cache: Make hash specializations noexceptLioncash
The standard library expects hash specializations that don't throw exceptions. Make this explicit in the type to allow selection of better code paths if possible in implementations.
2019-05-19gl_shader_disk_cache: Remove redundant code string construction in ↵Lioncash
LoadDecompiledEntry() We don't need to load the code into a vector and then construct a string over the data. We can just create a string with the necessary size ahead of time, and read the data directly into it, getting rid of an unnecessary heap allocation.
2019-05-19gl_shader_disk_cache: Make variable non-const in decompiled entry caseLioncash
std::move does nothing when applied to a const variable. Resources can't be moved if the object is immutable. With this change, we don't end up making several unnecessary heap allocations and copies.
2019-05-19gl_shader_disk_cache: Special-case boolean handlingLioncash
Booleans don't have a guaranteed size, but we still want to have them integrate into the disk cache system without needing to actually use a different type. We can do this by supplying non-template overloads for the bool type. Non-template overloads always have precedence during function resolution, so this is safe to provide. This gets rid of the need to smatter ternary conditionals, as well as the need to use u8 types to store the value in.
2019-05-18gl_rasterizer: Limit OpenGL point size to a minimum of 1ReinUsesLisp
2019-05-17maxwell_to_gl: Add TriangleFan primitive topologyReinUsesLisp
2019-05-17gl_rasterizer: Pass the right number of array quad vertices countReinUsesLisp
2019-05-14maxwell_3d: reduce sevirity of different component formats assert.Fernando Sahmkow
This was reduced due to happening on most games and at such constant rate that it affected performance heavily for the end user. In general, we are well aware of the assert and an implementation is already planned.
2019-05-14video_core/engines/engine_upload: Amend constructor initializer list orderLioncash
Silences a -Wreorder warning.
2019-05-14video_core/engines/engine_upload: Default destructor in the cpp fileLioncash
Avoids inlining destruction logic where applicable, and also makes forward declarations not cause unexpected compilation errors depending on where the State class is used.
2019-05-14video_core/engines/engine_upload: Remove unnecessary const on parameters in ↵Lioncash
function declarations These only apply in the definition of the function. They can be omitted from the declaration.
2019-05-14video_core/engines/engine_upload: Remove unnecessary includesLioncash
2019-05-14video_core/engines/maxwell3d: Get rid of three magic values in CallMethod()Lioncash
We can use the named constant instead of using 32 directly.
2019-05-14video_core/engines/maxwell_3d: Simplify for loops into ranged for loops ↵Lioncash
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.
2019-05-14video_core/engines/maxwell_3d: Add is_trivially_copyable_v check for RegsLioncash
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.
2019-05-14yuzu: Remove explicit types from locks where applicableLioncash
With C++17's deduction guides, the type doesn't need to be explicitly specified within locking primitives anymore.
2019-05-14video_core/gpu_thread: Remove redundant copy constructor for ↵Lioncash
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.
2019-05-14Merge pull request #2462 from lioncash/video-mmMat M
video_core/memory_manager: Minor tidying
2019-05-14Merge pull request #2461 from lioncash/unused-varMat M
video_core: Remove a few unused variables and functions
2019-05-13Merge pull request #2413 from FernandoS27/opt-gpuRodrigo Locatti
Rasterizer Cache: refactor flushing & optimize memory usage of surfaces
2019-05-12GPU/MMEInterpreter: Ignore the 'exit' flag when it's executed inside a delay ↵Sebastian Valle
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.
2019-05-09video_core/memory_manager: Mark IsBlockContinuous() as a const member functionLioncash
Corrects the typo in its name and marks the function as a const member function, given it doesn't actually modify memory manager state.
2019-05-09video_core/memory_manager: Mark the constructor as explicitLioncash
Prevents implicit converting constructions of the memory manager.
2019-05-09video_core/memory_manager: Default the destructor within the cpp fileLioncash
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.
2019-05-09video_core/memory_manager: Amend doxygen commentsLioncash
Corrects references to non-existent parameters and corrects typos.
2019-05-09video_core/memory_manager: Remove superfluous const from function declarationsLioncash
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.
2019-05-09video_core/renderer_opengl/gl_shader_cache: Correct member initialization orderLioncash
Silences a -Wreorder warning.
2019-05-09video_core/shader/decode/texture: Remove unused variable from GetTld4Code()Lioncash
2019-05-09renderer_vulkan/vk_shader_decompiler: Remove unused variable from ↵Lioncash
DeclareInternalFlags()
2019-05-09video_core/renderer_opengl/gl_shader_decompiler: Remove unused Composite() ↵Lioncash
function This isn't used at all, so it can be removed.
2019-05-09video_core/renderer_opengl/gl_rasterizer_cache: Remove unused variable in ↵Lioncash
UploadGLMipmapTexture() This variable is unused entirely, so it can be removed.
2019-05-09video_core/gpu_thread: Remove unused local variableLioncash
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.
2019-05-09video_core/textures/astc: Remove unused variablesLioncash
Silences a few compilation warnings.
2019-05-09Merge pull request #2442 from FernandoS27/astc-fixbunnei
Fix Layered ASTC Textures
2019-05-09Merge pull request #2443 from ReinUsesLisp/skip-repeated-variantsbunnei
gl_shader_disk_cache: Skip stored shader variants instead of asserting
2019-05-09Merge pull request #2429 from FernandoS27/computebunnei
Corrections and Implementation on GPU Engines
2019-05-07Correct possible error on Rasterizer CachesFernando Sahmkow
There was a weird bug that could happen if the object died directly and the cache address wasn't stored.
2019-05-04shader/decode/texture: Remove unused variableLioncash
This isn't used anywhere, so we can get rid of it.
2019-05-04gl_rasterizer: Silence unused variable warningLioncash
Makes use of src, so it's not considered unused.
2019-05-02shader_ir/other: Implement IPA.IDXReinUsesLisp
2019-05-02gl_shader_decompiler: Skip physical unused attributesReinUsesLisp
2019-05-02shader_ir/memory: Assert on non-32 bits ALD.PHYSReinUsesLisp
2019-05-02shader: Add physical attributes commentariesReinUsesLisp
2019-05-02gl_shader_decompiler: Implement GLSL physical attributesReinUsesLisp
2019-05-02shader_ir/memory: Implement physical input attributesReinUsesLisp
2019-05-02gl_shader_decompiler: Abstract generic attribute operationsReinUsesLisp
2019-05-02gl_shader_decompiler: Declare all possible varyings on physical attribute usageReinUsesLisp