Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2019-12-18 | gl_shader_decompiler: Add missing DeclareImages | ReinUsesLisp | 1 | -0/+1 | |
2019-12-12 | Shader_IR: Correct TLD4S Depth Compare. | Fernando Sahmkow | 1 | -4/+4 | |
2019-12-12 | Gl_Shader_compiler: Correct Depth Compare for Texture Gather operations. | Fernando Sahmkow | 1 | -8/+21 | |
2019-12-11 | Gl_Rasterizer: Skip Tesselation Control and Eval stages as they are un implemented. | Fernando Sahmkow | 1 | -0/+8 | |
This commit ensures the OGL backend does not execute tesselation shader stages as they are currently unimplemented. | |||||
2019-12-11 | gl_device: Enable compute shaders for Intel Mesa drivers | ReinUsesLisp | 1 | -1/+4 | |
Previously we naively checked for "Intel" in GL_VENDOR, but this includes both Intel's proprietary driver and the mesa driver. Re-enable compute shaders for mesa. | |||||
2019-12-11 | gl_shader_cache: Add missing new-line on emitted GLSL | ReinUsesLisp | 1 | -2/+2 | |
Add missing new-line. This caused shaders using local memory and shared memory to inject a preprocessor GLSL line after an expression (resulting in invalid code). It looked like this: shared uint smem[8];#define LOCAL_MEMORY_SIZE 16 It should look like this (addressed by this commit): shared uint smem[8]; \#define LOCAL_MEMORY_SIZE 16 | |||||
2019-12-11 | Maxwell3D: Implement Depth Mode. | Fernando Sahmkow | 3 | -2/+8 | |
This commit finishes adding depth mode that was reverted before due to other unresolved issues. | |||||
2019-12-10 | shader: Implement MEMBAR.GL | ReinUsesLisp | 1 | -0/+7 | |
Implement using memoryBarrier in GLSL and OpMemoryBarrier on SPIR-V. | |||||
2019-12-10 | shader_ir/other: Implement S2R InvocationId | ReinUsesLisp | 1 | -0/+5 | |
2019-11-29 | gl_framebuffer_cache: Optimize framebuffer key | ReinUsesLisp | 3 | -46/+60 | |
Pack color attachment enumerations into a single u32. To determine the number of buffers, the highest color attachment with a shared pointer that doesn't point to null is used. | |||||
2019-11-29 | gl_rasterizer: Re-enable framebuffer cache for clear buffers | ReinUsesLisp | 3 | -32/+15 | |
2019-11-29 | renderer_opengl: Make ScreenRectVertex's constructor constexpr | ReinUsesLisp | 1 | -12/+7 | |
2019-11-29 | renderer_opengl: Remove C casts | ReinUsesLisp | 1 | -4/+5 | |
2019-11-29 | renderer_opengl: Use explicit binding for presentation shaders | ReinUsesLisp | 2 | -34/+20 | |
2019-11-29 | renderer_opengl: Drop macros for message decorations | ReinUsesLisp | 1 | -21/+26 | |
2019-11-29 | renderer_opengl: Move static definitions to anonymous namespace | ReinUsesLisp | 1 | -62/+66 | |
2019-11-29 | renderer_opengl: Move commentaries to header file | ReinUsesLisp | 2 | -20/+13 | |
2019-11-27 | core/memory: Migrate over GetPointer() | Lioncash | 2 | -2/+3 | |
With all of the interfaces ready for migration, it's trivial to migrate over GetPointer(). | |||||
2019-11-27 | core: Prepare various classes for memory read/write migration | Lioncash | 1 | -2/+3 | |
Amends a few interfaces to be able to handle the migration over to the new Memory class by passing the class by reference as a function parameter where necessary. Notably, within the filesystem services, this eliminates two ReadBlock() calls by using the helper functions of HLERequestContext to do that for us. | |||||
2019-11-26 | gl_shader_decompiler: Fix casts from fp32 to f16 | ReinUsesLisp | 1 | -1/+2 | |
Casts from f32 to f16 zeroes the higher half of the target register. | |||||
2019-11-25 | gl_device: Deduce indexing bug from device instead of heuristic | ReinUsesLisp | 2 | -48/+2 | |
The heuristic to detect AMD's driver was not working properly since it also included Intel. Instead of using heuristics to detect it, compare the GL_VENDOR string. | |||||
2019-11-24 | gl_texture_cache: Apply sRGB on blits | ReinUsesLisp | 1 | -0/+1 | |
glBlitFramebuffer keeps in mind GL_FRAMEBUFFER_SRGB's state. Enable this depending on the target surface pixel format. | |||||
2019-11-23 | gl_device: Reserve base bindings on limited devices | ReinUsesLisp | 1 | -36/+76 | |
SSBOs and other resources are limited per pipeline on Intel and AMD. Heuristically reserve resources per stage having in mind the reported OpenGL limits. | |||||
2019-11-23 | gl_state: Skip null texture binds | ReinUsesLisp | 1 | -1/+5 | |
glBindTextureUnit doesn't support null textures. Skip binding these. | |||||
2019-11-23 | gl_rasterizer: Disable compute shaders on Intel | ReinUsesLisp | 3 | -0/+12 | |
Intel's proprietary driver enters in a corrupt state when compute shaders are executed. For now, disable these. | |||||
2019-11-23 | gl_shader_cache: Hack shared memory size | ReinUsesLisp | 1 | -2/+3 | |
The current shared memory size seems to be smaller than what the game actually uses. This makes Nvidia's driver consistently blow up; in the case of FE3H it made it explode on Qt's SwapBuffers while SDL2 worked just fine. For now keep this hack since it's still progress over the previous hardcoded shared memory size. | |||||
2019-11-23 | gl_shader_decompiler: Normalize image bindings | ReinUsesLisp | 3 | -33/+19 | |
2019-11-23 | gl_shader_decompiler: Normalize cbuf bindings | ReinUsesLisp | 2 | -10/+6 | |
Stage and compute shaders were using a different binding counter. Normalize these. | |||||
2019-11-23 | gl_rasterizer: Add missing cbuf counter reset on compute | ReinUsesLisp | 1 | -0/+2 | |
2019-11-23 | gl_shader_cache: Remove dynamic BaseBinding specialization | ReinUsesLisp | 14 | -191/+199 | |
2019-11-23 | video_core: Unify ProgramType and ShaderStage into ShaderType | ReinUsesLisp | 9 | -231/+190 | |
2019-11-23 | gl_rasterizer: Bind graphics images to draw commands | ReinUsesLisp | 4 | -33/+54 | |
Images were not being bound to draw invocations because these would require a cache invalidation. | |||||
2019-11-23 | gl_shader_cache: Specialize local memory size for compute shaders | ReinUsesLisp | 5 | -20/+26 | |
Local memory size in compute shaders was stubbed with an arbitary size. This commit specializes local memory size from guest GPU parameters. | |||||
2019-11-23 | gl_shader_cache: Specialize shared memory size | ReinUsesLisp | 5 | -29/+25 | |
Shared memory was being declared with an undefined size. Specialize from guest GPU parameters the compute shader's shared memory size. | |||||
2019-11-23 | gl_shader_cache: Specialize shader workgroup | ReinUsesLisp | 5 | -67/+73 | |
Drop the usage of ARB_compute_variable_group_size and specialize compute shaders instead. This permits compute to run on AMD and Intel proprietary drivers. | |||||
2019-11-23 | shader/texture: Deduce texture buffers from locker | ReinUsesLisp | 6 | -105/+47 | |
Instead of specializing shaders to separate texture buffers from 1D textures, use the locker to deduce them while they are being decoded. | |||||
2019-11-20 | gl_shader_gen: Apply default value to gl_Position | ReinUsesLisp | 1 | -0/+1 | |
Nvidia has sane default output values for varyings, but the other vendors don't apply these. To properly emulate this we would have to analyze the shader header. For the time being, apply the same default Nvidia applies so we get the same behaviour on non-Nvidia drivers. | |||||
2019-11-18 | Shader_IR: Address Feedback | Fernando Sahmkow | 1 | -1/+1 | |
2019-11-14 | texture_cache: Drop abstracted ComponentType | ReinUsesLisp | 1 | -103/+82 | |
Abstracted ComponentType was not being used in a meaningful way. This commit drops its usage. There is one place where it was being used to test compatibility between two cached surfaces, but this one is implied in the pixel format. Removing the component type test doesn't change the behaviour. | |||||
2019-11-14 | Shader_IR: Implement TXD instruction. | Fernando Sahmkow | 1 | -1/+43 | |
2019-11-14 | Shader_IR: Implement FLO instruction. | Fernando Sahmkow | 1 | -0/+7 | |
2019-11-08 | video_core: Silence implicit conversion warnings | ReinUsesLisp | 2 | -3/+5 | |
2019-11-08 | gl_shader_cache: Fix locker constructors | ReinUsesLisp | 1 | -2/+4 | |
Properly pass engine when a shader is being constructed from memory. | |||||
2019-11-08 | gl_shader_cache: Enable extensions only when available | ReinUsesLisp | 1 | -6/+14 | |
Silence GLSL compilation warnings. | |||||
2019-11-08 | gl_shader_decompiler: Add safe fallbacks when ARB_shader_ballot is not available | ReinUsesLisp | 3 | -5/+28 | |
2019-11-08 | shader_ir/warp: Implement FSWZADD | ReinUsesLisp | 1 | -0/+18 | |
2019-11-08 | gl_shader_decompiler: Reimplement shuffles with platform agnostic intrinsics | ReinUsesLisp | 2 | -40/+9 | |
2019-11-07 | GLSLDecompiler: Correct Texture Gather Offset. | Fernando Sahmkow | 1 | -1/+1 | |
This commit corrects the argument ordering in textureGatherOffset. | |||||
2019-11-07 | gl_rasterizer: Remove front facing hack | ReinUsesLisp | 1 | -12/+0 | |
2019-11-07 | gl_shader_decompiler: Fix typo "y_negate"->"y_direction" | ReinUsesLisp | 1 | -1/+1 | |
2019-11-07 | gl_shader_manager: Remove unused variable in SetFromRegs | ReinUsesLisp | 1 | -1/+0 | |
2019-11-07 | gl_rasterizer: Emulate viewport flipping with ARB_clip_control | ReinUsesLisp | 7 | -76/+52 | |
Emulates negative y viewports with ARB_clip_control. This allows us to more easily emulated pipelines with tessellation and/or geometry shader stages. It also avoids corrupting games with transform feedbacks and negative viewports (gl_Position.y was being modified). | |||||
2019-11-02 | gl_rasterizer: Re-enable stream buffer memory due to global memory | ReinUsesLisp | 1 | -14/+8 | |
Global memory is still using the stream buffer when it shouldn't. As a temporary fix re-enable the stream buffer on compute. | |||||
2019-11-02 | gl_rasterizer: Upload constant buffers with glNamedBufferSubData | ReinUsesLisp | 5 | -16/+73 | |
Nvidia's OpenGL driver maps gl(Named)BufferSubData with some requirements to a fast. This path has an extra memcpy but updates the buffer without orphaning or waiting for previous calls. It can be seen as a better model for "push constants" that can upload a whole UBO instead of 256 bytes. This path has some requirements established here: http://on-demand.gputechconf.com/gtc/2014/presentations/S4379-opengl-44-scene-rendering-techniques.pdf#page=24 Instead of using the stream buffer, this commits moves constant buffers uploads to calls of glNamedBufferSubData and from my testing it brings a performance improvement. This is disabled when the vendor is not Nvidia since it brings performance regressions. | |||||
2019-10-30 | gl_state: Use std::array::fill instead of std::fill | Rodrigo Locatti | 1 | -1/+1 | |
Co-Authored-By: Mat M. <mathew1800@gmail.com> | |||||
2019-10-30 | gl_state: Move dirty checks to individual apply calls instead of Apply | ReinUsesLisp | 2 | -66/+74 | |
This requires removing constness from some methods, but for consistency it's removed in all methods. | |||||
2019-10-30 | gl_state: Remove ApplyDefaultState | ReinUsesLisp | 3 | -17/+1 | |
OpenGL has defaults values we can trust. Remove these. | |||||
2019-10-30 | gl_state: Change SetDefaultViewports to use default constructor | ReinUsesLisp | 1 | -13/+2 | |
2019-10-30 | gl_state: Minor style changes | ReinUsesLisp | 1 | -3/+5 | |
2019-10-30 | gl_state: Remove unused Citra TextureUnits | ReinUsesLisp | 1 | -23/+0 | |
2019-10-30 | gl_state: Move initializers from constructor to class declaration | ReinUsesLisp | 2 | -170/+75 | |
2019-10-30 | shader/node: Unpack bindless texture encoding | ReinUsesLisp | 3 | -20/+14 | |
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. | |||||
2019-10-28 | maxwell_3d/kepler_compute: Remove unused arguments in GetTexture | ReinUsesLisp | 1 | -6/+6 | |
2019-10-27 | Video_Core: Implement texture format E5B9G9R9_SHAREDEXP. | Fernando Sahmkow | 1 | -0/+1 | |
This commit implements the E5B9G9R9 Texture format into the general system and OpenGL backend. | |||||
2019-10-27 | rasterizer_accelerated: Add intermediary for GPU rasterizers | ReinUsesLisp | 2 | -45/+2 | |
Add an intermediary class that implements common functions across GPU accelerated rasterizers. This avoids code repetition on different backends. | |||||
2019-10-25 | gl_shader_cache: Implement locker variants invalidation | ReinUsesLisp | 2 | -32/+85 | |
2019-10-25 | gl_shader_disk_cache: Store and load fast BRX | ReinUsesLisp | 4 | -29/+192 | |
2019-10-25 | gl_shader_decompiler: Move entries to a separate function | ReinUsesLisp | 8 | -690/+391 | |
2019-10-25 | Shader_IR: Implement Fast BRX and allow multi-branches in the CFG. | Fernando Sahmkow | 1 | -0/+5 | |
2019-10-25 | Shader_Cache: setup connection of ConstBufferLocker | Fernando Sahmkow | 5 | -31/+60 | |
2019-10-25 | VideoCore: Unify const buffer accessing along engines and provide ConstBufferLocker class to shaders. | Fernando Sahmkow | 1 | -3/+4 | |
2019-10-16 | gl_shader_decompiler: Resolve fallthrough within ExprDecompiler's ExprCondCode operator() | Lioncash | 1 | -0/+3 | |
This would previously result in NeverExecute and UnusedIndex being treated as regular predicates. | |||||
2019-10-16 | gl_shader_decompiler: Make ExprDecompiler's GetResult() a const member function | Lioncash | 1 | -1/+1 | |
This is only ever used to read, but not write, the resulting string, so we can enforce this by making it a const member function. | |||||
2019-10-16 | gl_shader_decompiler: Use a std::string_view with GetDeclarationWithSuffix() | Lioncash | 1 | -1/+1 | |
This allows the function to be completely non-allocating for inputs of all sizes (i.e. there's no heap cost for an input to convert to a std::string_view). | |||||
2019-10-16 | gl_shader_decompiler: Fold flow_var constant into GetFlowVariable() | Lioncash | 1 | -3/+1 | |
This is only ever used within this function, so we can narrow it's scope down. | |||||
2019-10-16 | gl_shader_decompiler: Mark ASTDecompiler/ExprDecompiler parameters as const references where applicable | Lioncash | 1 | -21/+21 | |
These member functions don't actually modify the input parameter, so we can make this explicit with the use of const. | |||||
2019-10-16 | gl_shader_decompiler: Pass by reference to GenerateTextureArgument() | Lioncash | 1 | -2/+2 | |
Avoids an unnecessary atomic reference count increment and decrement. | |||||
2019-10-16 | gl_shader_decompiler: Use std::holds_alternative within GenerateTexture() | Lioncash | 1 | -1/+1 | |
This only ever queries if the type exists within the variant, but doesn't actually do anything with the return value. We can just use std::holds_alternative for this use case. | |||||
2019-10-16 | gl_shader_decompiler: Avoid unnecessary copies of MetaImage | Lioncash | 1 | -4/+4 | |
MetaImage contains a std::vector, so copying here could result in unnecessary reallocations. Given the operation lives throughout the entire scope, this is safe to do. | |||||
2019-10-09 | Surfaces: Implement R4G4B4A4U format. | Fernando Sahmkow | 1 | -1/+2 | |
2019-10-09 | Surfaces: Implement ASTC 6x6 10x10 12x12 8x6 6x5 | Fernando Sahmkow | 1 | -0/+10 | |
2019-10-06 | gl_shader_disk_cache: Properly ignore existing cache | ReinUsesLisp | 2 | -16/+17 | |
Previously old entries where appended to the file even if the shader cache was ignored at boot. Address that issue. | |||||
2019-10-05 | GL_Renderer: Remove lefting snippet. | Fernando Sahmkow | 1 | -2/+0 | |
2019-10-05 | Gl_Rasterizer: Protect CPU Memory mapping from multiple threads. | Fernando Sahmkow | 2 | -0/+4 | |
2019-10-05 | Nvdrv: Do framelimiting only in the CPU Thread | Fernando Sahmkow | 1 | -3/+0 | |
2019-10-05 | Shader_ir: Address feedback | Fernando Sahmkow | 2 | -15/+10 | |
2019-10-05 | vk_shader_decompiler: Clean code and be const correct. | Fernando Sahmkow | 1 | -1/+1 | |
2019-10-05 | gl_shader_decompiler: Refactor and address feedback. | Fernando Sahmkow | 1 | -17/+18 | |
2019-10-05 | Shader_Ir: Refactor Decompilation process and allow multiple decompilation modes. | Fernando Sahmkow | 2 | -8/+25 | |
2019-10-05 | gl_shader_decompiler: Implement AST decompiling | Fernando Sahmkow | 1 | -29/+242 | |
2019-10-01 | gl_rasterizer: Fix polygon offset units | ReinUsesLisp | 1 | -1/+3 | |
For some reason hardware divides polygon offset units by two. This is visible since drivers multiply the application requested polygon offset by two. | |||||
2019-09-24 | gl_shader_decompiler: Add tailing return for HUnpack2 | ReinUsesLisp | 1 | -0/+2 | |
2019-09-24 | gl_shader_decompiler: Fix clang build issues | ReinUsesLisp | 1 | -26/+23 | |
2019-09-22 | Maxwell3D: Corrections and refactors to MME instance refactor | Fernando Sahmkow | 1 | -10/+2 | |
2019-09-22 | Fix clang-format | FearlessTobi | 1 | -1/+1 | |
2019-09-22 | video_core: Implement RGBX16F PixelFormat | FearlessTobi | 1 | -0/+1 | |
2019-09-21 | gl_shader_decompiler: Use uint for images and fix SUATOM | ReinUsesLisp | 2 | -105/+39 | |
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. | |||||
2019-09-21 | shader/image: Implement SULD and remove irrelevant code | ReinUsesLisp | 6 | -21/+50 | |
* Implement SULD as float. * Remove conditional declaration of GL_ARB_shader_viewport_layer_array. | |||||
2019-09-20 | Rasterizer: Correct introduced bug where a conditional render wouldn't stop a draw call from executing | Fernando Sahmkow | 1 | -10/+16 | |
2019-09-19 | Rasterizer: Refactor and simplify DrawBatch Interface. | Fernando Sahmkow | 2 | -23/+12 | |
2019-09-19 | Rasterizer: Address Feedback and conscerns. | Fernando Sahmkow | 1 | -11/+11 | |
2019-09-19 | Rasterizer: Refactor draw calls, remove deadcode and clean up. | Fernando Sahmkow | 2 | -105/+67 | |
2019-09-19 | VideoCore: Corrections to the MME Inliner and removal of hacky instance management. | Fernando Sahmkow | 2 | -21/+27 | |
2019-09-19 | Video Core: initial Implementation of InstanceDraw Packaging | Fernando Sahmkow | 3 | -9/+88 | |
2019-09-17 | shader_ir/warp: Implement SHFL | ReinUsesLisp | 2 | -9/+57 | |
2019-09-17 | maxwell_to_gl: Fix mipmap filtering | ReinUsesLisp | 1 | -2/+2 | |
OpenGL texture filters follow GL_<texture_filter>_MIPMAP_<mipmap_filter> but we were using them in the opposite way. | |||||
2019-09-17 | gl_rasterizer: Remove unused code paths from ConfigureFramebuffers | ReinUsesLisp | 4 | -121/+33 | |
2019-09-11 | renderer_opengl: Fix rebase mistake | ReinUsesLisp | 1 | -1/+1 | |
2019-09-11 | shader/image: Implement SUATOM and fix SUST | ReinUsesLisp | 2 | -32/+133 | |
2019-09-11 | gl_rasterizer: Correct sRGB Fix regression | Fernando Sahmkow | 1 | -0/+12 | |
2019-09-11 | renderer_opengl: Fix sRGB blits | ReinUsesLisp | 5 | -43/+7 | |
Removes the sRGB hack of tracking if a frame used an sRGB rendertarget to apply at least once to blit the final texture as sRGB. Instead of doing this apply sRGB if the presented image has sRGB. Also enable sRGB by default on Maxwell3D registers as some games seem to assume this. | |||||
2019-09-06 | gl_shader_decompiler: Avoid writing output attribute when unimplemented | ReinUsesLisp | 1 | -10/+14 | |
2019-09-06 | gl_shader_decompiler: Keep track of written images and mark them as modified | ReinUsesLisp | 4 | -20/+38 | |
2019-09-06 | gl_rasterizer: Apply textures and images state | ReinUsesLisp | 1 | -0/+2 | |
2019-09-06 | gl_rasterizer: Add samplers to compute dispatches | ReinUsesLisp | 2 | -3/+36 | |
2019-09-06 | gl_rasterizer: Minor code changes | ReinUsesLisp | 2 | -20/+31 | |
2019-09-06 | gl_state: Split textures and samplers into two arrays | ReinUsesLisp | 4 | -91/+39 | |
2019-09-06 | gl_rasterizer: Implement image bindings | ReinUsesLisp | 1 | -2/+7 | |
2019-09-06 | gl_state: Add support for glBindImageTextures | ReinUsesLisp | 2 | -0/+24 | |
2019-09-06 | texture_cache: Pass TIC to texture cache | ReinUsesLisp | 1 | -1/+1 | |
2019-09-06 | kepler_compute: Implement texture queries | ReinUsesLisp | 2 | -1/+23 | |
2019-09-06 | gl_rasterizer: Split SetupTextures | ReinUsesLisp | 2 | -22/+38 | |
2019-09-05 | gl_shader_decompiler: Implement shared memory | ReinUsesLisp | 1 | -0/+23 | |
2019-09-04 | gl_shader_decompiler: Fixup slow path | ReinUsesLisp | 1 | -1/+1 | |
2019-09-04 | gl_rasterizer: Fix stencil testing | ReinUsesLisp | 1 | -11/+11 | |
* Fix stencil dirty flags tracking when stencil is disabled * Attach stencil on clears (previously it only attached depth) * Attach stencil on drawing regardless of stencil testing being enabled | |||||
2019-09-04 | gl_shader_cache: Remove special casing for geometry shaders | ReinUsesLisp | 2 | -80/+9 | |
Now that ProgramVariants holds the primitive topology we no longer need to keep track of individual geometry shaders topologies. | |||||
2019-09-04 | gl_device: Disable precise in fragment shaders on bugged drivers | ReinUsesLisp | 3 | -15/+43 | |
2019-09-04 | gl_shader_decompiler: Fixup AMD's slow path type | ReinUsesLisp | 1 | -1/+1 | |
2019-09-04 | gl_shader_decompiler: Rework GLSL decompiler type system | ReinUsesLisp | 1 | -416/+505 | |
GLSL decompiler type system was broken. We converted all return values to float except for some cases where returning we couldn't and implicitly broke the rule of returning floats (e.g. for bools or bool pairs). Instead of doing this introduce class Expression that knows what type a return value has and when a consumer wants to use the string it asks for it with a required type, emitting a runtime error if types are incompatible. This has the disadvantage that there's more C++ code, but we can emit better GLSL code that's easier to read. | |||||
2019-08-30 | video_core: Silent miscellaneous warnings (#2820) | Rodrigo Locatti | 4 | -5/+2 | |
* texture_cache/surface_params: Remove unused local variable * rasterizer_interface: Add missing documentation commentary * maxwell_dma: Remove unused rasterizer reference * video_core/gpu: Sort member declaration order to silent -Wreorder warning * fermi_2d: Remove unused MemoryManager reference * video_core: Silent unused variable warnings * buffer_cache: Silent -Wreorder warnings * kepler_memory: Remove unused MemoryManager reference * gl_texture_cache: Add missing override * buffer_cache: Add missing include * shader/decode: Remove unused variables | |||||
2019-08-30 | gl_buffer_cache: Add missing include | ReinUsesLisp | 1 | -0/+1 | |
RasterizerInterface was considered an incomplete object by clang. | |||||
2019-08-21 | shader_ir: Implement VOTE | ReinUsesLisp | 4 | -1/+58 | |
Implement VOTE using Nvidia's intrinsics. Documentation about these can be found here https://developer.nvidia.com/reading-between-threads-shader-intrinsics Instead of using portable ARB instructions I opted to use Nvidia intrinsics because these are the closest we have to how Tegra X1 hardware renders. To stub VOTE on non-Nvidia drivers (including nouveau) this commit simulates a GPU with a warp size of one, returning what is meaningful for the instruction being emulated: * anyThreadNV(value) -> value * allThreadsNV(value) -> value * allThreadsEqualNV(value) -> true ballotARB, also known as "uint64_t(activeThreadsNV())", emits VOTE.ANY Rd, PT, PT; on nouveau's compiler. This doesn't match exactly to Nvidia's code VOTE.ALL Rd, PT, PT; Which is emulated with activeThreadsNV() by this commit. In theory this shouldn't really matter since .ANY, .ALL and .EQ affect the predicates (set to PT on those cases) and not the registers. | |||||
2019-08-21 | Buffer Cache: Adress Feedback. | Fernando Sahmkow | 1 | -3/+3 | |
2019-08-21 | Buffer_Cache: Implement flushing. | Fernando Sahmkow | 1 | -0/+4 | |
2019-08-21 | Video_Core: Implement a new Buffer Cache | Fernando Sahmkow | 3 | -27/+55 | |
2019-08-21 | renderer_opengl: Implement RGB565 framebuffer format | ReinUsesLisp | 1 | -1/+5 | |
2019-08-21 | renderer_opengl: Use block linear swizzling for CPU framebuffers | ReinUsesLisp | 1 | -33/+31 | |
2019-08-21 | renderer_opengl: Use VideoCore pixel format | ReinUsesLisp | 1 | -6/+11 | |
2019-08-21 | gpu: Change optional<reference_wrapper<T>> to T* for FramebufferConfig | ReinUsesLisp | 2 | -9/+6 | |
2019-07-26 | GPU: Flush commands on every dma pusher step. | Fernando Sahmkow | 2 | -0/+5 | |
This commit ensures that the host gpu is constantly fed with commands to work with, while the guest gpu keeps producing the rest of the commands. This reduces syncing time between host and guest gpu. | |||||
2019-07-20 | Shader_Ir: Implement F16 Variants of F2F, F2I, I2F. | Fernando Sahmkow | 1 | -0/+18 | |
This commit takes care of implementing the F16 Variants of the conversion instructions and makes sure conversions are done. | |||||
2019-07-20 | Maxwell3D: Reorganize and address feedback | Fernando Sahmkow | 1 | -18/+27 | |
2019-07-20 | shader/half_set_predicate: Fix HSETP2 implementation | ReinUsesLisp | 1 | -12/+4 | |
2019-07-18 | Gl_Texture_Cache: Remove assert on component type in GetFormatTuple | Fernando Sahmkow | 1 | -1/+0 | |
Textures can have different components types in different orders. This assert was completely inprecise and the effectiveness of such is better handled by case and within the texture cache. | |||||
2019-07-18 | gl_shader_decompiler: Rename bufferImage to imageBuffer | ReinUsesLisp | 1 | -1/+1 | |
The online OpenGL documentation is wrong. The type definition is imageBuffer. | |||||
2019-07-18 | gl_shader_cache: Fix newline on buffer preprocessor definitions | ReinUsesLisp | 1 | -2/+6 | |
2019-07-18 | gl_texture_cache: Do not set texture parameters to buffers | ReinUsesLisp | 1 | -0/+3 | |
2019-07-18 | gl_texture_cache: Add missing break in CreateTexture | ReinUsesLisp | 1 | -0/+1 | |
2019-07-17 | GL_State: Feedback and fixes | Fernando Sahmkow | 3 | -13/+20 | |
2019-07-17 | Maxwell3D: Address Feedback | Fernando Sahmkow | 3 | -4/+3 | |
2019-07-17 | GL_Rasterizer: Corrections to Clearing. | Fernando Sahmkow | 3 | -11/+27 | |
2019-07-17 | GL_Rasterizer: Rework RenderTarget/DepthBuffer clearing | Fernando Sahmkow | 2 | -6/+63 | |
2019-07-17 | Maxwell3D: Implement State Dirty Flags. | Fernando Sahmkow | 4 | -38/+113 | |
2019-07-17 | Maxwell3D: Rework the dirty system to be more consistant and scaleable | Fernando Sahmkow | 3 | -13/+43 | |
2019-07-17 | maxwell3d: Implement Conditional Rendering | Fernando Sahmkow | 1 | -1/+12 | |
Conditional Rendering takes care of conditionaly clearing or drawing depending on a set of queries. This PR implements the query checks to stablish if things can be rendered or not. | |||||
2019-07-16 | gl_shader_cache: Fix clang-format issues | ReinUsesLisp | 2 | -4/+2 | |
2019-07-15 | gl_shader_decompiler: Stub local memory size | ReinUsesLisp | 1 | -8/+14 | |
2019-07-15 | gl_shader_cache: Address review commentaries | ReinUsesLisp | 4 | -13/+12 | |
2019-07-15 | gl_shader_cache: Address CI issues | ReinUsesLisp | 2 | -3/+3 | |
2019-07-15 | gl_rasterizer: Implement compute shaders | ReinUsesLisp | 11 | -133/+329 | |
2019-07-14 | GPU: Add a microprofile for macro interpreter | Fernando Sahmkow | 1 | -1/+2 | |
2019-07-14 | GL_State: Add a microprofile timer to OpenGL state. | Fernando Sahmkow | 1 | -0/+4 | |
2019-07-14 | Gl_Texture_Cache: Measure Buffer Copy Times | Fernando Sahmkow | 1 | -0/+2 | |
2019-07-11 | gl_shader_decompiler: Fix gl_PointSize redeclaration | ReinUsesLisp | 1 | -1/+1 | |
2019-07-11 | gl_shader_decompiler: Fix conditional usage of GL_ARB_shader_viewport_layer_array | ReinUsesLisp | 1 | -2/+3 | |
2019-07-09 | shader_ir: Unify blocks in decompiled shaders. | Fernando Sahmkow | 1 | -4/+6 | |
2019-07-09 | shader_ir: propagate shader size to the IR | Fernando Sahmkow | 3 | -11/+21 | |
2019-07-09 | shader_ir: Implement BRX & BRA.CC | Fernando Sahmkow | 1 | -0/+9 | |
2019-07-09 | gl_rasterizer: Amend documentation comment for ConfigureFramebuffers() | Lioncash | 1 | -7/+9 | |
must_reconfigure isn't a parameter for this function any more, so it can be replaced with current_state. While we're at it, we can make the parameters of the declaration match the same name as the ones in the definition. | |||||
2019-07-08 | gl_shader_decompiler: Implement gl_ViewportIndex and gl_Layer in vertex shaders | ReinUsesLisp | 6 | -31/+98 | |
This commit implements gl_ViewportIndex and gl_Layer in vertex and geometry shaders. In the case it's used in a vertex shader, it requires ARB_shader_viewport_layer_array. This extension is available on AMD and Nvidia devices (mesa and proprietary drivers), but not available on Intel on any platform. At the moment of writing this description I don't know if this is a hardware limitation or a driver limitation. In the case that ARB_shader_viewport_layer_array is not available, writes to these registers on a vertex shader are ignored, with the appropriate logging. | |||||
2019-07-07 | video_core: Add missing override specifiers | Lioncash | 1 | -2/+2 | |
2019-07-06 | gl_rasterizer: Fix nullptr dereference on disabled buffers | ReinUsesLisp | 2 | -3/+3 | |
2019-07-06 | gl_rasterizer: Minor style changes | ReinUsesLisp | 3 | -32/+21 | |
2019-07-06 | gl_rasterizer: Fix vertex and index data invalidations | ReinUsesLisp | 4 | -8/+67 | |
2019-07-06 | gl_buffer_cache: Implement with generic buffer cache | ReinUsesLisp | 7 | -291/+89 | |
2019-07-06 | gl_buffer_cache: Remove global system getters | ReinUsesLisp | 3 | -9/+14 | |
2019-07-06 | gl_device: Query SSBO alignment | ReinUsesLisp | 2 | -0/+6 | |
2019-07-06 | gl_buffer_cache: Implement flushing | ReinUsesLisp | 2 | -2/+11 | |
2019-07-06 | gl_rasterizer: Drop gl_global_cache in favor of gl_buffer_cache | ReinUsesLisp | 6 | -204/+35 | |
2019-07-06 | gl_buffer_cache: Rework to support internalized buffers | ReinUsesLisp | 3 | -65/+174 | |
2019-07-06 | gl_buffer_cache: Store in CachedBufferEntry the used buffer handle | ReinUsesLisp | 2 | -23/+30 | |
2019-07-06 | gl_buffer_cache: Return used buffer from Upload function | ReinUsesLisp | 4 | -36/+35 | |
2019-07-06 | gl_rasterizer: Add some commentaries | ReinUsesLisp | 1 | -0/+5 | |
2019-07-06 | gl_rasterizer: Make DrawParameters rasterizer instance const | ReinUsesLisp | 1 | -1/+1 | |
2019-07-06 | gl_rasterizer: Move index buffer uploading to its own method | ReinUsesLisp | 2 | -7/+18 | |
2019-07-05 | texture_cache: Address Feedback | Fernando Sahmkow | 3 | -10/+11 | |
2019-07-05 | texture_cache: Correct Texture Buffer Uploading | Fernando Sahmkow | 2 | -2/+16 | |
2019-07-04 | gl_shader_cache: Make CachedShader constructor private | Zach Hilman | 2 | -5/+5 | |
Fixes missing review comments introduced. | |||||
2019-07-01 | rasterizer_cache: Protect inherited caches from submission level | Fernando Sahmkow | 2 | -0/+3 | |
2019-06-29 | texture_cache: Address feedback | ReinUsesLisp | 2 | -19/+1 | |
2019-06-26 | gl_texture_cache: Correct asserts | Fernando Sahmkow | 2 | -2/+2 | |
2019-06-25 | gl_texture_cache: Corrections and fixes | Fernando Sahmkow | 2 | -13/+9 | |
2019-06-25 | gl_resource_manager: Correct MakeStreamCopy | Fernando Sahmkow | 2 | -3/+2 | |
2019-06-25 | texture_cache: Query MemoryManager from the system | Fernando Sahmkow | 2 | -6/+0 | |
2019-06-24 | gl_texture_cache: Explicitly add indirect include | ReinUsesLisp | 1 | -0/+1 | |
2019-06-24 | renderer_opengl/utils: Remove unused includes and unused forward declaration | ReinUsesLisp | 1 | -4/+0 | |
2019-06-24 | gl_texture_cache: Address some feedback | ReinUsesLisp | 1 | -2/+4 | |
2019-06-24 | gl_shader_disk_cache: Address feedback | ReinUsesLisp | 2 | -4/+8 | |
2019-06-24 | gl_shader_decompiler: Address feedback | ReinUsesLisp | 1 | -11/+12 | |
2019-06-21 | texture_cache: Style and Corrections | Fernando Sahmkow | 1 | -1/+1 | |
2019-06-21 | shader_cache: Correct versioning and size calculation. | Fernando Sahmkow | 2 | -2/+7 | |
2019-06-21 | texture_cache: Implement texception detection and texture barriers. | Fernando Sahmkow | 1 | -2/+8 | |
2019-06-21 | gl_texture_cache: Use Stream Buffers instead of Persistant for Buffer Copies. | Fernando Sahmkow | 3 | -5/+4 | |
2019-06-21 | gl_texture_cache: Correct Image Blit | Fernando Sahmkow | 1 | -1/+1 | |
2019-06-21 | texture_cache: Use siblings textures on Rebuild and fix possible error on blitting | Fernando Sahmkow | 1 | -1/+1 | |
2019-06-21 | texture_cache: Remove old rasterizer cache | Fernando Sahmkow | 2 | -1956/+0 | |
2019-06-21 | texture_cache: eliminate accelerated depth->color/color->depth copies due to driver instability. | Fernando Sahmkow | 3 | -14/+5 | |
2019-06-21 | texture_cache: Optimize GetSurface and use references on functions that don't change a surface. | Fernando Sahmkow | 2 | -6/+6 | |
2019-06-21 | texture_cache: Implement Buffer Copy and detect Turing GPUs Image Copies | Fernando Sahmkow | 7 | -3/+117 | |
2019-06-21 | texture_cache uncompress-compress is untopological. | Fernando Sahmkow | 1 | -5/+5 | |
This makes conflicts between non compress and compress textures to be auto recycled. It also limits the amount of mipmaps a texture can have if it goes above it's limit. | |||||
2019-06-21 | Fix rebase errors | Fernando Sahmkow | 2 | -3/+9 | |
2019-06-21 | texture_cache: Fermi2D reform and implement View Mirage | Fernando Sahmkow | 5 | -41/+35 | |
This also does some fixes on compressed textures reinterpret and on the Fermi2D engine in general. | |||||
2019-06-21 | gl_shader_decompiler: Implement image binding settings | ReinUsesLisp | 5 | -24/+52 | |
2019-06-21 | shader: Decode SUST and implement backing image functionality | ReinUsesLisp | 1 | -0/+70 | |
2019-06-21 | gl_rasterizer: Track texture buffer usage | ReinUsesLisp | 6 | -74/+119 | |
2019-06-21 | video_core: Make ARB_buffer_storage a required extension | ReinUsesLisp | 3 | -8/+5 | |
2019-06-21 | gl_rasterizer_cache: Use texture buffers to emulate texture buffers | ReinUsesLisp | 3 | -10/+31 | |
2019-06-21 | maxwell_3d: Partially implement texture buffers as 1D textures | ReinUsesLisp | 1 | -1/+1 | |
2019-06-21 | gl_shader_decompiler: Allow 1D textures to be texture buffers | ReinUsesLisp | 1 | -4/+38 | |
2019-06-21 | texture_cache: Implement Guard mechanism | Fernando Sahmkow | 1 | -0/+4 | |
2019-06-21 | texture_cache: General Fixes | Fernando Sahmkow | 1 | -3/+8 | |
Fixed ASTC mipmaps loading Fixed alignment on openGL upload/download Fixed Block Height Calculation Removed unalign_height | |||||
2019-06-21 | gl_framebuffer_cache: Use a hashed struct to cache framebuffers | ReinUsesLisp | 4 | -61/+145 | |
2019-06-21 | texture_cache return invalid buffer on deactivated color_mask | Fernando Sahmkow | 1 | -2/+4 | |
2019-06-21 | gl_texture_cache: Make main views be proxy textures instead of a full view. | Fernando Sahmkow | 2 | -11/+25 | |
2019-06-21 | Remove Framebuffer reconfiguration and restrict rendertarget protection | Fernando Sahmkow | 2 | -13/+8 | |
2019-06-21 | Reduce amount of size calculations. | Fernando Sahmkow | 2 | -2/+1 | |
2019-06-21 | texture_cache: Correct premature texceptions | Fernando Sahmkow | 2 | -7/+15 | |
Due to our current infrastructure, it is possible for a mipmap to be set on as a render target before a texception of that mipmap's superset be set afterwards. This is problematic as we rely on texture views to set up texceptions and protecting render targets targets for 3D texture rendering. One simple solution is to configure framebuffers after texture setup but this brings other problems. This solution, forces a reconfiguration of the framebuffers after such event happens. | |||||
2019-06-21 | texture_cache: Implement guest flushing | Fernando Sahmkow | 1 | -2/+4 | |
2019-06-21 | Texture Cache: Implement Blitting and Fermi Copies | Fernando Sahmkow | 6 | -96/+78 | |
2019-06-21 | surface_view: Add constructor for ViewParams | ReinUsesLisp | 1 | -11/+4 | |
2019-06-21 | Correct Mipmaps View method in Texture Cache | Fernando Sahmkow | 2 | -29/+27 | |
2019-06-21 | Change texture_cache chaching from GPUAddr to CacheAddr | Fernando Sahmkow | 2 | -18/+0 | |
This also reverses the changes to make invalidation and flushing through the GPU address. | |||||
2019-06-21 | Implement Texture Cache V2 | Fernando Sahmkow | 5 | -293/+202 | |
2019-06-21 | Add OGLTextureView | Fernando Sahmkow | 2 | -0/+43 | |
2019-06-21 | Deglobalize Memory Manager on texture cahe and Implement Invalidation and Flushing using GPUVAddr | Fernando Sahmkow | 1 | -0/+8 | |
2019-06-21 | texture_cache: Remove execution context copies from the texture cache | ReinUsesLisp | 3 | -17/+18 | |
This is done to simplify the OpenGL implementation, it is needed for Vulkan. | |||||
2019-06-21 | gl_texture_cache: Implement fermi copies | ReinUsesLisp | 5 | -2/+105 | |
2019-06-21 | texture_cache: Split texture cache into different files | ReinUsesLisp | 2 | -2/+2 | |
2019-06-21 | texture_cache: Move staging buffer into a generic implementation | ReinUsesLisp | 2 | -113/+8 | |
2019-06-21 | texture_cache: Flush 3D textures in the order they are drawn | ReinUsesLisp | 3 | -5/+7 | |
2019-06-21 | gl_texture_cache: Minor changes | ReinUsesLisp | 3 | -34/+44 | |
2019-06-21 | gl_texture_cache: Add copy from multiple overlaps into a single surface | ReinUsesLisp | 2 | -5/+83 | |
2019-06-21 | gl_texture_cache: Attach surface textures instead of views | ReinUsesLisp | 3 | -20/+32 | |
2019-06-21 | gl_texture_cache: Add fast copy path | ReinUsesLisp | 2 | -3/+57 | |
2019-06-21 | gl_texture_cache: Initial implementation | ReinUsesLisp | 5 | -35/+681 | |
2019-06-18 | core: Remove unused CiTrace source files | Lioncash | 1 | -1/+0 | |
These source files have been unused for the entire lifecycle of the project. They're a hold-over from Citra and only add to the build time of the project, so they can be removed. There's also likely no way this would ever work in yuzu in its current form without revamping quite a bit of it, given how different the GPU on the Switch is compared to the 3DS. | |||||
2019-06-12 | gl_device: Fix TestVariableAoffi test | ReinUsesLisp | 1 | -1/+2 | |
This test is intended to be invalid GLSL, but it was being invalid in two points instead of one. The intention is to use a non-immediate parameter in a textureOffset like function. The problem is that this shader was being compiled as a separable shader object and the text was writting to gl_Position without a redeclaration, being invalid GLSL. Address that issue by using a user-defined output attribute. | |||||
2019-06-08 | gl_shader_cache: Use static constructors for CachedShader initialization | ReinUsesLisp | 2 | -52/+53 | |
2019-06-08 | gl_rasterizer: Remove unused parameters in descriptor uploads | ReinUsesLisp | 2 | -8/+6 | |
2019-06-08 | video_core/engines: Move ConstBufferInfo out of Maxwell3D | ReinUsesLisp | 2 | -39/+44 | |
2019-06-07 | shader: Split SSY and PBK stack | ReinUsesLisp | 1 | -4/+27 | |
Hardware testing revealed that SSY and PBK push to a different stack, allowing code like this: SSY label1; PBK label2; SYNC; label1: PBK; label2: EXIT; | |||||
2019-06-06 | shader: Use shared_ptr to store nodes and move initialization to file | ReinUsesLisp | 1 | -31/+31 | |
Instead of having a vector of unique_ptr stored in a vector and returning star pointers to this, use shared_ptr. While changing initialization code, move it to a separate file when possible. This is a first step to allow code analysis and node generation beyond the ShaderIR class. | |||||
2019-06-03 | gl_shader_decompiler: Remove guest "position" varying | ReinUsesLisp | 2 | -36/+21 | |
"position" was being written but not read anywhere besides geometry shaders, where it had the same value as gl_Position. This commit replaces "position" with gl_Position, reducing the complexity of our code and the emitted GLSL code. | |||||
2019-05-30 | gl_shader_cache: Store a system class and drop global accessors | ReinUsesLisp | 2 | -7/+9 | |
2019-05-30 | gl_shader_cache: Add commentaries explaining the intention in shaders creation | ReinUsesLisp | 1 | -0/+2 | |
2019-05-30 | gl_shader_cache: Flip if condition in GetStageProgram to reduce indentation | ReinUsesLisp | 1 | -25/+26 | |
2019-05-30 | gl_buffer_cache: Remove unused ReserveMemory method | ReinUsesLisp | 2 | -13/+0 | |
2019-05-30 | maxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap mode | ReinUsesLisp | 1 | -5/+2 | |
2019-05-30 | gl_rasterizer: Move alpha testing to the OpenGL pipeline | ReinUsesLisp | 8 | -71/+33 | |
Removes the alpha testing code from each fragment shader invocation. | |||||
2019-05-30 | gl_rasterizer: Use GL_QUADS to emulate quads rendering | ReinUsesLisp | 5 | -130/+5 | |
2019-05-27 | gl_device: Add commentary to AOFFI unit test source code | ReinUsesLisp | 1 | -0/+1 | |
The intention behind this commit is to hint someone inspecting an apitrace dump to ignore this ill-formed GLSL code. | |||||
2019-05-27 | gl_shader_gen: Always declare extensions after the version declaration | ReinUsesLisp | 2 | -7/+5 | |
This addresses a bug on geometry shaders where code was being written before all #extension declarations were done. Ref to #2523 | |||||
2019-05-25 | renderer_opengl/utils: Use a std::string_view with LabelGLObject() | Lioncash | 2 | -10/+10 | |
Uses a std::string_view instead of a std::string, given the pointed to string isn't modified and is only used in a formatting operation. This is nice because a few usages directly supply a string literal to the function, allowing these usages to otherwise not heap allocate, unlike the std::string overloads. While we're at it, we can combine the address formatting into a single formatting call. | |||||
2019-05-24 | gl_shader_decompiler: Use an if based cbuf indexing for broken drivers | ReinUsesLisp | 1 | -3/+20 | |
The following code is broken on AMD's proprietary GLSL compiler: ```glsl uint idx = ...; vec4 values = ...; float some_value = values[idx & 3]; ``` It index the wrong components, to fix this the following pessimized code is emitted when that bug is present: ```glsl uint idx = ...; vec4 values = ...; float some_value; if ((idx & 3) == 0) some_value = values.x; if ((idx & 3) == 1) some_value = values.y; if ((idx & 3) == 2) some_value = values.z; if ((idx & 3) == 3) some_value = values.w; ``` | |||||
2019-05-24 | gl_device: Add test to detect broken component indexing | ReinUsesLisp | 2 | -0/+60 | |
Component indexing on AMD's proprietary driver is broken. This commit adds a test to detect when we are on a driver that can't successfully manage component indexing. It dispatches a dummy draw with just one vertex shader that writes to an indexed SSBO from the GPU with data sent through uniforms, it then reads that data from the CPU and compares the expected output. | |||||
2019-05-21 | renderer_opengl/gl_shader_decompiler: Remove redundant name specification in format string | Lioncash | 1 | -1/+1 | |
This accidentally slipped through a rebase. | |||||
2019-05-21 | gl_shader_cache: Fix clang strict standard build issues | ReinUsesLisp | 3 | -9/+13 | |
2019-05-21 | gl_shader_cache: Use shared contexts to build shaders in parallel | ReinUsesLisp | 6 | -47/+103 | |
2019-05-20 | shader: Implement S2R Tid{XYZ} and CtaId{XYZ} | ReinUsesLisp | 1 | -0/+16 | |
2019-05-20 | gl_shader_decompiler: Make GetSwizzle constexpr | ReinUsesLisp | 1 | -7/+7 | |
2019-05-20 | gl_shader_decompiler: Tidy up minor remaining cases of unnecessary std::string concatenation | Lioncash | 1 | -21/+20 | |
2019-05-20 | gl_shader_decompiler: Replace individual overloads with the fmt-based one | Lioncash | 1 | -28/+16 | |
Gets rid of the need to special-case brace handling depending on the overload used, and makes it consistent across the board with how fmt handles them. Strings with compile-time deducible strings are directly forwarded to std::string's constructor, so we don't need to worry about the performance difference here, as it'll be identical. | |||||
2019-05-20 | gl_shader_decompiler: Utilize fmt overload of AddLine() where applicable | Lioncash | 1 | -136/+152 | |
2019-05-19 | gl_shader_decompiler: Add AddLine() overload that forwards to fmt | Lioncash | 1 | -0/+11 | |
In a lot of places throughout the decompiler, string concatenation via operator+ is used quite heavily. This is usually fine, when not heavily used, but when used extensively, can be a problem. operator+ creates an entirely new heap allocated temporary string and given we perform expressions like: std::string thing = a + b + c + d; this ends up with a lot of unnecessary temporary strings being created and discarded, which kind of thrashes the heap more than we need to. Given we utilize fmt in some AddLine calls, we can make this a part of the ShaderWriter's API. We can make an overload that simply acts as a passthrough to fmt. This way, whenever things need to be appended to a string, the operation can be done via a single string formatting operation instead of discarding numerous temporary strings. This also has the benefit of making the strings themselves look nicer and makes it easier to spot errors in them. | |||||
2019-05-19 | gl_shader_gen: std::move objects where applicable | Lioncash | 1 | -7/+7 | |
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-19 | gl_shader_disk_cache: in-class initialize virtual file offset of ShaderDiskCacheOpenGL | Lioncash | 2 | -5/+3 | |
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-19 | gl_shader_disk_cache: Default ShaderDiskCacheOpenGL's destructor in the cpp file | Lioncash | 2 | -0/+3 | |
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-19 | gl_shader_disk_cache: Make hash specializations noexcept | Lioncash | 1 | -2/+2 | |
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-19 | gl_shader_disk_cache: Remove redundant code string construction in LoadDecompiledEntry() | Lioncash | 1 | -2/+2 | |
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-19 | gl_shader_disk_cache: Make variable non-const in decompiled entry case | Lioncash | 1 | -1/+1 | |
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-19 | gl_shader_disk_cache: Special-case boolean handling | Lioncash | 2 | -24/+37 | |
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-18 | gl_rasterizer: Limit OpenGL point size to a minimum of 1 | ReinUsesLisp | 1 | -1/+3 | |
2019-05-18 | maxwell_to_gl: Add TriangleFan primitive topology | ReinUsesLisp | 1 | -0/+2 | |
2019-05-17 | gl_rasterizer: Pass the right number of array quad vertices count | ReinUsesLisp | 1 | -2/+2 | |
2019-05-10 | video_core/renderer_opengl/gl_shader_cache: Correct member initialization order | Lioncash | 1 | -1/+1 | |
Silences a -Wreorder warning. | |||||
2019-05-10 | video_core/renderer_opengl/gl_shader_decompiler: Remove unused Composite() function | Lioncash | 1 | -11/+0 | |
This isn't used at all, so it can be removed. | |||||
2019-05-10 | video_core/renderer_opengl/gl_rasterizer_cache: Remove unused variable in UploadGLMipmapTexture() | Lioncash | 1 | -1/+0 | |
This variable is unused entirely, so it can be removed. | |||||
2019-05-04 | gl_rasterizer: Silence unused variable warning | Lioncash | 1 | -2/+2 | |
Makes use of src, so it's not considered unused. | |||||
2019-05-03 | gl_shader_decompiler: Skip physical unused attributes | ReinUsesLisp | 1 | -18/+27 | |
2019-05-03 | shader: Add physical attributes commentaries | ReinUsesLisp | 1 | -0/+2 | |
2019-05-03 | gl_shader_decompiler: Implement GLSL physical attributes | ReinUsesLisp | 1 | -65/+100 | |
2019-05-03 | gl_shader_decompiler: Abstract generic attribute operations | ReinUsesLisp | 1 | -29/+26 | |
2019-05-03 | gl_shader_decompiler: Declare all possible varyings on physical attribute usage | ReinUsesLisp | 3 | -27/+87 | |
2019-05-03 | shader: Remove unused AbufNode Ipa mode | ReinUsesLisp | 1 | -2/+1 | |
2019-05-01 | gl_shader_disk_cache: Skip stored shader variants instead of asserting | ReinUsesLisp | 1 | -1/+4 | |
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. | |||||
2019-04-23 | Re added new lines at the end of files | FreddyFunk | 2 | -2/+2 | |
2019-04-23 | gl_shader_disk_cache: Compress precompiled shader cache file with Zstandard | unknown | 1 | -6/+10 | |
2019-04-23 | gl_shader_disk_cache: Use VectorVfsFile for the virtual precompiled shader cache file | unknown | 3 | -101/+168 | |
2019-04-23 | gl_shader_disk_cache: Remove per shader compression | unknown | 2 | -45/+11 | |
2019-04-21 | Rasterizer Cache: Use a temporal storage for Surfaces loading/flushing. | Fernando Sahmkow | 3 | -17/+30 | |
This PR should heavily reduce memory usage since temporal buffers are no longer stored per Surface but instead managed by the Rasterizer Cache. | |||||
2019-04-20 | Apply Position Y Direction | Fernando Sahmkow | 1 | -0/+3 | |
2019-04-20 | RasterizerCache Redesign: Flush | Fernando Sahmkow | 4 | -11/+19 | |
flushing is now responsability of children caches instead of the cache object. This change will allow the specific cache to pass extra parameters on flushing and will allow more flexibility. | |||||
2019-04-19 | gl_state: Fix samplers memory corruption | ReinUsesLisp | 1 | -3/+5 | |
It was possible for "samplers" to be read without being written. This addresses that. | |||||
2019-04-18 | video_core: Silent -Wswitch warnings | ReinUsesLisp | 2 | -27/+28 | |
2019-04-16 | Document unsafe versions and add BlockCopyUnsafe | Fernando Sahmkow | 1 | -6/+7 | |
2019-04-16 | Use ReadBlockUnsafe for Shader Cache | Fernando Sahmkow | 1 | -5/+7 | |
2019-04-16 | shader_ir/decode: Fix half float pre-operations and remove MetaHalfArithmetic | ReinUsesLisp | 1 | -28/+23 | |
Operations done before the main half float operation (like HAdd) were managing a packed value instead of the unpacked one. Adding an unpacked operation allows us to drop the per-operand MetaHalfArithmetic entry, simplifying the code overall. | |||||
2019-04-16 | gl_shader_decompiler: Fix MrgH0 decompilation | ReinUsesLisp | 1 | -2/+2 | |
GLSL decompilation for HMergeH0 was wrong. This addresses that issue. | |||||
2019-04-16 | shader_ir/decode: Implement half float saturation | ReinUsesLisp | 1 | -4/+11 | |
2019-04-16 | renderer_opengl: Implement half float NaN comparisons | ReinUsesLisp | 1 | -18/+42 | |
2019-04-15 | Support compressed formats on linear textures. | Fernando Sahmkow | 1 | -2/+5 | |
2019-04-15 | Correct Pitch in Fermi2D | Fernando Sahmkow | 1 | -4/+1 | |
2019-04-14 | gl_shader_decompiler: Use variable AOFFI on supported hardware | ReinUsesLisp | 10 | -71/+102 | |
2019-04-14 | shader_ir: Implement STG, keep track of global memory usage and flush | ReinUsesLisp | 7 | -45/+85 | |
2019-04-11 | gl_rasterizer_cache: Relax restrictions on FastCopySurface and FastLayeredCopySurface | Fernando Sahmkow | 1 | -4/+10 | |
2019-04-11 | gl_shader_manager: Move code to source file and minor clean up | ReinUsesLisp | 2 | -34/+61 | |
2019-04-10 | gl_rasterizer: Apply just the needed state on Clear | ReinUsesLisp | 1 | -4/+4 | |
2019-04-10 | gl_device: Implement interface and add uniform offset alignment | ReinUsesLisp | 4 | -13/+68 | |
2019-04-10 | Remove bounding in LD_C | Fernando Sahmkow | 1 | -2/+1 | |
2019-04-09 | Correct Fermi Copy on Linear Textures. | Fernando Sahmkow | 1 | -0/+4 | |
2019-04-09 | Correct depth compare with color formats for R32F | Fernando Sahmkow | 1 | -2/+17 | |
2019-04-08 | gl_backend: Align Pixel Storage | Fernando Sahmkow | 2 | -4/+12 | |
This commit makes sure GL reads on the correct pack size for the respective texture buffer. | |||||
2019-04-08 | Move ConstBufferAccessor to Maxwell3d, correct mistakes and clang format. | Fernando Sahmkow | 2 | -9/+8 | |
2019-04-08 | Fix bad rebase | Fernando Sahmkow | 1 | -2/+1 | |
2019-04-08 | Simplify ConstBufferAccessor | Fernando Sahmkow | 2 | -5/+4 | |
2019-04-08 | Fixes to Const Buffer Accessor and Formatting | Fernando Sahmkow | 1 | -2/+1 | |
2019-04-08 | Implement Bindless Handling on SetupTexture | Fernando Sahmkow | 1 | -1/+9 | |
2019-04-08 | Unify both sampler types. | Fernando Sahmkow | 2 | -4/+8 | |
2019-04-08 | Implement Bindless Samplers and TEX_B in the IR. | Fernando Sahmkow | 1 | -1/+1 | |
2019-04-08 | Implement Const Buffer Accessor | Fernando Sahmkow | 2 | -2/+7 | |
2019-04-07 | Permit a Null Shader in case of a bad host_ptr. | Fernando Sahmkow | 1 | -0/+4 | |
2019-04-06 | video_core/texures/texture: Remove unnecessary includes | Lioncash | 4 | -0/+4 | |
Nothing in this header relies on common_funcs or the memory manager. This gets rid of reliance on indirect inclusions in the OpenGL caches. | |||||
2019-04-06 | renderer_opengl/utils: Skip empty binds | ReinUsesLisp | 1 | -0/+3 | |
2019-04-06 | gl_rasterizer: Use ARB_multi_bind to update SSBOs | ReinUsesLisp | 2 | -9/+9 | |
2019-04-06 | gl_rasterizer: Use ARB_multi_bind to update UBOs across stages | ReinUsesLisp | 4 | -22/+58 | |
2019-04-05 | gl_shader_decompiler: Rename GenerateTemporal() to GenerateTemporary() | Lioncash | 1 | -12/+12 | |
Temporal generally indicates a relation to time, but this is just creating a temporary, so this isn't really an accurate name for what the function is actually doing. | |||||
2019-04-05 | gl_shader_decompiler: Fix TXQ types | ReinUsesLisp | 1 | -2/+3 | |
TXQ returns integer types. Shaders usually do: R0 = TXQ(); // => int R0 = static_cast<float>(R0); If we don't treat it as an integer, it will cast a binary float value as float - resulting in a corrupted number. | |||||
2019-04-04 | video_core/renderer_opengl: Remove unnecessary includes | Lioncash | 13 | -24/+4 | |
Quite a few unused includes have built up over time, particularly on core/memory.h. Removing these includes means the source files including those files will no longer need to be rebuilt if they're changed, making compilation slightly faster in this scenario. | |||||
2019-04-04 | gl_state: Rework to enable individual applies | ReinUsesLisp | 3 | -339/+324 | |
2019-04-03 | gl_shader_decompiler: Return early when an operation is invalid | ReinUsesLisp | 1 | -1/+6 | |
2019-04-02 | gl_sampler_cache: Port sampler cache to OpenGL | ReinUsesLisp | 4 | -123/+80 | |
2019-03-31 | gl_shader_decompiler: Hide local definitions inside an anonymous namespace | ReinUsesLisp | 1 | -6/+8 | |
2019-03-30 | gl_shader_decompiler: Add AOFFI backing implementation | ReinUsesLisp | 1 | -38/+85 | |
2019-03-29 | common/zstd_compression: simplify decompression interface | unknown | 1 | -3/+2 | |
2019-03-29 | gl_shader_disk_cache: Fixup clang format | unknown | 1 | -2/+3 | |
2019-03-29 | gl_shader_disk_cache: Use Zstandard for compression | unknown | 1 | -6/+6 | |
2019-03-29 | gl_shader_disk_cache: Use LZ4HC with compression level 9 instead of compression level 12 for less compression time | unknown | 1 | -3/+3 | |
2019-03-29 | Addressed feedback | unknown | 1 | -6/+6 | |
2019-03-29 | gl_shader_disk_cache: Use better compression for transferable and precompiled shader disk chache files | unknown | 1 | -2/+2 | |
2019-03-29 | data_compression: Move LZ4 compression from video_core/gl_shader_disk_cache to common/data_compression | unknown | 1 | -38/+8 | |
2019-03-28 | gl_shader_manager: Remove unnecessary gl_shader_manager inclusion | Lioncash | 1 | -2/+0 | |
This isn't used at all in the OpenGL shader cache, so we can remove it's include here, meaning one less file needs to be recompiled if any changes ever occur within that header. core/memory.h is also not used within this file at all, so we can remove it as well. | |||||
2019-03-28 | gl_shader_manager: Move using statement into the cpp file | Lioncash | 2 | -4/+4 | |
Avoids introducing Maxwell3D into the namespace for everything that includes the header. | |||||
2019-03-28 | gl_shader_manager: Remove reliance on global accessor within MaxwellUniformData::SetFromRegs() | Lioncash | 3 | -9/+9 | |
We can just pass in the Maxwell3D instance instead of going through the system class to get at it. This also lets us simplify the interface a little bit. Since we pass in the Maxwell3D context now, we only really need to pass the shader stage index value in. | |||||
2019-03-27 | gl_shader_manager: Amend Doxygen string for MaxwellUniformData | Lioncash | 1 | -3/+3 | |
Previously only one line of the whole comment was in proper Doxygen formatting. | |||||
2019-03-27 | gl_rasterizer: Remove unused reference member variable from RasterizerOpenGL | Lioncash | 3 | -9/+5 | |
This member variable is no longer being used, so it can be removed, removing a dependency on EmuWindow from the rasterizer's interface" | |||||
2019-03-27 | video_core: Amend constructor initializer list order where applicable | Lioncash | 4 | -11/+11 | |
Specifies the members in the same order that initialization would take place in. This also silences -Wreorder warnings. | |||||
2019-03-27 | video_core: Add missing override specifiers | Lioncash | 1 | -2/+2 | |
Ensures that the signatures will always match with the base class. Also silences a few compilation warnings. | |||||
2019-03-22 | Revert "Devirtualize Register/Unregister and use a wrapper instead." | bunnei | 2 | -6/+10 | |
- Fixes graphical issues from transitions in Super Mario Odyssey. | |||||
2019-03-21 | gl_rasterizer_cache: Check that backing memory is valid before creating a surface. | bunnei | 2 | -15/+12 | |
- Fixes a crash in Puyo Puyo Tetris. | |||||
2019-03-21 | gpu: Rewrite virtual memory manager using PageTable. | bunnei | 2 | -7/+7 | |
2019-03-21 | gpu: Move GPUVAddr definition to common_types. | bunnei | 10 | -24/+22 | |
2019-03-17 | gl_rasterizer: Skip zero addr/sized regions on flush/invalidate. | bunnei | 1 | -0/+6 | |
2019-03-16 | memory: Simplify rasterizer cache operations. | bunnei | 1 | -2/+1 | |
2019-03-16 | video_core: Refactor to use MemoryManager interface for all memory access. | bunnei | 8 | -74/+68 | |
# Conflicts: # src/video_core/engines/kepler_memory.cpp # src/video_core/engines/maxwell_3d.cpp # src/video_core/morton.cpp # src/video_core/morton.h # src/video_core/renderer_opengl/gl_global_cache.cpp # src/video_core/renderer_opengl/gl_global_cache.h # src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | |||||
2019-03-15 | gpu: Use host address for caching instead of guest address. | bunnei | 10 | -94/+123 | |
2019-03-13 | video_core/morton: Use enum to describe MortonCopyPixels128 mode | ReinUsesLisp | 1 | -3/+5 | |
2019-03-13 | video_core/morton: Remove unused parameter in MortonSwizzle | ReinUsesLisp | 1 | -2/+2 | |
2019-03-11 | renderer_opengl/gl_global_cache: Replace indexing for assignment with insert_or_assign | Lioncash | 2 | -3/+3 | |
The previous code had some minor issues with it, really not a big deal, but amending it is basically 'free', so I figured, "why not?". With the standard container maps, when: map[key] = thing; is done, this can cause potentially undesirable behavior in certain scenarios. In particular, if there's no value associated with the key, then the map constructs a default initialized instance of the value type. In this case, since it's a std::shared_ptr (as a type alias) that is the value type, this will construct a std::shared_pointer, and then assign over it (with objects that are quite large, or actively heap allocate this can be extremely undesirable). We also make the function take the region by value, as we can avoid a copy (and by extension with std::shared_ptr, a copy causes an atomic reference count increment), in certain scenarios when ownership isn't a concern (i.e. when ReserveGlobalRegion is called with an rvalue reference, then no copy at all occurs). So, it's more-or-less a "free" gain without many downsides. | |||||
2019-03-11 | renderer_opengl/gl_global_cache: Append missing override specifiers | Lioncash | 1 | -2/+2 | |
Two of the functions here are overridden functions, so we can append these specifiers to make it explicit. | |||||
2019-03-11 | gl_rasterizer: Use system instance passed from argument | ReinUsesLisp | 2 | -29/+31 | |
2019-03-09 | gl_rasterizer: Encapsulate sampler queries into methods | ReinUsesLisp | 2 | -59/+43 | |
2019-03-09 | gl_rasterizer: Minor logger changes | ReinUsesLisp | 1 | -19/+13 | |
2019-03-07 | gpu: Always flush. | bunnei | 1 | -5/+1 | |
2019-03-04 | video_core/renderer_opengl: Replace direct usage of global system object accessors | Lioncash | 2 | -11/+17 | |
We already pass a reference to the system object to the constructor of the renderer, so we can just use that instead of using the global accessor functions. | |||||
2019-03-02 | fuck git for ruining my day, I will learn but I will not forgive | bunnei | 1 | -1/+1 | |
2019-02-28 | gl_rasterizer: Remove texture unbinding after dispatching a draw call | ReinUsesLisp | 1 | -12/+0 | |
Unbinding was required when OpenGL delete operations didn't unbind a resource if it was bound. This is no longer needed and can be removed. | |||||
2019-02-28 | gl_state: Fixup multibind bug | ReinUsesLisp | 1 | -2/+2 | |
2019-02-28 | Devirtualize Register/Unregister and use a wrapper instead. | Fernando Sahmkow | 2 | -10/+6 | |
2019-02-28 | Corrections and redesign. | Fernando Sahmkow | 2 | -51/+51 | |
2019-02-28 | Fix linux compile error. | Fernando Sahmkow | 1 | -1/+1 | |
2019-02-28 | Remove NotifyFrameBuffer as we are doing a texception pass every drawcall. | Fernando Sahmkow | 2 | -25/+0 | |
2019-02-28 | Remove certain optimizations that caused texception to fail in certain scenarios. | Fernando Sahmkow | 3 | -24/+1 | |
2019-02-28 | Bug fixes and formatting | Fernando Sahmkow | 2 | -3/+4 | |
2019-02-28 | rasterizer_cache_gl: Implement Texception Pass | Fernando Sahmkow | 3 | -0/+51 | |
2019-02-28 | rasterizer_cache_gl: Implement Partial Reinterpretation of Surfaces. | Fernando Sahmkow | 2 | -0/+100 | |
2019-02-28 | rasterizer_cache: mark reinterpreted surfaces and add ability to reload marked surfaces on next use. | Fernando Sahmkow | 2 | -0/+78 | |
2019-02-28 | rasterizer_cache_gl: Notify on framebuffer change | Fernando Sahmkow | 2 | -4/+23 | |
2019-02-27 | gl_rasterizer_cache: Create texture views for array discrepancies | ReinUsesLisp | 3 | -32/+42 | |
When a texture is sampled in a shader with a different array mode than the cached state, create a texture view and bind that to the shader instead. | |||||
2019-02-27 | gl_rasterizer: Reorder constructor initializer list in terms of member declaration order | Lioncash | 1 | -2/+2 | |
Orders the members in the order they would actually be initialized in. Silences a -Wreorder warning. | |||||
2019-02-27 | gl_shader_disk_cache: Remove #pragma once from cpp file | Lioncash | 1 | -2/+0 | |
This is only necessary in headers. Silences a warning with clang. | |||||
2019-02-27 | common/math_util: Move contents into the Common namespace | Lioncash | 5 | -15/+15 | |
These types are within the common library, so they should be within the Common namespace. | |||||
2019-02-27 | gl_rasterizer_cache: Move format conversion to its own file | ReinUsesLisp | 1 | -102/+13 | |
2019-02-26 | renderer_opengl: Update pixel format tracking | ReinUsesLisp | 1 | -0/+1 | |
2019-02-26 | maxwell_3d: Use std::bitset to manage dirty flags | ReinUsesLisp | 2 | -11/+11 | |
2019-02-26 | shader/decode: Remove extras from MetaTexture | ReinUsesLisp | 1 | -21/+35 | |
2019-02-24 | gl_rasterizer_cache: Fixup parameter order in layered swizzle | ReinUsesLisp | 1 | -1/+1 | |
2019-02-16 | core_timing: Convert core timing into a class | Lioncash | 1 | -1/+1 | |
Gets rid of the largest set of mutable global state within the core. This also paves a way for eliminating usages of GetInstance() on the System class as a follow-up. Note that no behavioral changes have been made, and this simply extracts the functionality into a class. This also has the benefit of making dependencies on the core timing functionality explicit within the relevant interfaces. | |||||
2019-02-15 | renderer_opengl: respect the sRGB colorspace for the screenshot feature | fearlessTobi | 1 | -1/+2 | |
Previously, we were completely ignoring for screenshots whether the game uses RGB or sRGB. This resulted in screenshot colors that looked off for some titles. | |||||
2019-02-15 | gl_state: Synchronize gl_state even when state is disabled | ReinUsesLisp | 1 | -83/+61 | |
There are some potential edge cases where gl_state may fail to track the state if a related state changes while the toggle is disabled or it didn't change. This addresses that. | |||||
2019-02-14 | shader_decompiler: Improve Accuracy of Attribute Interpolation. | Fernando Sahmkow | 2 | -29/+19 | |
2019-02-13 | rasterizer_cache_gl: Only do fast layered copy on the same format. As | Fernando Sahmkow | 1 | -1/+5 | |
glCopyImageSubData does not support different formats. | |||||
2019-02-13 | renderer_opengl: Remove reference to global system instance | Lioncash | 1 | -3/+3 | |
We already store a reference to the system instance that the renderer is created with, so we don't need to refer to the system instance via Core::System::GetInstance() | |||||
2019-02-12 | gl_rasterizer_cache: Remove unnecessary newline | Lioncash | 1 | -2/+0 | |
2019-02-12 | gl_rasterizer_cache: Get rid of variable shadowing | Lioncash | 1 | -6/+14 | |
Avoids shadowing the members of the struct itself, which results in a -Wshadow warning. | |||||
2019-02-12 | gl_shader_decompiler: Re-implement TLDS lod | ReinUsesLisp | 1 | -21/+34 | |
2019-02-12 | core_timing: Rename CoreTiming namespace to Core::Timing | Lioncash | 1 | -1/+1 | |
Places all of the timing-related functionality under the existing Core namespace to keep things consistent, rather than having the timing utilities sitting in its own completely separate namespace. | |||||
2019-02-09 | Implement linear textures (#2089) | Fernando Sahmkow | 2 | -5/+39 | |
2019-02-08 | gl_rasterizer_cache: Fixup texture view parameters | ReinUsesLisp | 1 | -2/+2 | |
These parameters were declared as constants and passed to glTextureView but then they were removed on a rabase. This addresses that mistake. | |||||
2019-02-07 | shader_ir: Remove F4 prefix to texture operations | ReinUsesLisp | 1 | -12/+12 | |
This was originally included because texture operations returned a vec4. These operations now return a single float and the F4 prefix doesn't mean anything. | |||||
2019-02-07 | shader_ir: Clean texture management code | ReinUsesLisp | 1 | -32/+41 | |
Previous code relied on GLSL parameter order (something that's always ill-formed on an IR design). This approach passes spatial coordiantes through operation nodes and array and depth compare values in the the texture metadata. It still contains an "extra" vector containing generic nodes for bias and component index (for example) which is still a bit ill-formed but it should be better than the previous approach. | |||||
2019-02-07 | gl_rasterizer_cache: Mark surface copy destinations as modified. | bunnei | 2 | -4/+18 | |
2019-02-07 | gl_rasterizer: Implement a more accurate fermi 2D copy. | bunnei | 4 | -15/+146 | |
- This is a blit, use the blit registers. | |||||
2019-02-07 | gl_shader_disk_cache: Check LZ4 size limit | Frederic L | 1 | -0/+4 | |
Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc> | |||||
2019-02-07 | gl_shader_disk_cache: Consider compressed size zero as an error | Frederic L | 1 | -2/+2 | |
Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc> | |||||
2019-02-07 | gl_shader_disk_cache: Use unordered containers | ReinUsesLisp | 4 | -56/+64 | |
2019-02-07 | gl_shader_cache: Fixup GLSL unique identifiers | ReinUsesLisp | 2 | -3/+3 | |
2019-02-07 | gl_shader_cache: Link loading screen with disk shader cache load | ReinUsesLisp | 4 | -8/+37 | |
2019-02-07 | gl_shader_cache: Set GL_PROGRAM_SEPARABLE to dumped shaders | ReinUsesLisp | 1 | -0/+1 | |
i965 (and probably all mesa drivers) require GL_PROGRAM_SEPARABLE when using glProgramBinary. This is probably required by the standard but it's ignored by permisive proprietary drivers. | |||||
2019-02-07 | gl_shader_disk_cache: Pass core system as argument and guard against games without title ids | ReinUsesLisp | 8 | -14/+48 | |
2019-02-07 | gl_shader_disk_cache: Guard reads and writes against failure | ReinUsesLisp | 2 | -216/+339 | |
2019-02-07 | gl_shader_disk_cache: Address miscellaneous feedback | ReinUsesLisp | 5 | -43/+57 | |
2019-02-07 | gl_shader_disk_cache: Pass return values returning instead of by parameters | ReinUsesLisp | 3 | -39/+37 | |
2019-02-07 | gl_shader_disk_cache: Compress program binaries using LZ4 | ReinUsesLisp | 1 | -7/+28 | |
2019-02-07 | gl_shader_disk_cache: Compress GLSL code using LZ4 | ReinUsesLisp | 1 | -5/+56 | |
2019-02-07 | gl_shader_disk_cache: Save GLSL and entries into the precompiled file | ReinUsesLisp | 8 | -135/+225 | |
2019-02-07 | settings: Hide shader cache behind a setting | ReinUsesLisp | 1 | -0/+21 | |
2019-02-07 | gl_shader_disk_cache: Invalidate shader cache changes with CMake hash | ReinUsesLisp | 1 | -7/+16 | |
2019-02-07 | gl_shader_cache: Refactor to support disk shader cache | ReinUsesLisp | 2 | -121/+388 | |
2019-02-07 | gl_shader_disk_cache: Add transferable cache invalidation | ReinUsesLisp | 2 | -0/+8 | |
2019-02-07 | gl_shader_disk_cache: Add precompiled load | ReinUsesLisp | 2 | -0/+45 | |
2019-02-07 | gl_shader_disk_cache: Add precompiled save | ReinUsesLisp | 2 | -0/+57 | |
2019-02-07 | gl_shader_disk_cache: Add transferable load | ReinUsesLisp | 2 | -0/+56 | |
2019-02-07 | gl_shader_disk_cache: Add transferable stores | ReinUsesLisp | 2 | -0/+194 | |
2019-02-07 | gl_shader_disk_cache: Add ShaderDiskCacheOpenGL class and helpers | ReinUsesLisp | 2 | -0/+76 | |
2019-02-07 | gl_shader_disk_cache: Add file and move BaseBindings declaration | ReinUsesLisp | 3 | -10/+56 | |
2019-02-07 | gl_shader_decompiler: Remove name entries | ReinUsesLisp | 2 | -28/+10 | |
2019-02-07 | gl_shader_util: Add parameter to handle retrievable programs | ReinUsesLisp | 3 | -6/+10 | |
2019-02-07 | rasterizer_interface: Add disk cache entry for the rasterizer | ReinUsesLisp | 4 | -0/+11 | |
2019-02-07 | shader_decode: Implement LDG and basic cbuf tracking | ReinUsesLisp | 1 | -0/+33 | |
2019-02-03 | shader_ir: Rename BasicBlock to NodeBlock | ReinUsesLisp | 1 | -3/+3 | |
It's not always used as a basic block. Rename it for consistency. | |||||
2019-02-03 | video_core: Assert on invalid GPU to CPU address queries | ReinUsesLisp | 3 | -4/+9 | |
2019-02-03 | maxwell_3d: Allow texture handles with TIC id zero | ReinUsesLisp | 1 | -4/+0 | |
Also remove "enabled" field from Tegra::Texture::FullTextureInfo because it would become unused. | |||||
2019-02-01 | rasterizer_interface: Remove unused AccelerateFill operation | ReinUsesLisp | 2 | -6/+0 | |
2019-02-01 | video_core: Remove unused Fill surface type | ReinUsesLisp | 1 | -4/+0 | |
2019-01-30 | gl_rasterizer_cache: Fixup test clause | ReinUsesLisp | 1 | -6/+5 | |
2019-01-30 | gl_rasterizer_cache: Guard clause swizzle testing | Mat M | 1 | -1/+3 | |
Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc> | |||||
2019-01-30 | gl_state: Remove texture target tracking | ReinUsesLisp | 2 | -5/+0 | |
2019-01-30 | gl_rasterizer_cache: Move swizzling to textures instead of state | ReinUsesLisp | 6 | -28/+35 | |
2019-01-30 | gl_state: Use DSA and multi bind to update texture bindings | ReinUsesLisp | 1 | -8/+22 | |
2019-01-30 | gl_rasterizer: Use DSA for textures | ReinUsesLisp | 5 | -185/+105 | |
2019-01-30 | shader_ir: Unify constant buffer offset values | ReinUsesLisp | 2 | -3/+4 | |
Constant buffer values on the shader IR were using different offsets if the access direct or indirect. cbuf34 has a non-multiplied offset while cbuf36 does. On shader decoding this commit multiplies it by four on cbuf34 queries. | |||||
2019-01-30 | gl_shader_cache: Use explicit bindings | ReinUsesLisp | 7 | -249/+194 | |
2019-01-30 | gl_rasterizer: Implement global memory management | ReinUsesLisp | 6 | -4/+140 | |
2019-01-30 | shader_decode: Implement LDG and basic cbuf tracking | ReinUsesLisp | 2 | -6/+72 | |
2019-01-30 | gl_shader_cache: Fix texture view for cubemaps as cubemap arrays | ReinUsesLisp | 2 | -3/+8 | |
Cubemaps are considered layered and to create a texture view the texture mustn't be a layered texture, resulting in cubemaps being bound as cubemap arrays. To fix this issue this commit introduces an extra surface parameter called "is_array" and uses this to query for texture view creation. Now that texture views for cubemaps are actually being created, this also fixes the number of layers created for the texture view (since they have to be 6 to create a texture view of cubemaps). | |||||
2019-01-30 | gl_rasterizer: Workaround invalid zeta clears | ReinUsesLisp | 2 | -14/+19 | |
Some games (like Xenoblade Chronicles 2) clear both depth and stencil buffers while there's a depth-only texture attached (e.g. D16 Unorm). This commit reads the zeta format of the bound surface on ConfigureFramebuffers and returns if depth and/or stencil attachments were set. This is ignored on DrawArrays but on Clear it's used to just clear those attachments, bypassing an OpenGL error. | |||||
2019-01-24 | frontend: Refactor ScopeAcquireWindowContext out of renderer_opengl. | bunnei | 3 | -28/+2 | |
2019-01-22 | maxwell_3d: Set rt_separate_frag_data to 1 by default | ReinUsesLisp | 1 | -4/+1 | |
Commercial games assume that this value is 1 but they never set it. On the other hand nouveau manually sets this register. On ConfigureFramebuffers we were asserting for what we are actually implementing (according to envytools). | |||||
2019-01-18 | gl_rasterizer: Silent unsafe mix warning | ReinUsesLisp | 1 | -1/+1 | |
2019-01-15 | gl_shader_decompiler: replace std::get<> with std::get_if<> for macOS compatibility | ReinUsesLisp | 1 | -44/+58 | |
2019-01-15 | gl_shader_decompiler: Inline textureGather component | ReinUsesLisp | 1 | -15/+16 | |
2019-01-15 | shader_ir: Remove composite primitives and use temporals instead | ReinUsesLisp | 1 | -66/+37 | |
2019-01-15 | gl_shader_decompiler: Fixup AssignCompositeHalf | ReinUsesLisp | 1 | -1/+1 | |
2019-01-15 | shader_decode: Use proper primitive names | ReinUsesLisp | 1 | -10/+8 | |
2019-01-15 | shader_decode: Use BitfieldExtract instead of shift + and | ReinUsesLisp | 1 | -0/+7 | |
2019-01-15 | shader_ir: Remove Ipa primitive | ReinUsesLisp | 1 | -8/+0 | |
2019-01-15 | gl_shader_decompiler: Use rasterizer's UBO size limit | ReinUsesLisp | 1 | -1/+3 | |
2019-01-15 | gl_shader_gen: Fixup code formatting | ReinUsesLisp | 2 | -18/+22 | |
2019-01-15 | video_core: Rename glsl_decompiler to gl_shader_decompiler | ReinUsesLisp | 6 | -4/+1635 | |
2019-01-15 | glsl_decompiler: Fixup geometry shaders | ReinUsesLisp | 1 | -5/+1 | |
2019-01-15 | video_core: Implement IR based geometry shaders | ReinUsesLisp | 1 | -8/+6 | |
2019-01-15 | video_core: Replace gl_shader_decompiler | ReinUsesLisp | 7 | -4183/+57 | |
2019-01-09 | gl_rasterizer: Workaround Intel VAO DSA bug | ReinUsesLisp | 3 | -7/+16 | |
There is a bug on Intel's blob driver where it fails to properly build a vertex array object if it's not bound even after creating it with glCreateVertexArrays. This workaround binds it after creating it to bypass the issue. | |||||
2019-01-08 | gl_global_cache: Add dummy global cache manager | ReinUsesLisp | 4 | -3/+94 | |
2019-01-07 | gl_rasterizer: Skip framebuffer configuration if rendertargets have not been changed | ReinUsesLisp | 2 | -1/+31 | |
2019-01-07 | gl_rasterizer_cache: Use dirty flags for the depth buffer | ReinUsesLisp | 2 | -3/+11 | |
2019-01-07 | gl_rasterizer_cache: Use dirty flags for color buffers | ReinUsesLisp | 2 | -4/+12 | |
2019-01-07 | gl_shader_cache: Use dirty flags for shaders | ReinUsesLisp | 3 | -2/+12 | |
2019-01-06 | gl_stream_buffer: Use DSA for buffer management | ReinUsesLisp | 3 | -17/+14 | |
2019-01-06 | gl_rasterizer: Use DSA for vertex array objects | ReinUsesLisp | 6 | -79/+53 | |
2019-01-06 | gl_state: Drop uniform buffer state tracking | ReinUsesLisp | 3 | -10/+0 | |
2019-01-05 | gl_rasterizer_cache: Use GL_STREAM_COPY for PBOs | ReinUsesLisp | 1 | -1/+1 | |
Since the data is doing the path CPU -> GPU -> GPU copy is the most approximate hint. Using GL_STREAM_DRAW generated a performance warning on Nvidia's stack. Changing this hint removed the warning. | |||||
2018-12-30 | gl_rasterizer_cache: Texture view if shader samples array but OGL is not | ReinUsesLisp | 3 | -14/+74 | |
When a shader samples a texture array but that texture in OpenGL is created without layers, use a texture view to increase the texture hierarchy. For example, instead of binding a GL_TEXTURE_2D bind a GL_TEXTURE_2D_ARRAY view. | |||||
2018-12-28 | gpu: Remove PixelFormat G8R8U and G8R8S, as they do not seem to exist. | bunnei | 1 | -22/+0 | |
- Fixes UI rendering issues in The Legend of Zelda: Breath of the Wild. | |||||
2018-12-27 | Add missing uintBitsToFloat to SetRegisterToHalfFloat | Rodolfo Bogado | 1 | -2/+2 | |
2018-12-26 | renderer_opengl: Correct forward declaration of FramebufferLayout | Lioncash | 1 | -1/+1 | |
This is actually a struct, not a class, which can lead to compilation warnings. | |||||
2018-12-26 | Apply CC test to the final value to be stored in the register | Rodolfo Bogado | 1 | -9/+12 | |
2018-12-26 | Fixed shader linking error due to TLDS (#1934) | David | 1 | -1/+1 | |
* Fixed shader linking error due to TLDS coord should be coords * Fix remaining coords | |||||
2018-12-22 | Includde saturation in the evaluation of the control code | Rodolfo Bogado | 1 | -3/+4 | |
2018-12-22 | Handle RZ cases evaluating the expression instead of the register value. | Rodolfo Bogado | 1 | -14/+22 | |
2018-12-22 | complete emulation of ZeroFlag | Rodolfo Bogado | 1 | -100/+97 | |
2018-12-19 | hopefully fix clang format issue | David Marcec | 1 | -0/+1 | |
2018-12-19 | Fixed uninitialized memory due to missing returns in canary | David Marcec | 3 | -2/+12 | |
Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used. | |||||
2018-12-18 | yuzu, video_core: Screenshot functionality | zhupengfei | 2 | -4/+46 | |
Allows capturing screenshot at the current internal resolution (native for software renderer), but a setting is available to capture it in other resolutions. The screenshot is saved to a single PNG in the current layout. | |||||
2018-12-18 | Texture format fixes: Flag RGBA16UI as GL_RGBA_INTEGER format, and interpret R16U as Z16 when depth_compare is enabled. | heapo | 1 | -1/+11 | |
2018-12-17 | Implement postfactor multiplication/division for fmul instructions | heapo | 1 | -4/+20 | |
2018-12-17 | Fix arrayed shadow sampler array slice/depth comparison ordering, as well as invalid GLSL LOD selection. | heapo | 1 | -16/+14 | |
2018-12-11 | gl_shader_cache: Dehardcode constant in CalculateProgramSize() | Lioncash | 1 | -2/+2 | |
This constant is related to the size of the instruction. | |||||
2018-12-11 | gl_shader_cache: Resolve truncation compiler warning | Lioncash | 1 | -1/+1 | |
The previous code would cause a warning, as it was truncating size_t (64-bit) to a u32 (32-bit) implicitly. | |||||
2018-12-10 | gl_shader_decompiler: IPA FrontFacing: the right value when is the front face is 0xFFFFFFFF. | Marcos Vitali | 1 | -1/+1 | |
2018-12-09 | Implemented a shader unique identifier. | Fernando Sahmkow | 4 | -0/+57 | |
2018-12-09 | Add more info into textures' object labels | FernandoS27 | 2 | -2/+57 | |
2018-12-07 | gl_shader_decompiler: TLDS/TLD4/TLD4S Reworked reflecting the source registers, bugs fixed and modularize. | Marcos Vitali | 1 | -106/+134 | |
2018-12-05 | gl_shader_decompiler: Implement TEXS.F16 | ReinUsesLisp | 1 | -12/+49 | |
2018-12-05 | gl_shader_decompiler: Fixup inverted if | ReinUsesLisp | 1 | -6/+5 | |
2018-12-04 | Rewrited TEX/TEXS (TEX Scalar). (#1826) | Marcos | 1 | -259/+177 | |
* Rewrited TEX/TEXS (TEX Scalar). * Style fixes. * Styles issues. | |||||
2018-11-30 | gl_rasterizer_cache: Update AccurateCopySurface to flush complete source surface. | bunnei | 1 | -1/+4 | |
- Fixes issues with Breath of the Wild with use_accurate_gpu_emulation setting. | |||||
2018-11-29 | gl_rasterizer: Enable clip distances when set in register and in shader | ReinUsesLisp | 4 | -13/+36 | |
2018-11-29 | gl_rasterizer: Implement a framebuffer cache | ReinUsesLisp | 2 | -40/+82 | |
2018-11-29 | gl_shader_manager: Update pipeline when programs have changed | ReinUsesLisp | 1 | -4/+17 | |
2018-11-29 | gl_rasterizer_cache: Remove BlitSurface and replace with more accurate copy. | bunnei | 1 | -144/+1 | |
- BlitSurface with different texture targets is inherently broken. - When target is the same, we can just use FastCopySurface. - Fixes rendering issues with Breath of the Wild. | |||||
2018-11-29 | gl_shader_decompiler: Remove texture temporal in TLD4 | ReinUsesLisp | 1 | -3/+1 | |
2018-11-29 | gl_shader_decompiler: Flip negated if else statement | ReinUsesLisp | 1 | -3/+3 | |
2018-11-29 | gl_shader_decompiler: Use GLSL scope on instructions unrelated to textures | ReinUsesLisp | 1 | -35/+10 | |
2018-11-29 | gl_shader_decompiler: Move texture code generation into lambdas | ReinUsesLisp | 1 | -97/+78 | |
2018-11-29 | gl_shader_decompiler: Clean up texture instructions | ReinUsesLisp | 1 | -87/+56 | |
2018-11-29 | gl_shader_decompiler: Scope GLSL variables with a scoped object | ReinUsesLisp | 1 | -32/+72 | |
2018-11-29 | gl_rasterizer: Signal UNIMPLEMENTED when rt_separate_frag_data is not zero | ReinUsesLisp | 1 | -1/+1 | |
2018-11-29 | gl_rasterizer_cache: Use brackets for two-line single-expresion blocks | ReinUsesLisp | 1 | -1/+2 | |
2018-11-29 | gl_rasterizer: Remove unused struct declarations | ReinUsesLisp | 1 | -14/+0 | |
2018-11-29 | gl_rasterizer: Remove extension booleans | ReinUsesLisp | 2 | -16/+0 | |
2018-11-27 | gl_shader_decompiler: Fixup clip distance index | ReinUsesLisp | 1 | -1/+1 | |
2018-11-27 | gl_rasterizer: Fixup for #1723. | Markus Wick | 1 | -1/+1 | |
On invalidating the streaming buffer, we need to reupload all vertex buffers. But we don't need to reconfigure the vertex format. This was a (silly) misstake in #1723. Thanks at Rodrigo for discovering the issue. Fun fact, as configuring the vertex format also invalidate the vertex buffer, this misstake had no affect on the behavior. | |||||
2018-11-27 | remove viewport_transform_enabled as it seems to be inactive when valid transforms are used. | Rodolfo Bogado | 1 | -12/+5 | |
2018-11-27 | Implement depth clamp | Rodolfo Bogado | 4 | -9/+49 | |
2018-11-27 | Add support for Clip Distance enabled register | Rodolfo Bogado | 2 | -2/+11 | |
2018-11-27 | GPU States: Implement Polygon Offset. This is used in SMO all the time. (#1784) | Marcos | 4 | -1/+81 | |
* GPU States: Implement Polygon Offset. This is used in SMO all the time. * Clang Format fixes. * Initialize polygon_offset in the constructor. | |||||
2018-11-26 | Implemented Tile Width Spacing | FernandoS27 | 2 | -7/+18 | |
2018-11-25 | Limit the amount of viewports tested for state changes only to the usable ones | Rodolfo Bogado | 1 | -2/+10 | |
2018-11-25 | gl_shader_decompiler: Implement S2R's Y_DIRECTION | ReinUsesLisp | 4 | -16/+25 | |
2018-11-25 | video_core: Move morton functions to their own file | ReinUsesLisp | 2 | -180/+15 | |
2018-11-24 | Fix Texture Overlapping | FernandoS27 | 1 | -43/+70 | |
2018-11-24 | Implemented BRA CC conditional and FSET CC Setting | FernandoS27 | 1 | -4/+14 | |
2018-11-24 | Add support for viewport_transfom_enable register | Rodolfo Bogado | 1 | -5/+13 | |
2018-11-24 | Add support for clear_flags register | Rodolfo Bogado | 4 | -27/+84 | |
2018-11-24 | Fix TEXS Instruction encodings | FernandoS27 | 1 | -22/+48 | |
2018-11-24 | Fix one encoding in TEX Instruction | FernandoS27 | 1 | -3/+3 | |
2018-11-24 | Corrected inputs indexing in TEX instruction | FernandoS27 | 1 | -66/+85 | |
2018-11-23 | Added predicate comparison LessEqualWithNan (#1736) | Hexagon12 | 1 | -5/+12 | |
* Added predicate comparison LessEqualWithNan * oops * Clang fix | |||||
2018-11-23 | gl_shader_decompiler: Implement clip distances | ReinUsesLisp | 1 | -20/+46 | |
2018-11-22 | gl_shader_decompiler: Add a message for unimplemented cc generation | ReinUsesLisp | 1 | -23/+46 | |
2018-11-22 | maxwell_3d: Implement alternate blend equations. | bunnei | 1 | -0/+5 | |
- Used by Undertale. | |||||
2018-11-22 | gl_shader_decompiler: Rename internal flag strings | ReinUsesLisp | 1 | -15/+20 | |
2018-11-22 | gl_shader_decompiler: Rename control codes to condition codes | ReinUsesLisp | 1 | -63/+47 | |
2018-11-22 | gl_shader_decompiler: Fix register overwriting on texture calls | ReinUsesLisp | 1 | -60/+78 | |
2018-11-21 | Properly Implemented TXQ Instruction | FernandoS27 | 1 | -2/+12 | |
2018-11-21 | gl_shader_decompiler: Implement BFI_IMM_R | ReinUsesLisp | 1 | -0/+20 | |
2018-11-21 | Removed pre 4.3 ARB extensions | FernandoS27 | 5 | -20/+13 | |
2018-11-21 | Use default values for unknown framebuffer pixel format | FernandoS27 | 1 | -0/+6 | |
2018-11-21 | gl_shader_decompiler: Implement R2P_IMM | ReinUsesLisp | 1 | -0/+28 | |
2018-11-21 | gl_shader_decompiler: Remove UNREACHABLE when setting RZ | ReinUsesLisp | 1 | -2/+1 | |
2018-11-21 | gl_shader_decompiler: Use UNIMPLEMENTED instead of LOG+UNREACHABLE when applicable | ReinUsesLisp | 1 | -371/+258 | |
2018-11-20 | shader_cache: Only lock covered instructions. | Markus Wick | 4 | -8/+24 | |
2018-11-20 | Implemented Fast Layered Copy | FernandoS27 | 2 | -2/+30 | |
2018-11-19 | Eliminated unnessessary memory allocation and copy (#1702) | Frederic L | 1 | -5/+2 | |
2018-11-19 | gl_rasterizer: Remove default clip distance | ReinUsesLisp | 1 | -2/+0 | |
2018-11-18 | drop support for non separate alpha as it seems to cause issues in some games | Rodolfo Bogado | 3 | -61/+35 | |
2018-11-17 | fix sampler configuration, thanks to Marcos for his investigation | Rodolfo Bogado | 2 | -18/+43 | |
2018-11-17 | small type fix | Rodolfo Bogado | 1 | -6/+6 | |
2018-11-17 | add AlphaToCoverage and AlphaToOne | Rodolfo Bogado | 4 | -0/+32 | |
2018-11-17 | add support for fragment_color_clamp | Rodolfo Bogado | 4 | -0/+20 | |
2018-11-17 | add missing MirrorOnceBorder support where supported | Rodolfo Bogado | 1 | -0/+6 | |
2018-11-17 | set border color not depending on the wrap mode | Rodolfo Bogado | 1 | -9/+9 | |
only enable color mask for the first framebuffer id independent blending is disabled | |||||
2018-11-17 | set default value for point size register | Rodolfo Bogado | 1 | -5/+1 | |
2018-11-17 | fix viewport and scissor behavior | Rodolfo Bogado | 4 | -52/+71 | |
2018-11-17 | gl_rasterizer: Skip VB upload if the state is clean. | Markus Wick | 3 | -6/+23 | |
2018-11-15 | gl_rasterizer_chache: Minor cleanup | Frederic Laing | 1 | -3/+3 | |
2018-11-13 | gl_state: Amend compilation warnings | Lioncash | 2 | -3/+4 | |
Makes float -> integral conversions explicit via casts and also silences a sign conversion warning. | |||||
2018-11-13 | Implement ASTC_2D_10X8 & ASTC_2D_10X8_SRGB (#1666) | greggameplayer | 1 | -2/+14 | |
* Implement ASTC_2D_10X8 & ASTC_2D_10X8_SRGB ( needed by Mario+Rabbids Kingdom Battle ) * Small placement correction | |||||
2018-11-11 | Use core extensions when available to set max anisotropic filtering level | Rodolfo Bogado | 1 | -2/+7 | |
2018-11-11 | Improve state management by splitting some of the states id separated function to avoid a full apply overhead | Rodolfo Bogado | 6 | -39/+40 | |
2018-11-11 | Try to fix problems with stencil test in some games, relax translation to opengl enums to avoid crashing and only generate logs of the errors. | Rodolfo Bogado | 2 | -37/+40 | |
2018-11-11 | set sampler max lod, min lod, lod bias and max anisotropy | Rodolfo Bogado | 2 | -11/+22 | |
2018-11-10 | gl_shader_decompiler: Guard out of bound geometry shader input reads | ReinUsesLisp | 4 | -15/+24 | |
Geometry shaders follow a pattern that results in out of bound reads. This pattern is: - VSETP to predicate - Use that predicate to conditionally set a register a big number - Use the register to access geometry shaders At the time of writing this commit I don't know what's the intent of this number. Some drivers argue about these out of bound reads. To avoid this issue, input reads are guarded limiting reads to the highest posible vertex input of the current topology (e.g. points to 1 and triangles to 3). | |||||
2018-11-08 | gl_rasterizer_cache: Remove unnecessary memory allocation and copy in CopySurface | Frederic Laing | 1 | -10/+7 | |
2018-11-08 | gl_rasterizer: Fix compiler warnings | Frederic Laing | 1 | -2/+2 | |
2018-11-08 | rasterizer_cache: Remove reliance on the System singleton | Lioncash | 8 | -6/+22 | |
Rather than have a transparent dependency, we can make it explicit in the interface. This also gets rid of the need to put the core include in a header. | |||||
2018-11-08 | gl_resource_manager: Amend clang-format discrepancies | Lioncash | 1 | -4/+2 | |
Fixes the buildbot. | |||||
2018-11-08 | Correct issue where texturelod could not be applied to 2darrayshadow | FernandoS27 | 1 | -1/+5 | |
2018-11-07 | Implement 3 coordinate array in TEXS instruction | FernandoS27 | 1 | -6/+6 | |
2018-11-06 | gl_rasterizer: Skip VAO binding if the state is clean. | Markus Wick | 1 | -2/+7 | |
2018-11-06 | gl_rasterizer: Split VAO and VB setup functions. | Markus Wick | 2 | -5/+16 | |
2018-11-06 | gl_rasterizer_cache: Add profiles for Copy and Blit. | Markus Wick | 1 | -2/+6 | |
They were missed, and Copy is very high in profile here. It doesn't block the GPU, but it stalls the driver thread. So with our bad GL instructions, this might block quite a while. | |||||
2018-11-06 | gl_resource_manager: Profile creation and deletion. | Markus Wick | 1 | -0/+42 | |
2018-11-06 | gl_stream_buffer: Profile orphaning of stream buffer. | Markus Wick | 1 | -0/+5 | |
This serialize to the driver thread and so it may block for a while. So if it is in the benchmark, we get noticed if it happens too often. | |||||
2018-11-06 | gl_resource_manager: Split implementations in .cpp file. | Markus Wick | 4 | -114/+166 | |
Those implementations are quite costly, so there is no need to inline them to the caller. Ressource deletion is often a performance bug, so in this way, we support to add breakpoints to them. | |||||
2018-11-05 | Add support to color mask to avoid issues in blending caused by wrong values in the alpha channel in some render targets. | Rodolfo Bogado | 4 | -22/+59 | |
2018-11-05 | Implement multi-target viewports and blending | Rodolfo Bogado | 4 | -126/+231 | |
2018-11-02 | correct syntax | greggameplayer | 1 | -4/+3 | |
2018-11-02 | Fix ASTC Decompressor to support depth parameter | FernandoS27 | 2 | -12/+11 | |
2018-11-01 | Fix ASTC formats | FernandoS27 | 1 | -4/+11 | |
2018-11-01 | Implemented ASTC 5x5 | FernandoS27 | 1 | -1/+5 | |
2018-11-01 | Implement Cube Arrays | FernandoS27 | 2 | -0/+16 | |
2018-10-31 | Implement SurfaceTarget Texture2DArray | greggameplayer | 1 | -0/+1 | |
( needed by Mario+Rabbids Kingdom Battle ) | |||||
2018-10-31 | Improve OpenGL state handling | Rodolfo Bogado | 3 | -105/+158 | |
2018-10-30 | video_core: Move surface declarations out of gl_rasterizer_cache | ReinUsesLisp | 3 | -898/+68 | |
2018-10-30 | Assert Control Codes Generation | FernandoS27 | 1 | -0/+98 | |
2018-10-30 | global: Use std::optional instead of boost::optional (#1578) | Frederic L | 9 | -72/+80 | |
* get rid of boost::optional * Remove optional references * Use std::reference_wrapper for optional references * Fix clang format * Fix clang format part 2 * Adressed feedback * Fix clang format and MacOS build | |||||
2018-10-29 | video_core: Move OpenGL specific utils to its renderer | ReinUsesLisp | 4 | -4/+59 | |
2018-10-29 | renderer_opengl: Correct bpp value for ASTC_2D_8X5_SRGB | Rodolfo Bogado | 1 | -1/+1 | |
2018-10-29 | Assert Control Flow Instructions using Control Codes | FernandoS27 | 1 | -2/+26 | |
2018-10-29 | Fixed black textures, pixelation and we no longer require to auto-generate mipmaps | FernandoS27 | 1 | -14/+2 | |
2018-10-29 | Fixed mipmap block autosizing algorithm | FernandoS27 | 2 | -13/+19 | |
2018-10-29 | Fixed Invalid Image size and Mipmap calculation | FernandoS27 | 1 | -4/+7 | |
2018-10-29 | Fixed Block Resizing algorithm and Clang Format | FernandoS27 | 3 | -12/+19 | |
2018-10-29 | Implement Mip Filter | FernandoS27 | 4 | -10/+33 | |
2018-10-29 | Zero out memory region of recreated surface before flushing | FernandoS27 | 1 | -0/+2 | |
2018-10-28 | Implement Mipmaps | FernandoS27 | 2 | -101/+211 | |
2018-10-28 | Enable alpha channel for DXT1 texture format | Michael | 1 | -2/+2 | |
2018-10-28 | Correct bpp value for ASTC_2D_8X5 | Tobias | 1 | -1/+1 | |
2018-10-28 | Refactor precise usage and add FMNMX, MUFU, FMUL32 and FADD332 | FernandoS27 | 2 | -74/+37 | |
2018-10-28 | Implement sRGB Support, including workarounds for nvidia driver issues and QT sRGB support | Rodolfo Bogado | 6 | -39/+186 | |
2018-10-28 | Improved Shader accuracy on Vertex and Geometry Shaders with FFMA, FMUL and FADD | FernandoS27 | 2 | -6/+58 | |
2018-10-27 | Implement Default Block Height for each format | FernandoS27 | 1 | -0/+62 | |
2018-10-27 | gl_rasterizer_cache: Fix compiler warning | Frederic Laing | 1 | -2/+2 | |
2018-10-26 | gl_rasterizer: Implement primitive restart. | bunnei | 4 | -0/+31 | |
2018-10-26 | gl_rasterizer: Implement depth range. | bunnei | 4 | -13/+20 | |
2018-10-24 | Implemented LD_L and ST_L | FernandoS27 | 1 | -12/+76 | |
2018-10-24 | Implement Shader Local Memory | FernandoS27 | 1 | -0/+37 | |
2018-10-23 | Implement PointSize | FernandoS27 | 2 | -5/+27 | |
2018-10-23 | Fixed Layered Textures Loading and Cubemaps | FernandoS27 | 2 | -69/+106 | |
2018-10-23 | gl_shader_decompiler: Implement VSETP | ReinUsesLisp | 1 | -0/+24 | |
2018-10-23 | gl_shader_decompiler: Abstract VMAD into a video subset | ReinUsesLisp | 1 | -72/+69 | |
2018-10-23 | Added Saturation to FMUL32I | FernandoS27 | 1 | -3/+4 | |
2018-10-22 | Assert that multiple render targets are not set while alpha testing | FernandoS27 | 3 | -3/+17 | |
2018-10-22 | Use standard UBO and fix/stylize the code | FernandoS27 | 8 | -91/+51 | |
2018-10-22 | Cache uniform locations and restructure the implementation | FernandoS27 | 3 | -33/+29 | |
2018-10-22 | Remove SyncAlphaTest and clang format | FernandoS27 | 4 | -8/+9 | |
2018-10-22 | Added Alpha Func | FernandoS27 | 2 | -3/+43 | |
2018-10-22 | Implemented Alpha Testing | FernandoS27 | 5 | -2/+56 | |
2018-10-22 | Fixed FSETP and FSET | FernandoS27 | 1 | -28/+12 | |
2018-10-22 | Fixed VAOs Float types only returning GL_FLOAT in cases that they had to return GL_HALF_FLOAT | FernandoS27 | 1 | -2/+14 | |
2018-10-20 | gl_shader_decompiler: Allow std::move to function in SetPredicate | Lioncash | 1 | -1/+1 | |
If the variable being moved is const, then std::move will always perform a copy (since it can't actually move the data). | |||||
2018-10-20 | gl_shader_decompiler: Get rid of variable shadowing warnings | Lioncash | 1 | -2/+2 | |
A variable with the same name was previously declared in an outer scope. | |||||
2018-10-20 | gl_shader_decompiler: Fix a few comment typos | Lioncash | 1 | -3/+4 | |
2018-10-20 | gl_shader_decompiler: Move position varying declaration back to gl_shader_gen | ReinUsesLisp | 3 | -13/+9 | |
The intention of declaring them in gl_shader_decompiler was to be able to use blocks to implement geometry shaders. But that wasn't needed in the end and it caused issues when both vertex stages were being used, resulting in a redeclaration of "position". | |||||
2018-10-19 | fermi_2d: Add support for more accurate surface copies. | bunnei | 1 | -0/+6 | |
2018-10-18 | gl_shader_decompiler: Implement PBK and BRK | ReinUsesLisp | 1 | -19/+36 | |
2018-10-18 | Implement Reinterpret Surface, to accurately blit 3D textures | FernandoS27 | 1 | -2/+4 | |
2018-10-18 | Implement 3D Textures | FernandoS27 | 3 | -0/+6 | |
2018-10-18 | gl_rasterizer_cache: Remove unnecessary block_depth=1 on Flush. | bunnei | 1 | -1/+0 | |
2018-10-18 | gl_rasterizer_cache: Remove unnecessary temporary buffer with unswizzle. | bunnei | 1 | -5/+2 | |
2018-10-16 | gl_rasterizer_cache: Use AccurateCopySurface for use_accurate_gpu_emulation. | bunnei | 2 | -2/+18 | |
2018-10-16 | config: Rename use_accurate_framebuffers -> use_accurate_gpu_emulation. | bunnei | 2 | -4/+4 | |
- This will be used as a catch-all for slow-but-accurate GPU emulation paths. | |||||
2018-10-16 | rasterizer_cache: Refactor to support in-order flushing. | bunnei | 5 | -31/+16 | |
2018-10-16 | gl_rasterizer_cache: Refactor to only call GetRegionEnd on surface creation. | bunnei | 2 | -16/+23 | |
2018-10-16 | gl_rasterizer_cache: Only flush when use_accurate_framebuffers is enabled. | bunnei | 1 | -1/+6 | |
2018-10-16 | gl_rasterizer_cache: Separate guest and host surface size managment. | bunnei | 2 | -92/+94 | |
2018-10-16 | gl_rasterizer_cache: Rename GetGLBytesPerPixel to GetBytesPerPixel. | bunnei | 2 | -17/+18 | |
- This does not really have anything to do with OpenGL. | |||||
2018-10-16 | gl_rasterizer_cache: Remove unused FlushSurface method. | bunnei | 2 | -7/+0 | |
2018-10-16 | gl_rasterizer: Implement flushing. | bunnei | 1 | -1/+25 | |
2018-10-16 | gl_rasterizer_cache: Remove usage of Memory::Read/Write functions. | bunnei | 1 | -13/+8 | |
- These cannot be used within the cache, as they change cache state. | |||||
2018-10-16 | gl_rasterizer_cache: Clamp cached surface size to mapped GPU region size. | bunnei | 2 | -19/+37 | |
2018-10-16 | rasterizer_cache: Reintroduce method for flushing. | bunnei | 2 | -0/+6 | |
2018-10-16 | gl_rasterizer_cache: Reintroduce code for handling swizzle and flush to guest RAM. | bunnei | 2 | -28/+119 | |
2018-10-15 | gl_shader_decompiler: Fixup style inconsistencies | ReinUsesLisp | 1 | -5/+3 | |
2018-10-15 | gl_rasterizer: Silence implicit cast warning in glBindBufferRange | ReinUsesLisp | 1 | -1/+2 | |
2018-10-15 | gl_shader_decompiler: Implement HSET2_R | ReinUsesLisp | 1 | -0/+44 | |
2018-10-15 | gl_shader_decompiler: Implement HSETP2_R | ReinUsesLisp | 1 | -0/+45 | |
2018-10-15 | gl_shader_decompiler: Implement HFMA2 instructions | ReinUsesLisp | 1 | -0/+53 | |
2018-10-15 | gl_shader_decompiler: Implement HADD2_IMM and HMUL2_IMM | ReinUsesLisp | 1 | -0/+43 | |
2018-10-15 | gl_shader_decompiler: Implement non-immediate HADD2 and HMUL2 instructions | ReinUsesLisp | 1 | -0/+50 | |
2018-10-15 | gl_shader_decompiler: Setup base for half float unpacking and setting | ReinUsesLisp | 1 | -0/+78 | |
2018-10-14 | Implement Arrays on Tex Instruction | FernandoS27 | 1 | -14/+55 | |
2018-10-14 | Fix TLDS | FernandoS27 | 1 | -1/+5 | |
2018-10-13 | Fix a Crash on Zelda BotW and Splatoon 2, and simplified LoadGLBuffer | FernandoS27 | 1 | -18/+1 | |
2018-10-13 | Propagate depth and depth_block on modules using decoders | FernandoS27 | 1 | -14/+18 | |
2018-10-13 | Added ASTC 5x4; 8x5 | Hexagon12 | 2 | -6/+30 | |
2018-10-11 | gl_shader_decompiler: Implement VMAD | ReinUsesLisp | 1 | -0/+82 | |
2018-10-10 | Add memory Layout to Render Targets and Depth Buffers | FernandoS27 | 2 | -19/+19 | |
2018-10-10 | Fixed block height settings for RenderTargets and Depth Buffers, and added block width and block depth | FernandoS27 | 2 | -6/+26 | |
2018-10-09 | gl_shader_decompiler: Remove unused variables in TMML's implementation | Lioncash | 1 | -7/+3 | |
Given "y" isn't always used, but "x" is, we can rearrange this to avoid unused variable warnings by changing the names of op_a and op_b | |||||
2018-10-09 | Implement Scissor Test | FernandoS27 | 1 | -4/+9 | |
2018-10-09 | Assert Scissor tests | FernandoS27 | 2 | -0/+15 | |
2018-10-07 | gl_shader_decompiler: Move position varying location from 15 to 0 and apply an offset | ReinUsesLisp | 1 | -6/+10 | |
2018-10-07 | gl_shader_decompiler: Implement geometry shaders | ReinUsesLisp | 9 | -107/+410 | |
2018-10-07 | gl_rasterizer: Fixup undefined behaviour in SetupDraw | ReinUsesLisp | 1 | -0/+1 | |
2018-10-06 | Implemented Depth Compare and Shadow Samplers | FernandoS27 | 5 | -64/+212 | |
2018-10-06 | gl_rasterizer: Add rasterizer cache code to handle accerated fermi copies. | bunnei | 4 | -9/+56 | |
2018-10-06 | gl_rasterizer_cache: Implement a simpler surface copy using glCopyImageSubData. | bunnei | 1 | -0/+21 | |
2018-10-04 | gl_rasterizer: Implement quads topology | ReinUsesLisp | 6 | -46/+228 | |
2018-10-03 | Implemented Texture Processing Modes in TEXS and TLDS | FernandoS27 | 1 | -5/+42 | |
2018-10-01 | gl_rasterizer: Fixup unassigned point sizes | ReinUsesLisp | 1 | -1/+4 | |
2018-09-30 | gl_rasterizer_cache: Fixes to how we do render to cubemap. | bunnei | 2 | -32/+5 | |
- Fixes issues with Splatoon 2. | |||||
2018-09-30 | gl_rasterizer_cache: Add check for array rendering to cubemap texture. | bunnei | 1 | -0/+8 | |
2018-09-30 | gl_rasterizer_cache: Implement render to cubemap. | bunnei | 2 | -119/+216 | |
2018-09-30 | gl_shader_decompiler: TEXS: Implement TextureType::TextureCube. | bunnei | 1 | -0/+8 | |
2018-09-30 | gl_rasterizer_cache: Add support for SurfaceTarget::TextureCubemap. | bunnei | 2 | -1/+36 | |
2018-09-30 | gl_rasterizer_cache: Implement LoadGLBuffer for Texture2DArray. | bunnei | 1 | -0/+8 | |
2018-09-30 | gl_rasterizer_cache: Update BlitTextures to support non-Texture2D ColorTexture surfaces. | bunnei | 1 | -23/+88 | |
2018-09-30 | gl_rasterizer_cache: Track texture target and depth in the cache. | bunnei | 1 | -2/+3 | |
2018-09-30 | gl_rasterizer_cache: Workaround for Texture2D -> Texture2DArray scenario. | bunnei | 3 | -6/+21 | |
2018-09-30 | gl_rasterizer_cache: Keep track of surface 2D size separately from total size. | bunnei | 2 | -32/+46 | |
2018-09-30 | Fix trailing whitespace | raven02 | 1 | -1/+4 | |
2018-09-28 | video_core: Implement point_size and add point state sync | ReinUsesLisp | 4 | -0/+21 | |
2018-09-28 | gl_state: Pack sampler bindings into a single ARB_multi_bind | ReinUsesLisp | 4 | -8/+24 | |
2018-09-26 | video_core: Add asserts for CS, TFB and alpha testing | ReinUsesLisp | 2 | -0/+28 | |
Add asserts for compute shader dispatching, transform feedback being enabled and alpha testing. These have in common that they'll probably break rendering without logging. | |||||
2018-09-23 | Added glObjectLabels for renderdoc for textures and shader programs (#1384) | David | 3 | -0/+26 | |
* Added glObjectLabels for renderdoc for textures and shader programs * Changed hardcoded "Texture" name to reflect the texture type instead * Removed string initialize | |||||
2018-09-23 | correct BC6H | greggameplayer | 1 | -2/+2 | |
2018-09-22 | gl_state: Remove unused type alias | Lioncash | 2 | -4/+1 | |
This isn't used anywhere within the header, so we can remove it, along with the include that was previously necessary. This also uncovers an indirect include in the cpp file for the assertion macros. | |||||
2018-09-21 | gl_stream_buffer: Fix use of bitwise OR instead of logical OR in Map() | Lioncash | 1 | -1/+1 | |
This was very likely intended to be a logical OR based off the conditioning and testing of inversion in one case. Even if this was intentional, this is the kind of non-obvious thing one should be clarifying with a comment. | |||||
2018-09-21 | RasterizerGL: Use the correct framebuffer when clearing via the CLEAR_BUFFERS register. | Subv | 1 | -1/+1 | |
Previously we were clearing the default backbuffer framebuffer. Found thanks to a Piglit test :) | |||||
2018-09-19 | gl_rasterizer: Fix StartAddress handling with indexed draw calls. | Markus Wick | 1 | -6/+7 | |
We uploaded the wrong data before. So the offset on the host GPU pointer may work for the first vertices, the last ones run out bounds. Let's just offset the upload instead. | |||||
2018-09-18 | Implemented Internal Flags | FernandoS27 | 1 | -13/+35 | |
2018-09-18 | gl_shader_decompiler: Avoid truncation warnings within LD_A and ST_A code | Lioncash | 1 | -4/+4 | |
These are internally stored as u64 values, so using u32 here causes truncation warnings. Instead, we can just use u64 and preserve the bit width. | |||||
2018-09-17 | Implemented I2I.CC on the NEU control code, used by SMO | FernandoS27 | 1 | -13/+17 | |
2018-09-17 | Implemented CSETP | FernandoS27 | 1 | -14/+38 | |
2018-09-17 | Implemented Control Codes | FernandoS27 | 1 | -0/+15 | |
2018-09-17 | Added asserts for texture misc modes to texture instructions | FernandoS27 | 1 | -2/+45 | |
2018-09-17 | Add 1D sampler for TLDS - TexelFetch (Mario Rabbids) | raven02 | 1 | -7/+12 | |
2018-09-16 | Implement ASTC_2D_8X8 (Bayonetta 2) | raven02 | 2 | -6/+18 | |
2018-09-15 | Implement RenderTargetFormat::BGR5A1_UNORM (Pokken Tournament DX) | raven02 | 1 | -0/+3 | |
2018-09-15 | Shaders: Implemented multiple-word loads and stores to and from attribute memory. | Subv | 1 | -6/+49 | |
This seems to be an optimization performed by nouveau. | |||||
2018-09-15 | Port #4182 from Citra: "Prefix all size_t with std::" | fearlessTobi | 13 | -100/+104 | |
2018-09-14 | gl_shader_decompiler: Get rid of variable shadowing within LEA instructions | Lioncash | 1 | -2/+0 | |
These variables are already defined within an outer scope. | |||||
2018-09-13 | Use ARB_multi_bind for uniform buffers (#1287) | ReinUsesLisp | 2 | -3/+23 | |
* gl_rasterizer: use ARB_multi_bind for uniform buffers * address feedback | |||||
2018-09-13 | gl_rasterizer_cache: B5G6R5U should use GL_RGB8 as an internal format. | bunnei | 1 | -1/+1 | |
- Fixes a regression with Sonic Mania with ARB_texture_storage. | |||||
2018-09-12 | Implemented Texture Processing Modes | FernandoS27 | 1 | -1/+33 | |
2018-09-12 | gl_rasterizer_cache: Always blit on recreate, regardless of format. | bunnei | 1 | -6/+10 | |
- Fixes several rendering issues with Super Mario Odyssey. | |||||
2018-09-12 | gl_shader_cache: Remove cache_width/cache_height. | bunnei | 2 | -12/+2 | |
- This was once an optimization, but we no longer need it with the cache reserve. - This is also inaccurate. | |||||
2018-09-11 | gl_rasterizer: Use ARB_texture_storage. | Markus Wick | 1 | -11/+8 | |
It allows us to use texture views and it reduces the overhead within the GPU driver. But it disallows us to reallocate the texture, but we don't do so anyways. In the end, it is the new way to allocate textures, so there is no need to use the old way. | |||||
2018-09-11 | Implemented LEA and PSET | FernandoS27 | 1 | -0/+91 | |
2018-09-11 | Replace old FragmentHeader for the new Header | FernandoS27 | 1 | -22/+3 | |
2018-09-11 | Implemented (Partialy) Shader Header | FernandoS27 | 1 | -2/+4 | |
2018-09-11 | Fixed renderdoc input/output textures not working due to render targets | David Marcec | 2 | -2/+9 | |
2018-09-10 | rasterizer: Drop unused handler. | Markus Wick | 2 | -3/+0 | |
This virtual function is called in a very hot spot, and it does nothing. If this kind of feature is required, please be more specific and add callbacks in the switch statement within Maxwell3D::WriteReg. There is no point in having another switch statement within the rasterizer. | |||||
2018-09-10 | gl_rasterizer_cache: Only use depth for applicable texture formats. | bunnei | 1 | -6/+22 | |
- Fixes an issue with Octopath Traveler leaving stale data here. | |||||
2018-09-10 | gl_rasterizer: Implement clear for non-zero render targets. | bunnei | 2 | -50/+66 | |
- Several misc. changes to ConfigureFramebuffers in support of this. | |||||
2018-09-10 | gl_rasterizer_cache: Implement RenderTargetFormat::BGRA8_SRGB. | bunnei | 1 | -0/+2 | |
- Used by Octopath Traveler (with multiple render targets). | |||||
2018-09-10 | gl_rasterizer: Implement multiple color attachments. | bunnei | 4 | -131/+74 | |
2018-09-10 | Implemented TMML | FernandoS27 | 1 | -0/+48 | |
2018-09-09 | Implemented TXQ dimension query type, used by SMO. | FernandoS27 | 1 | -0/+20 | |
2018-09-09 | video_core: fixed arithmetic overflow warnings & improved code style | Patrick Elsässer | 5 | -89/+101 | |
- Fixed all warnings, for renderer_opengl items, which were indicating a possible incorrect behavior from integral promotion rules and types larger than those in which arithmetic is typically performed. - Added const for variables where possible and meaningful. - Added constexpr where possible. | |||||
2018-09-09 | Port Citra #4047 & #4052: add change background color support | tech4me | 1 | -0/+6 | |
2018-09-08 | gl_rasterizer: Use baseInstance instead of moving the buffer points. | bunnei | 1 | -21/+25 | |
This hopefully helps our cache not to redundant upload the vertex buffer. # Conflicts: # src/video_core/renderer_opengl/gl_rasterizer.cpp | |||||
2018-09-08 | video_core: Arithmetic overflow warning fix for gl_rasterizer (#1262) | Patrick Elsässer | 1 | -12/+14 | |
* video_core: Arithmetic overflow fix for gl_rasterizer - Fixed warnings, which were indicating incorrect behavior from integral promotion rules and types larger than those in which arithmetic is typically performed. - Added const for variables where possible and meaningful. * Changed the casts from C to C++ style Changed the C-style casts to C++ casts as proposed. Took also care about signed / unsigned behaviour. | |||||
2018-09-08 | gl_rasterizer_cache: Improve accuracy of RecreateSurface for non-2D textures. | bunnei | 2 | -27/+45 | |
2018-09-08 | gl_rasterizer_cache: Partially implement several non-2D texture types. | bunnei | 1 | -30/+111 | |
2018-09-08 | gl_shader_decompiler: Partially implement several non-2D texture types (Subv). | bunnei | 2 | -32/+143 | |
2018-09-08 | gl_rasterizer: Implement texture wrap mode p. | bunnei | 2 | -2/+8 | |
2018-09-08 | gl_rasterizer_cache: Track texture depth. | bunnei | 2 | -2/+5 | |
2018-09-08 | gl_rasterizer_cache: Remove impl. of FlushGLBuffer. | bunnei | 1 | -34/+1 | |
- Will not work for non-2d textures, and was not used anyways. | |||||
2018-09-08 | gl_rasterizer_cache: Keep track of texture type per surface. | bunnei | 3 | -32/+84 | |
2018-09-08 | gl_rasterizer_cache: Remove unused DownloadGLTexture. | bunnei | 2 | -51/+0 | |
2018-09-08 | gl_state: Keep track of texture target. | bunnei | 5 | -26/+28 | |
2018-09-06 | gl_rasterizer: Call state.Apply only once on SetupShaders. | bunnei | 1 | -4/+2 | |
2018-09-06 | gl_shader_decompiler: Implement saturate mode for IPA. | bunnei | 1 | -1/+5 | |
2018-09-06 | gl_buffer_cache: Default initialize member variables | Lioncash | 1 | -3/+3 | |
Ensures that the cache always has a deterministic initial state. | |||||
2018-09-06 | gl_buffer_cache: Make GetHandle() a const member function | Lioncash | 2 | -2/+2 | |
GetHandle() internally calls GetHandle() on the stream_buffer instance, which is a const member function, so this can be made const as well. | |||||
2018-09-06 | gl_buffer_cache: Remove unnecessary includes | Lioncash | 2 | -2/+4 | |
2018-09-06 | gl_buffer_cache: Make constructor explicit | Lioncash | 1 | -1/+1 | |
Implicit conversions during construction isn't desirable here. | |||||
2018-09-06 | gl_shader_gen: Initialize position. | Markus Wick | 1 | -0/+1 | |
IMO the old code is fine, but nvidia raises shader compiler warnings. Trivial fix through... | |||||
2018-09-06 | Implemented IPA Properly | FernandoS27 | 1 | -47/+86 | |
2018-09-05 | gl_rasterizer: Skip TODO log. | Markus Wick | 1 | -1/+1 | |
This is called ~3k times per frame in SMO ingame. My laptop spends ~3ms per frame on allocating and freeing this string. Let's just stop printing this kind of redundant information. | |||||
2018-09-05 | gl_rasterizer: Implement a VAO cache. | Markus Wick | 2 | -51/+53 | |
This patch caches VAO objects instead of re-emiting all pointers per draw call. Configuring this pointers is known as a fast task, but it yields too many GL calls. So for better performance, just bind the VAO instead of 16 pointers. | |||||
2018-09-05 | renderer_opengl: Implement a buffer cache. | Markus Wick | 4 | -86/+181 | |
The idea of this cache is to avoid redundant uploads. So we are going to cache the uploaded buffers within the stream_buffer and just reuse the old pointers. The next step is to implement a VBO cache on GPU memory, but for now, I want to check the overhead of the cache management. Fetching the buffer over PCI-E should be quite fast. | |||||
2018-09-04 | gl_shader_cache: Use an u32 for the binding point cache. | Markus Wick | 4 | -15/+23 | |
The std::string generation with its malloc and free requirement was a noticeable overhead. Also switch to an ordered_map to avoid the std::hash call. As those maps usually have a size of two elements, the lookup time shall not matter. | |||||
2018-09-04 | Update microprofile scopes. | Markus Wick | 1 | -3/+11 | |
Blame the subsystems which deserve the blame :) The updated list is not complete, just the ones I've spotted on random sampling the stack trace. | |||||
2018-09-02 | gl_shader_decompiler: Use used_shaders member variable directly within GenerateDeclarations() | Lioncash | 1 | -1/+1 | |
Using the getter function intended for external code here makes an unnecessary copy of the already-accessible used_shaders vector. | |||||
2018-09-01 | Removed saturate assert | David Marcec | 1 | -1/+0 | |
Unneeded as we already implement it | |||||
2018-09-01 | Removed saturate assert | David Marcec | 1 | -1/+0 | |
Saturate already implemented | |||||
2018-09-01 | Changed tab5980_0 default from 0 -> 1 | David Marcec | 1 | -2/+2 | |
2018-09-01 | Added FMUL asserts | David Marcec | 1 | -0/+10 | |
2018-09-01 | Added FFMA asserts | David Marcec | 1 | -0/+7 | |
2018-09-01 | Added assert for TEXS nodep | David Marcec | 1 | -0/+2 | |
2018-09-01 | Added better asserts to IPA, Renamed IPA modes to match mesa | David Marcec | 1 | -4/+8 | |
IpaMode is changed to IpaInterpMode IpaMode is suppose to be 2 bits not 3 Added IpaSampleMode Added Saturate Renamed modes based on https://github.com/mesa3d/mesa/blob/d27c7918916cdc8092959124955f887592e37d72/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp#L2530 | |||||
2018-08-31 | core/core: Replace includes with forward declarations where applicable | Lioncash | 1 | -0/+2 | |
The follow-up to e2457418dae19b889b2ad85255bb95d4cd0e4bff, which replaces most of the includes in the core header with forward declarations. This makes it so that if any of the headers the core header was previously including change, then no one will need to rebuild the bulk of the core, due to core.h being quite a prevalent inclusion. This should make turnaround for changes much faster for developers. | |||||
2018-08-31 | gl_rasterizer_cache: Use accurate framebuffer setting for accurate copies. | bunnei | 2 | -73/+54 | |
2018-08-31 | gl_rasterizer_cache: Also use reserve cache for RecreateSurface. | bunnei | 2 | -24/+18 | |
2018-08-31 | gl_renderer: Cache textures, framebuffers, and shaders based on CPU address. | bunnei | 6 | -93/+46 | |
2018-08-31 | gl_rasterizer: Fix issues with the rasterizer cache. | bunnei | 2 | -0/+46 | |
- Use a single cached page map. - Fix calculation of ending page. | |||||
2018-08-31 | Implement BC6H_UF16 & BC6H_SF16 (#1092) | greggameplayer | 2 | -31/+51 | |
* Implement BC6H_UF16 & BC6H_SF16 Require by ARMS * correct coding style * correct coding style part 2 | |||||
2018-08-31 | core: Make the main System class use the PImpl idiom | Lioncash | 1 | -3/+4 | |
core.h is kind of a massive header in terms what it includes within itself. It includes VFS utilities, kernel headers, file_sys header, ARM-related headers, etc. This means that changing anything in the headers included by core.h essentially requires you to rebuild almost all of core. Instead, we can modify the System class to use the PImpl idiom, which allows us to move all of those headers to the cpp file and forward declare the bulk of the types that would otherwise be included, reducing compile times. This change specifically only performs the PImpl portion. | |||||
2018-08-31 | Report correct shader size. | Markus Wick | 1 | -1/+1 | |
Seems like this was an oversee in regards to 1fd979f50a9f4c21fa8cafba7268d959e3076924 It changed GLShader::ProgramCode to a std::vector, so sizeof is wrong. | |||||
2018-08-31 | Added predicate comparison GreaterEqualWithNan | Hexagon12 | 1 | -3/+3 | |
2018-08-31 | gl_shader_decompiler: Implement POPC (#1203) | Laku | 1 | -0/+9 | |
* Implement POPC * implement invert | |||||
2018-08-29 | Shaders: Implemented IADD3 | tech4me | 1 | -0/+61 | |
2018-08-29 | gl_shader_decompiler: Improve IPA for Pass mode with Position attribute. | bunnei | 1 | -1/+33 | |
2018-08-28 | gl_shader_cache: Remove unused program_code vector in GetShaderAddress() | Lioncash | 1 | -2/+1 | |
Given std::vector is a type with a non-trivial destructor, this variable cannot be optimized away by the compiler, even if unused. Because of that, something that was intended to be fairly lightweight, was actually allocating 32KB and deallocating it at the end of the function. | |||||
2018-08-28 | gpu: Make memory_manager private | Lioncash | 2 | -10/+10 | |
Makes the class interface consistent and provides accessors for obtaining a reference to the memory manager instance. Given we also return references, this makes our more flimsy uses of const apparent, given const doesn't propagate through pointers in the way one would typically expect. This makes our mutable state more apparent in some places. | |||||
2018-08-28 | gl_rasterizer: Remove unused variables | Lioncash | 1 | -2/+0 | |
2018-08-28 | renderer_opengl: Implement a new shader cache. | bunnei | 8 | -285/+248 | |
2018-08-28 | gl_rasterizer_cache: Update to use RasterizerCache base class. | bunnei | 3 | -132/+20 | |
2018-08-24 | gl_rasterizer: Correct assertion condition in SyncLogicOpState() | Lioncash | 1 | -1/+2 | |
Previously the assert would always be hit, since it was the equivalent of: array == nullptr, which is never true. | |||||
2018-08-23 | gl_rasterizer_cache: Blit when possible on RecreateSurface. | bunnei | 1 | -5/+12 | |
2018-08-23 | gl_rasterizer_cache: Reserve surfaces that have already been created for later use. | bunnei | 2 | -3/+61 | |
2018-08-23 | gl_rasterizer_cache: Remove assert for RecreateSurface type. | bunnei | 1 | -1/+0 | |
2018-08-23 | gl_rasterizer_cache: Implement compressed texture copies. | bunnei | 1 | -8/+18 | |
2018-08-23 | gl_rasterizer: Implement stencil test. | bunnei | 3 | -4/+58 | |
- Used by Splatoon 2. | |||||
2018-08-23 | gl_rasterizer: Implement partial color clear and stencil clear. | bunnei | 1 | -12/+42 | |
2018-08-23 | gl_state: Update to handle stencil front/back face separately. | bunnei | 2 | -33/+38 | |
2018-08-22 | gl_shader_gen: Make ShaderSetup's constructor explicit | Lioncash | 1 | -1/+1 | |
Prevents implicit conversions. | |||||
2018-08-22 | gl_shader_gen: Use a std::vector to represent program code instead of std::array | Lioncash | 2 | -11/+16 | |
While convenient as a std::array, it's also quite a large set of data as well (32KB). It being an array also means data cannot be std::moved. Any situation where the code is being set or relocated means that a full copy of that 32KB data must be done. If we use a std::vector we do need to allocate on the heap, however, it does allow us to std::move the data we have within the std::vector into another std::vector instance, eliminating the need to always copy the program data (as std::move in this case would just transfer the pointers and bare necessities over to the new vector instance). | |||||
2018-08-22 | more fixes | Laku | 1 | -6/+7 | |
2018-08-22 | fixes | Laku | 1 | -6/+12 | |
2018-08-22 | renderer_opengl: Namespace OpenGL code | Lioncash | 20 | -22/+69 | |
Namespaces all OpenGL code under the OpenGL namespace. Prevents polluting the global namespace and allows clear distinction between other renderers' code in the future. | |||||
2018-08-22 | remove debug logging | Laku | 1 | -2/+0 | |
2018-08-22 | implement lop3 | Laku | 1 | -0/+36 | |
2018-08-22 | maxwell_to_gl: Implement PrimitiveTopology::Lines | OatmealDome | 1 | -0/+2 | |
Used by Splatoon 2's debug menu. | |||||
2018-08-22 | Revert "Shader: Use the right sampler type in the TEX, TEXS and TLDS instructions." | bunnei | 2 | -153/+31 | |
- This reverts commit 3ef4b3d4b445960576f10d1ba6521580d03e3da8. - This commit had broken a lot of games. We really should do a full implementation of this in one change. | |||||
2018-08-21 | renderer_opengl: Use LOG_DEBUG for GL_DEBUG_SEVERITY_NOTIFICATION and GL_DEBUG_SEVERITY_LOW logs | Lioncash | 1 | -1/+1 | |
LOG_TRACE is only enabled on debug builds which can be quite slow when trying to debug graphics issues. Instead we can log the messages to the debug log, which is available on both release and debug builds. | |||||
2018-08-21 | gl_stream_buffer: Add missing header guard | Lioncash | 1 | -0/+2 | |
Prevents potential compilation errors from occuring due to multiple inclusions | |||||
2018-08-21 | Shaders: Implement depth writing in fragment shaders. | Subv | 1 | -1/+6 | |
We'll write <last color output reg + 2> to gl_FragDepth. | |||||
2018-08-21 | gl_shader_decompiler: Implement Texture3D for TEXS. | bunnei | 1 | -0/+7 | |
2018-08-21 | gl_shader_decompiler: Implement TextureCube for TEX. | bunnei | 1 | -0/+8 | |
2018-08-21 | Shaders: Fixed the coords in TEX with Texture2D. | Subv | 1 | -1/+1 | |
The X and Y coordinates should be in gpr8 and gpr8+1, respectively. This fixes the cutscene rendering in Sonic Mania. | |||||
2018-08-21 | Shaders: Log and crash when using an unimplemented texture type in a texture sampling instruction. | Subv | 1 | -5/+14 | |
2018-08-21 | GPU: Implemented the logic op functionality of the GPU. | Subv | 3 | -0/+61 | |
This will ASSERT if blending is enabled at the same time as logic ops. | |||||
2018-08-21 | GLState: Allow enabling/disabling GL_COLOR_LOGIC_OP independently from blending. | Subv | 2 | -6/+19 | |
2018-08-21 | rasterizer_interface: Remove ScreenInfo from AccelerateDraw()'s signature | Lioncash | 4 | -14/+13 | |
This is an OpenGL renderer-specific data type. Given that, this type shouldn't be used within the base interface for the rasterizer. Instead, we can pass this information to the rasterizer via reference. | |||||
2018-08-21 | renderer_base: Make creation of the rasterizer, the responsibility of the renderers themselves | Lioncash | 2 | -3/+12 | |
Given we use a base-class type within the renderer for the rasterizer (RasterizerInterface), we want to allow renderers to perform more complex initialization if they need to do such a thing. This makes it important to reserve type information. Given the OpenGL renderer is quite simple settings-wise, this is just a simple shuffling of the initialization code. For something like Vulkan however this might involve doing something like: // Initialize and call rasterizer-specific function that requires // the full type of the instance created. auto raster = std::make_unique<VulkanRasterizer>(some, params); raster->CallSomeVulkanRasterizerSpecificFunction(); // Assign to base class variable rasterizer = std::move(raster) | |||||
2018-08-21 | Shaders: Write all the enabled color outputs when a fragment shader exits. | Subv | 2 | -6/+45 | |
We were only writing to the first render target before. Note that this is only the GLSL side of the implementation, supporting multiple render targets requires more changes in the OpenGL renderer. Dual Source blending is not implemented and stuff that uses it might not work at all. | |||||
2018-08-20 | Rasterizer: Reinterpret the raw texture bytes instead of blitting (and thus doing format conversion) to a new texture when a game requests an old texture address with a different format. | Subv | 1 | -3/+49 | |
2018-08-20 | Rasterizer: Don't attempt to copy over the old texture's data when doing a format reinterpretation if we're only going to clear the framebuffer. | Subv | 4 | -13/+21 | |
2018-08-20 | Implemented RGBA8_UINT | David Marcec | 2 | -45/+56 | |
Needed by kirby | |||||
2018-08-20 | Shaders/TEXS: Fixed the component mask in the TEXS instruction. | Subv | 1 | -18/+18 | |
Previously we could end up with a TEXS that didn't write any outputs, this was wrong. | |||||
2018-08-19 | Shader: Implemented the TLD4 and TLD4S opcodes using GLSL's textureGather. | Subv | 1 | -0/+51 | |
It is unknown how TLD4S determines the sampler type, more research is needed. | |||||
2018-08-19 | Shader: Use the right sampler type in the TEX, TEXS and TLDS instructions. | Subv | 2 | -29/+127 | |
Different sampler types have their parameters in different registers. | |||||
2018-08-19 | Shaders: Implemented the gl_FrontFacing input attribute (attr 63). | Subv | 1 | -0/+4 | |
2018-08-18 | Shader: Remove an unneeded assert, the negate bit is implemented for conversion instructions. | Subv | 1 | -2/+0 | |
2018-08-18 | GLRasterizer: Implemented instanced vertex arrays. | Subv | 1 | -3/+16 | |
Before each draw call, for every enabled vertex array configured as instanced, we take the current instance id and divide it by its configured divisor, then we multiply that by the corresponding stride and increment the start address by the resulting amount. This way we can simulate the vertex array being incremented once per instance without actually using OpenGL's instancing functions. | |||||
2018-08-18 | Shader: Implemented the predicate and mode arguments of LOP. | Subv | 1 | -10/+33 | |
The mode can be used to set the predicate to true depending on the result of the logic operation. In some cases, this means discarding the result (writing it to register 0xFF (Zero)). This is used by Super Mario Odyssey. | |||||
2018-08-18 | Added WrapMode MirrorOnceClampToEdge | David Marcec | 1 | -0/+2 | |
Used by splatoon 2 | |||||
2018-08-18 | Shaders: Implemented a stack for the SSY/SYNC instructions. | Subv | 1 | -3/+36 | |
The SSY instruction pushes an address into the stack, and the SYNC instruction pops it. The current stack depth is 20, we should figure out if this is enough or not. | |||||
2018-08-18 | Shaders: Corrected the 'abs' and 'neg' bit usage in the float arithmetic instructions. | Subv | 1 | -16/+34 | |
We should definitely audit our shader generator for more errors like this. | |||||
2018-08-18 | Added predcondition GreaterThanWithNan | David Marcec | 1 | -5/+7 | |
2018-08-17 | gl_rasterizer_cache: Remove asserts for supported blits. | bunnei | 1 | -2/+0 | |
2018-08-17 | renderer_opengl: Treat OpenGL errors as critical. | bunnei | 1 | -1/+1 | |
2018-08-16 | gl_rasterizer_cache: Treat Depth formats differently from DepthStencil. | bunnei | 2 | -16/+26 | |
2018-08-15 | Shader/Conversion: Implemented the negate bit in F2F and I2I instructions. | Subv | 1 | -4/+12 | |
2018-08-15 | Shader/I2F: Implemented the negate I2F_C instruction variant. | Subv | 1 | -7/+23 | |
2018-08-15 | Shader/F2I: Implemented the negate bit in the I2F instruction | Subv | 1 | -0/+4 | |
2018-08-15 | Shader/F2I: Implemented the F2I_C instruction variant. | Subv | 1 | -2/+10 | |
2018-08-15 | Shader/F2I: Implemented the negate bit in the F2I instruction. | Subv | 1 | -0/+4 | |
2018-08-15 | gl_rasterizer_cache: Cleanup some PixelFormat names and logging. | bunnei | 2 | -41/+71 | |
2018-08-15 | Rasterizer: Implemented instanced rendering. | Subv | 5 | -5/+13 | |
We keep track of the current instance and update an uniform in the shaders to let them know which instance they are. Instanced vertex arrays are not yet implemented. | |||||
2018-08-15 | gl_rasterizer_cache: Add RGBA16U to PixelFormatFromTextureFormat. | bunnei | 1 | -1/+9 | |
- Used by Breath of the Wild. | |||||
2018-08-15 | Implement Z16_UNORM in PixelFormatFromTextureFormat function | greggameplayer | 1 | -0/+2 | |
Require by Zelda Breath Of The Wild | |||||
2018-08-15 | gl_shader_decompiler: Several fixes for indirect constant buffer loads. | bunnei | 1 | -13/+22 | |
2018-08-15 | gl_rasterizer: Fix upload size for constant buffers. | bunnei | 1 | -3/+3 | |
2018-08-15 | maxwell_to_gl: Properly handle UnsignedInt/SignedInt sizes. | bunnei | 1 | -5/+20 | |
2018-08-15 | gl_rasterizer_cache: Implement G8R8S format. | bunnei | 2 | -34/+49 | |
- Used by Super Mario Odyssey. | |||||
2018-08-14 | Fix BC7U | greggameplayer | 1 | -1/+1 | |
2018-08-14 | renderer_opengl: Implement RenderTargetFormat::RGBA16_UNORM. | bunnei | 2 | -37/+46 | |
- Used by Breath of the Wild. | |||||
2018-08-13 | Implement RG32UI and R32UI | David Marcec | 2 | -7/+41 | |
Needed for xenoblade | |||||
2018-08-13 | maxwell_to_gl: Implement VertexAttribute::Size::Size_8. | bunnei | 1 | -0/+1 | |
- Used by Breath of the Wild. | |||||
2018-08-13 | renderer_opengl: Implement RenderTargetFormat::RGBA16_UINT. | bunnei | 2 | -34/+43 | |
- Used by Breath of the Wild. | |||||
2018-08-13 | maxwell_to_gl: Implement PrimitiveTopology::LineStrip. | bunnei | 1 | -0/+2 | |
- Used by Breath of the Wild. | |||||
2018-08-13 | renderer_opengl: Implement RenderTargetFormat::RG8_UNORM. | bunnei | 2 | -26/+59 | |
- Used by Breath of the Wild. | |||||
2018-08-13 | gl_shader_decompiler: Implement XMAD instruction. | bunnei | 1 | -0/+95 | |
2018-08-12 | gl_rasterizer: Use a shared helper to upload from CPU memory. | Markus Wick | 2 | -28/+33 | |
2018-08-12 | gl_state: Don't track constant buffer mappings. | Markus Wick | 3 | -41/+3 | |
2018-08-12 | gl_rasterizer: Use the stream buffer for constant buffers. | Markus Wick | 4 | -29/+32 | |
2018-08-12 | gl_rasterizer: Use the streaming buffer itself for the constant buffer. | Markus Wick | 2 | -33/+15 | |
Don't emut copies, especially not for data, which is used once. They just end in a huge GPU overhead. | |||||
2018-08-12 | gl_rasterizer: Use a helper for aligning the buffer. | Markus Wick | 2 | -15/+22 | |
2018-08-12 | Update the stream_buffer helper from Citra. | Markus Wick | 4 | -184/+98 | |
Please see https://github.com/citra-emu/citra/pull/3666 for more details. | |||||
2018-08-12 | gl_shader_decompiler: Fix SetOutputAttributeToRegister empty check. | bunnei | 1 | -2/+2 | |
2018-08-12 | gl_shader_decompiler: Fix GLSL compiler error with KIL instruction. | bunnei | 1 | -0/+8 | |
2018-08-12 | GPU/Maxwell3D: Implemented an alternative set of blend factors. | Subv | 1 | -0/+19 | |
These are used by nouveau and some games like SMO. | |||||
2018-08-12 | Implement R8_UINT RenderTargetFormat & PixelFormat (#1014) | greggameplayer | 2 | -55/+72 | |
- Used by Go Vacation | |||||
2018-08-12 | RasterizerGL: Ignore invalid/unset vertex attributes. | Subv | 1 | -1/+6 | |
This should make the es2gears example not crash anymore. | |||||
2018-08-12 | gl_rasterizer: Silence implicit truncation warning in SetupShaders() | Lioncash | 1 | -1/+1 | |
Previously this would warn of truncating a std::size_t to a u32. This is safe because we'll obviously never have more than UINT32_MAX amount of uniform buffers. | |||||
2018-08-12 | core: Namespace EmuWindow | Lioncash | 4 | -10/+17 | |
Gets the class out of the global namespace. | |||||
2018-08-12 | gl_shader_decompiler: Improve handling of unknown input/output attributes. | bunnei | 1 | -8/+10 | |
2018-08-12 | gl_rasterizer: Implement render target format RG8_SNORM. | bunnei | 2 | -8/+16 | |
- Used by Super Mario Odyssey. | |||||
2018-08-12 | gl_rasterizer: Implement render target format RGBA8_SNORM. | bunnei | 2 | -64/+81 | |
- Used by Super Mario Odyssey. | |||||
2018-08-11 | GPU/Shader: Don't predicate instructions that don't have a predicate field (SSY). | Subv | 1 | -2/+6 | |
2018-08-11 | GPU/Shaders: Implemented SSY and SYNC as a way to modify control flow during shader execution. | Subv | 1 | -6/+25 | |
SSY sets the target label to jump to when the SYNC instruction is executed. | |||||
2018-08-11 | Implement R16S & R16UI & R16I RenderTargetFormats & PixelFormats and more (R16_UNORM needed by Fate Extella) (#848) | greggameplayer | 2 | -19/+53 | |
* Implement R16S & R16UI & R16I RenderTargetFormats & PixelFormats Do a separate function in order to get Bytes Per Pixel of DepthFormat Apply the new function in gpu.h delete unneeded white space * correct merging error | |||||
2018-08-10 | maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8. | bunnei | 1 | -0/+1 | |
- Used by Super Mario Odyssey. | |||||
2018-08-10 | maxwell_to_gl: Implement VertexAttribute::Size::Size_32_32_32. | bunnei | 1 | -0/+2 | |
- Used by Super Mario Odyssey. | |||||
2018-08-10 | Revert "gl_state: Temporarily disable culling and depth test." | bunnei | 1 | -3/+1 | |
2018-08-10 | gl_rasterizer_cache: Remove unused viewport parameter of GetFramebufferSurfaces() | Lioncash | 3 | -8/+6 | |
2018-08-10 | textures: Refactor out for Texture/Depth FormatFromPixelFormat. | bunnei | 2 | -96/+21 | |
2018-08-10 | gl_rasterizer_cache: Add bounds checking for gl_buffer copies. | bunnei | 1 | -10/+12 | |
2018-08-10 | Implement SNORM for BC5/DXN2 (#998) | Khangaroo | 2 | -38/+55 | |
* Implement BC5/DXN2 (#996) - Used by Kirby Star Allies. * Implement BC5/DXN2 SNORM UNORM for Kirby Star Allies SNORM for Super Mario Odyssey | |||||
2018-08-09 | gl_shader_decompiler: Reserve element memory beforehand in BuildRegisterList() | Lioncash | 1 | -0/+2 | |
Avoids potentially perfoming multiple reallocations when we know the total amount of memory we need beforehand. | |||||
2018-08-09 | gl_rasterizer_cache: Avoid iterator invalidation issues within InvalidateRegion() | Lioncash | 1 | -2/+4 | |
A range-based for loop can't be used when the container being iterated is also being erased from. | |||||
2018-08-09 | Implement BC5/DXN2 (#996) | Khangaroo | 2 | -33/+42 | |
- Used by Kirby Star Allies. | |||||
2018-08-09 | gl_rasterizer_cache: Invert conditional in LoadGLBuffer() | Lioncash | 1 | -5/+5 | |
It's generally easier to follow code using conditionals that operate in terms of the true case followed by the false case (no chance of overlooking the exclamation mark). | |||||
2018-08-09 | gl_rasterizer_cache: Use std::vector::assign in LoadGLBuffer() for the non-tiled case | Lioncash | 1 | -4/+6 | |
resize() causes the vector to expand and zero out the added members to the vector, however we can avoid this zeroing by using assign(). Given we have the pointer to the data we want to copy, we can calculate the end pointer and directly copy the range of data without the need to perform the resize() beforehand. | |||||
2018-08-09 | maxwell_to_gl: Implement VertexAttribute::Size::Size_16_16_16_16. | bunnei | 1 | -0/+1 | |
- Used by Super Mario Odyssey (in game). | |||||
2018-08-09 | maxwell_to_gl: Implement PrimitiveTopology::Points. | bunnei | 1 | -0/+2 | |
- Used by Super Mario Odyssey (in game). | |||||
2018-08-09 | gl_shader_decompiler: Declare predicates on use. | bunnei | 1 | -4/+5 | |
- Used by Super Mario Odyssey (when going in game). | |||||
2018-08-09 | gl_rasterizer_cache: Make pointer const in LoadGLBuffer() | Lioncash | 1 | -1/+1 | |
This is only ever read from, so we can make the data it's pointing to const. | |||||
2018-08-09 | gl_rasterizer: Do not render when no render target is configured. | bunnei | 1 | -0/+5 | |
- Used by Super Mario Odyssey. | |||||
2018-08-08 | gl_shader_decompiler: Stub input attribute Unknown_63. | bunnei | 1 | -0/+7 | |
2018-08-08 | maxwell_3d: Use correct const buffer size and check bounds. | bunnei | 2 | -2/+9 | |
- Fixes mem corruption with Super Mario Odyssey and Pokkén Tournament DX. | |||||
2018-08-08 | renderer_opengl: Use trace log in a few places. | bunnei | 2 | -2/+2 | |
2018-08-08 | maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8. | bunnei | 1 | -0/+1 | |
2018-08-08 | gl_rasterizer_cached: Implement RenderTargetFormat::B5G6R5_UNORM. | bunnei | 1 | -0/+3 | |
- Used by Super Mario Odyssey. | |||||
2018-08-08 | gl_shader_decompiler: Let OpenGL interpret floats. | bunnei | 1 | -2/+2 | |
- Accuracy is lost in translation to string, e.g. with NaN. - Needed for Super Mario Odyssey. | |||||
2018-08-08 | Fixed the sRGB pixel format (#963) | Hexagon12 | 1 | -1/+2 | |
* Changed the sRGB pixel format return * Add a message about SRGBA -> RGBA conversion | |||||
2018-08-06 | gl_rasterizer_cache: Avoid superfluous surface copies. | bunnei | 2 | -4/+21 | |
2018-08-05 | gl_shader_decompiler: Fix TEXS mask and dest. | bunnei | 1 | -2/+5 | |
2018-08-05 | added braces for conditions | David Marcec | 1 | -2/+3 | |
2018-08-05 | fix the attrib format for ints | David Marcec | 1 | -2/+7 | |
2018-08-04 | gl_shader_manager: Invert conditional in SetShaderUniformBlockBinding() | Lioncash | 1 | -7/+9 | |
This lets us indent the majority of the code and places the error case first. | |||||
2018-08-04 | gl_shader_manager: Amend sign differences in an assertion comparison in SetShaderUniformBlockBinding() | Lioncash | 1 | -3/+2 | |
Ensures both operands have the same sign in the comparison. While we're at it, we can get rid of the redundant casting of ub_size to an int. This type will always be trivial and alias a built-in type (not doing so would break backwards compatibility at a standard level). | |||||
2018-08-04 | renderer_base: Make Rasterizer() return the rasterizer by reference | Lioncash | 1 | -2/+2 | |
All calling code assumes that the rasterizer will be in a valid state, which is a totally fine assumption. The only way the rasterizer wouldn't be is if initialization is done incorrectly or fails, which is checked against in System::Init(). | |||||
2018-08-04 | video_core: Eliminate the g_renderer global variable | Lioncash | 2 | -2/+2 | |
We move the initialization of the renderer to the core class, while keeping the creation of it and any other specifics in video_core. This way we can ensure that the renderer is initialized and doesn't give unfettered access to the renderer. This also makes dependencies on types more explicit. For example, the GPU class doesn't need to depend on the existence of a renderer, it only needs to care about whether or not it has a rasterizer, but since it was accessing the global variable, it was also making the renderer a part of its dependency chain. By adjusting the interface, we can get rid of this dependency. | |||||
2018-08-03 | gl_shader_decompiler: Remove unused variable in GenerateDeclarations() | Lioncash | 1 | -2/+0 | |
This variable was being incremented, but we were never actually using it. | |||||
2018-08-03 | gl_shader_manager: Make ProgramManager's GetCurrentProgramStage() a const member function | Lioncash | 1 | -1/+1 | |
This function doesn't modify class state, so it can be made const. | |||||
2018-08-02 | Implement RGB32F PixelFormat (#886) (used by Go Vacation) | greggameplayer | 2 | -9/+19 | |
2018-08-02 | gl_state: Make texture_units a std::array | Lioncash | 1 | -2/+3 | |
Gets rid of the use of a raw C array. | |||||
2018-08-02 | gl_shader_manager: Take ShaderSetup instances by const reference in UseProgrammableVertexShader() and UseProgrammableFragmentShader() | Lioncash | 1 | -2/+2 | |
Avoids performing unnecessary copies of 65560 byte sized ShaderSetup instances, considering it's only used as part of lookup and not modified. Given the parameters were already const, it's likely taking these parameters by reference was intended but the ampersand was forgotten. | |||||
2018-08-02 | video_core: Make global EmuWindow instance part of the base renderer class | Lioncash | 4 | -32/+21 | |
Makes the global a member of the RendererBase class. We also change this to be a reference. Passing any form of null pointer to these functions is incorrect entirely, especially given the code itself assumes that the pointer would always be in a valid state. This also makes it easier to follow the lifecycle of instances being used, as we explicitly interact the renderer with the rasterizer, rather than it just operating on a global pointer. | |||||
2018-08-01 | Implement R32_FLOAT RenderTargetFormat | Unknown | 1 | -0/+3 | |
2018-07-26 | GPU: Allow using R16F as a render target format. | Subv | 1 | -1/+3 | |
2018-07-26 | Implement R16_G16 | Unknown | 2 | -19/+92 | |
correct trailing white spaces Delete tabs correct placement Add RG16F & RG16UI & RG16I & RG16S PixelFormats Return correct data according to changes done previously correct PixelFormat declaration correct coding style error correct coding style error part 2 correct RG16S Declaration error correct alignment | |||||
2018-07-25 | GPU: Use the right texture format for sRGBA framebuffers. | Subv | 2 | -9/+17 | |
2018-07-25 | GPU: Allow the use of Z24S8 as a texture format. | Subv | 1 | -0/+4 | |
2018-07-25 | GPU: Implemented the Z32_S8_X24 depth buffer format. | Subv | 2 | -1/+12 | |
2018-07-25 | GPU: Allow using Z32 as a texture format. | Subv | 1 | -0/+4 | |
2018-07-25 | GPU: Allow the usage of R8 as a render target format. | Subv | 1 | -0/+3 | |
2018-07-24 | GPU: Implemented the R16 and R16F texture formats. | Subv | 2 | -5/+29 | |
2018-07-24 | gl_rasterizer: Replace magic number with GL_INVALID_INDEX in SetupConstBuffers() | Lioncash | 1 | -3/+5 | |
This is just the named constant that OpenGL provides, so we can use that instead of using a literal -1 | |||||
2018-07-24 | gl_rasterizer: Use std::string_view instead of std::string when checking for extensions | Lioncash | 1 | -1/+3 | |
We can avoid heap allocations here by just using a std::string_view instead of performing unnecessary copying of the string data. | |||||
2018-07-24 | gl_rasterizer: Use in-class member initializers where applicable | Lioncash | 2 | -12/+5 | |
We can just assign to the members directly in these cases. | |||||
2018-07-24 | gl_rasterizer: Implement texture border color. | bunnei | 2 | -7/+7 | |
2018-07-24 | maxwell_to_gl: Implement Texture::WrapMode::Border. | bunnei | 1 | -0/+2 | |
2018-07-24 | GPU: Implement texture format R32F. | Subv | 2 | -6/+16 | |
2018-07-24 | maxwell_to_gl: Implement VertexAttribute::Type::UnsignedInt. | bunnei | 1 | -0/+3 | |
2018-07-24 | gl_shader_decompiler: Correct return value of WriteTexsInstruction() | Lioncash | 1 | -2/+2 | |
This should be returning void, not a std::string | |||||
2018-07-24 | gl_shader_decompiler: Implement shader instruction TLDS. | bunnei | 1 | -29/+43 | |
2018-07-24 | gl_rasterizer_cache: Implement RenderTargetFormat RG32_FLOAT. | bunnei | 2 | -7/+19 | |
2018-07-24 | gl_rasterizer_cache: Implement RenderTargetFormat RGBA32_FLOAT. | bunnei | 2 | -10/+34 | |
2018-07-24 | gl_rasterizer_cache: Implement RenderTargetFormat BGRA8_UNORM. | bunnei | 2 | -8/+20 | |
2018-07-24 | gl_rasterizer_cache: Add missing log statements. | bunnei | 1 | -0/+2 | |
2018-07-24 | gl_shader_decompiler: Print instruction value in shader comments. | bunnei | 1 | -1/+2 | |
2018-07-24 | gl_shader_decompiler: Check if SetRegister result is ZeroIndex. | bunnei | 1 | -0/+6 | |
2018-07-23 | gl_shader_decompiler: Simplify GetCommonDeclarations() | Lioncash | 1 | -5/+5 | |
2018-07-22 | gl_shader_decompiler: Remove redundant Subroutine construction in AddSubroutine() | Lioncash | 1 | -4/+8 | |
We don't need to toss away the Subroutine instance after the find() call and reconstruct another instance with the same data right after it. Particularly give Subroutine contains a std::set. | |||||
2018-07-22 | gl_shader_decompiler: Remove unused state tracking and minor cleanup. | bunnei | 1 | -78/+15 | |
2018-07-22 | gl_shader_decompiler: Implement SEL instruction. | bunnei | 1 | -0/+9 | |
2018-07-22 | gl_rasterizer_cache: Blit surfaces on recreation instead of flush and load. | bunnei | 2 | -2/+86 | |
2018-07-22 | gl_rasterizer_cache: Use GPUVAddr as cache key, not parameter set. | bunnei | 3 | -57/+46 | |
2018-07-22 | gl_rasterizer_cache: Use zeta_width and zeta_height registers for depth buffer. | bunnei | 2 | -11/+11 | |
2018-07-22 | gl_rasterizer: Use zeta_enable register to enable depth buffer. | bunnei | 1 | -2/+2 | |
2018-07-21 | gl_shader_manager: Replace unimplemented function prototype | Lioncash | 2 | -3/+3 | |
This was just a linker error waiting to happen. | |||||
2018-07-21 | gpu: Rename Get3DEngine() to Maxwell3D() | Lioncash | 1 | -5/+5 | |
This makes it match its const qualified equivalent. | |||||
2018-07-21 | video_core: Use nested namespaces where applicable | Lioncash | 2 | -8/+4 | |
Compresses a few namespace specifiers to be more compact. | |||||
2018-07-20 | gl_state: Make references const where applicable in Apply() | Lioncash | 1 | -2/+3 | |
2018-07-20 | gl_state: Get rid of mismatched sign conversions | Lioncash | 1 | -14/+17 | |
While we're at it, amend the loop variable type to be the same width as that returned by the .size() call. | |||||
2018-07-20 | gl_shader_decompiler: Eliminate variable and declaration shadowing | Lioncash | 1 | -6/+4 | |
Ensures that no identifiers are being hidden, which also reduces compiler warnings. | |||||
2018-07-20 | gl_shader_decompiler: Remove unnecessary const from return values | Lioncash | 1 | -2/+2 | |
This adds nothing from a behavioral point of view, and can inhibit the move constructor/RVO | |||||
2018-07-19 | gl_state: Temporarily disable culling and depth test. | bunnei | 1 | -1/+3 | |
2018-07-19 | core: Don't construct instance of Core::System, just to access its live instance | Lioncash | 3 | -15/+15 | |
This would result in a lot of allocations and related object construction, just to toss it all away immediately after the call. These are definitely not intentional, and it was intended that all of these should have been accessing the static function GetInstance() through the name itself, not constructed instances. | |||||
2018-07-18 | vi: Partially implement buffer crop parameters. | bunnei | 2 | -4/+19 | |
2018-07-15 | gl_rasterizer_cache: Implement texture format G8R8. | bunnei | 2 | -9/+37 | |
2018-07-15 | gl_rasterizer_cache: Fix incorrect offset in ConvertS8Z24ToZ24S8. | bunnei | 1 | -1/+2 | |
2018-07-15 | gl_rasterizer_cache: Implement depth format Z16_UNORM. | bunnei | 2 | -1/+12 | |
2018-07-14 | OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering. | bunnei | 3 | -1/+27 | |
2018-07-14 | GPU: Always enable the depth write when clearing the depth buffer. | Subv | 1 | -3/+8 | |
The GPU ignores that register when clearing, but OpenGL obeys the glDepthMask parameter, so we set the depth mask to GL_TRUE when clearing the depth buffer. It will be restored to the correct value automatically on the next draw call. | |||||
2018-07-13 | gl_rasterizer: Fix check for if a shader stage is enabled. | bunnei | 1 | -11/+3 | |
2018-07-13 | gl_shader_gen: Implement dual vertex shader mode. | bunnei | 5 | -55/+139 | |
- When VertexA shader stage is enabled, we combine with VertexB program to make a single Vertex Shader stage. | |||||
2018-07-13 | gl_shader_decompiler: Implement PredCondition::LessThanWithNan. | bunnei | 1 | -5/+6 | |
2018-07-13 | gl_shader_decompiler: Use FlowCondition field in EXIT instruction. | bunnei | 1 | -8/+25 | |
2018-07-12 | GPU: Implement the FADD32I shader instruction. | Subv | 1 | -0/+23 | |
2018-07-08 | gl_rasterizer: Flip triangles when regs.viewport_transform[0].scale_y is negative. | bunnei | 1 | -1/+4 | |
- Fixes a regression with Binding of Isaac. | |||||
2018-07-07 | GPU: Implemented the BC7U texture format. | Subv | 2 | -7/+18 | |
Note: Our version of glad exports GL_COMPRESSED_RGBA_BPTC_UNORM as GL_COMPRESSED_RGBA_BPTC_UNORM_ARB, maybe it's time we update it. | |||||
2018-07-05 | GPU: Allow using the old NV04 values for the depth test function. | Subv | 1 | -0/+8 | |
These seem to be just a valid as the GL token values. Thanks @ReinUsesLisp This restores graphical output to Disgaea 5 | |||||
2018-07-04 | GPU: Implemented the IMNMX shader instruction. | Subv | 1 | -0/+14 | |
It's similar to the FMNMX instruction but it works on integers. | |||||
2018-07-04 | GPU: Implemented the F2F 'round' rounding mode. | Subv | 1 | -0/+3 | |
It's implemented via the GLSL 'roundEven()' function. | |||||
2018-07-04 | GPU: Stub the shader SYNC and DEPBAR instructions. | Subv | 1 | -0/+7 | |
It is unknown at this moment if we actually need to do something with these instructions or if the GLSL compiler takes care of that for us. | |||||
2018-07-04 | GPU: Implement the Size_16_16 and Size_10_10_10_2 vertex attribute types. | Subv | 1 | -0/+8 | |
Both signed and unsigned variants. | |||||
2018-07-04 | GPU: Ignore textures that the GLSL compiler deemed unused when binding textures to the shaders. | Subv | 1 | -1/+4 | |
2018-07-04 | GPU: Implemented the PSETP shader instruction. | Subv | 1 | -0/+30 | |
It's similar to the isetp and fsetp instructions but it works on predicates instead. | |||||
2018-07-04 | GPU: Implemented the 32 bit float depth buffer format. | Subv | 2 | -2/+13 | |
2018-07-04 | GPU: Flip the triangle front face winding if the GPU is configured to not flip the triangles. | Subv | 1 | -0/+10 | |
OpenGL's default behavior is already correct when the GPU is configured to flip the triangles. This fixes 1-2 Switch's splash screen. | |||||
2018-07-04 | GPU: Only configure the used framebuffers during clear. | Subv | 4 | -17/+48 | |
Don't try to configure the color buffer if it is not being cleared, it may not be completely valid at this point. | |||||
2018-07-03 | GPU: Factor out the framebuffer configuration code for both Clear and Draw commands. | Subv | 2 | -72/+39 | |
2018-07-03 | GPU: Support clears that don't clear the color buffer. | Subv | 1 | -4/+14 | |
2018-07-03 | GPU: Bind and clear the render target when the CLEAR_BUFFERS register is written to. | Subv | 2 | -0/+72 | |
2018-07-03 | gl_rasterizer_cache: Implement PixelFormat S8Z24. | bunnei | 2 | -11/+81 | |
2018-07-03 | gl_rasterizer: Only set cull mode and front face if enabled. | bunnei | 1 | -2/+5 | |
2018-07-03 | GPU: Don't try to parse the depth test function if the depth test is disabled. | Subv | 1 | -0/+4 | |
2018-07-03 | Update clang format | James Rowe | 4 | -15/+14 | |
2018-07-03 | Rename logging macro back to LOG_* | James Rowe | 8 | -61/+61 | |
2018-07-03 | GPU: Set up the culling configuration on each draw. | Subv | 1 | -6/+8 | |
2018-07-03 | GPU: Implemented MUFU suboperation 8, sqrt. | Subv | 1 | -0/+4 | |
2018-07-02 | GPU: Set up the depth test state on every draw. | Subv | 2 | -0/+14 | |
2018-07-02 | MaxwellToGL: Added conversion functions for depth test and cull mode. | Subv | 1 | -0/+50 | |
2018-07-02 | GPU: Implemented the Z24S8 depth format and load the depth framebuffer. | Subv | 3 | -23/+77 | |
2018-07-02 | GPU: Implement offsetted rendering when using non-indexed drawing. | Subv | 1 | -1/+1 | |
2018-07-02 | GPU: Fixed the index offset rendering, and implemented the base vertex functionality. | Subv | 1 | -6/+8 | |
This fixes Stardew Valley. | |||||
2018-07-02 | GPU: Ignore disabled textures and textures with an invalid address. | Subv | 2 | -1/+10 | |
2018-06-30 | GPU: Corrected the size of the MUFU subop field, and removed incorrect "min" operation. | Subv | 1 | -4/+0 | |
2018-06-30 | GPU: Implemented the RGBA32_UINT rendertarget format. | Subv | 2 | -9/+23 | |
2018-06-30 | GLCache: Specify the component type along the texture type in the format tuple. | Subv | 1 | -17/+21 | |
2018-06-30 | gl_shader_decompiler: Implement predicate NotEqualWithNan. | bunnei | 1 | -17/+23 | |
2018-06-29 | gl_rasterizer_cache: Only dereference color_surface/depth_surface if valid. | bunnei | 1 | -2/+6 | |
2018-06-27 | gl_shader_decompiler: Add a return path for unknown instructions. | bunnei | 1 | -0/+1 | |
2018-06-27 | gl_rasterizer_cache: Implement caching for texture and framebuffer surfaces. | bunnei | 3 | -16/+168 | |
gl_rasterizer_cache: Improved cache management based on Citra's implementation. gl_surface_cache: Add some docstrings. | |||||
2018-06-27 | gl_rasterizer_cache: Various fixes for ASTC handling. | bunnei | 2 | -35/+39 | |
2018-06-27 | gl_rasterizer_cache: Use SurfaceParams as a key for surface caching. | bunnei | 2 | -43/+72 | |
2018-06-27 | gl_rasterizer: Implement AccelerateDisplay to forward textures to framebuffers. | bunnei | 5 | -5/+60 | |
2018-06-27 | gl_rasterizer_cache: Cache size_in_bytes as a const per surface. | bunnei | 2 | -9/+13 | |
2018-06-27 | gl_rasterizer_cache: Refactor to make SurfaceParams members const. | bunnei | 2 | -52/+37 | |
2018-06-27 | gl_rasterizer_cache: Remove Citra's rasterizer cache, always load/flush surfaces. | bunnei | 4 | -1494/+210 | |
2018-06-27 | gl_rasterizer: Workaround for when exceeding max UBO size. | bunnei | 2 | -1/+7 | |
2018-06-26 | gl_state: Fix state management for texture swizzle. | bunnei | 5 | -12/+20 | |
2018-06-26 | gl_state: Remove unused state management from 3DS. | bunnei | 2 | -94/+0 | |
2018-06-26 | gl_rasterizer_cache: Fix inverted B5G6R5 format. | bunnei | 1 | -1/+1 | |
2018-06-20 | Build: Fixed some MSVC warnings in various parts of the code. | Subv | 5 | -8/+8 | |
2018-06-19 | GPU: Perform negation after absolute value in the float shader instructions. | Subv | 1 | -7/+14 | |
2018-06-19 | GPU: Don't mark uniform buffers and registers as used for instructions which don't have them. | Subv | 1 | -12/+15 | |
Like the MOV32I and FMUL32I instructions. This fixes a potential crash when using these instructions. | |||||
2018-06-18 | gl_rasterizer: Get loose on independent blending. | Jules Blok | 1 | -1/+1 | |
2018-06-18 | gl_rasterizer: Implement texture format ASTC_2D_4X4. | bunnei | 2 | -1/+43 | |
2018-06-18 | gl_rasterizer_cache: Loosen things up a bit. | bunnei | 1 | -26/+8 | |
2018-06-17 | gl_shader_decompiler: Implement LOP instructions. | bunnei | 1 | -6/+28 | |
2018-06-17 | gl_shader_decompiler: Refactor LOP32I instruction a bit in support of LOP. | bunnei | 1 | -54/+40 | |
2018-06-16 | gl_shader_decompiler: Implement integer size conversions for I2I/I2F/F2I. | bunnei | 1 | -13/+41 | |
2018-06-16 | gl_shader_gen: Set position.w to 1. | bunnei | 1 | -0/+4 | |
2018-06-16 | gl_shader_decompiler: Implement LOP32I LogicOperation PassB. | bunnei | 1 | -6/+12 | |
2018-06-12 | GPU: Implemented the iadd32i shader instruction. | Subv | 1 | -0/+21 | |
2018-06-12 | gl_shader_decompiler: Implement saturate for float instructions. | bunnei | 1 | -37/+31 | |
2018-06-10 | GPU: Convert the gl_InstanceId and gl_VertexID variables to floats when reading from them. | Subv | 1 | -1/+1 | |
This corrects the invalid position values in some games when doing attribute-less rendering. | |||||
2018-06-10 | Rasterizer: Use UBOs instead of SSBOs for uploading const buffers. | Subv | 4 | -18/+39 | |
This should help a bit with GPU performance once we're GPU-bound. | |||||
2018-06-09 | GPU: Implement the iset family of shader instructions. | Subv | 1 | -2/+37 | |
2018-06-09 | gl_shader_decompiler: Implement SHR instruction. | bunnei | 1 | -0/+13 | |
2018-06-09 | GPU: Stub the SSY shader instruction. | Subv | 1 | -0/+5 | |
This instruction tells the GPU where the flow reconverges in a non-uniform control flow scenario, we can ignore this when generating GLSL code. | |||||
2018-06-09 | gl_shader_decompiler: Implement IADD instruction. | bunnei | 1 | -6/+26 | |
2018-06-09 | gl_shader_decompiler: Add missing asserts for saturate_a instructions. | bunnei | 1 | -7/+17 | |
2018-06-09 | GPU: Synchronize the blend state on every draw call. | Subv | 2 | -16/+20 | |
Only independent blending on render target 0 is implemented for now. This fixes the elongated squids in Splatoon 2's boot screen. | |||||
2018-06-09 | GPU: Added registers for normal and independent blending. | Subv | 1 | -26/+1 | |
2018-06-08 | GLCache: Align compressed texture sizes to their compression ratio, and then align that compressed size to the block height for tiled textures. | Subv | 1 | -2/+7 | |
This fixes issues with retrieving non-block-aligned tiled compressed textures from the cache. | |||||
2018-06-08 | Rasterizer: Flush the written region when writing shader uniform data before copying it to the uniform buffers. | Subv | 1 | -0/+3 | |
This fixes the flip_viewport uniform having invalid values when drawing. | |||||
2018-06-07 | GLRenderer: Write the shader stage configuration UBO data *before* copying it to the GPU. | Subv | 1 | -3/+4 | |
This should fix the bug with the vs_config UBO being uninitialized during shader execution. | |||||
2018-06-07 | gl_shader_decompiler: Implement BFE_IMM instruction. | bunnei | 1 | -4/+29 | |
2018-06-07 | GLCache: Use the full uncompressed size when blitting from one texture to another. | Subv | 1 | -3/+6 | |
This avoids the problem of only copying a tiny piece of the textures when they are compressed. | |||||
2018-06-07 | GLCache: Simplify the logic to copy from one texture to another in BlitTextures. | Subv | 1 | -53/+3 | |
We now use glCopyImageSubData, this should avoid errors with trying to attach a compressed texture as a framebuffer's color attachment and then blitting to it. Maybe in the future we can change this to glCopyTextureSubImage which only requires GL_ARB_direct_state_access. | |||||
2018-06-07 | gl_shader_decompiler: F2F: Implement rounding modes. | bunnei | 1 | -7/+23 | |
2018-06-07 | gl_shader_decompiler: Remove some attribute stuff that has nothing to do with TEX/TEXS. | bunnei | 1 | -8/+4 | |
2018-06-07 | gl_shader_decompiler: Implement ISETP_IMM instruction. | bunnei | 1 | -8/+9 | |
2018-06-07 | GPU: Support changing the texture swizzles for Maxwell textures. | Subv | 2 | -0/+29 | |
2018-06-07 | GLState: Support changing the GL_TEXTURE_SWIZZLE parameter of each texture unit. | Subv | 3 | -0/+20 | |
2018-06-07 | gl_shader_decompiler: Implement LD_C instruction. | bunnei | 1 | -0/+27 | |
2018-06-07 | gl_shader_gen: Add uniform handling for indirect const buffer access. | bunnei | 3 | -4/+40 | |
2018-06-06 | gl_shader_decompiler: Refactor uniform handling to allow different decodings. | bunnei | 1 | -20/+19 | |
2018-06-06 | GPU: Implement sampling multiple textures in the generated glsl shaders. | Subv | 7 | -69/+135 | |
All tested games that use a single texture show no regression. Only Texture2D textures are supported right now, each shader gets its own "tex_fs/vs/gs" sampler array to maintain independent textures between shader stages, the textures themselves are reused if possible. | |||||
2018-06-06 | gl_shader_decompiler: Fix un/signed mismatch with SHL. | bunnei | 1 | -1/+1 | |
2018-06-06 | maxwell_to_gl: Implement WrapMode Mirror. | bunnei | 1 | -0/+2 | |
2018-06-06 | GPU: Implemented the R11FG11FB10F texture and rendertarget formats. | Subv | 2 | -11/+26 | |
2018-06-06 | GPU: Fixed the compression factor for RGBA16F textures. | Subv | 1 | -1/+1 | |
They're not compressed. | |||||
2018-06-05 | GPU: Implemented the F2I_R shader instruction. | Subv | 1 | -3/+44 | |
2018-06-05 | gl_shader_decompiler: Fix typo with ISCADD instruction. | bunnei | 1 | -1/+1 | |
2018-06-05 | gl_shader_decompiler: Implement SHL instruction. | bunnei | 1 | -1/+30 | |
2018-06-05 | gl_shader_decompiler: Implement PredCondition::NotEqual. | bunnei | 1 | -3/+3 | |
2018-06-05 | GPU: Implement the ISCADD shader instructions. | Subv | 1 | -0/+24 | |
2018-06-05 | GPU: Implement predicated exit instructions in the shader programs. | Subv | 1 | -4/+6 | |
2018-06-05 | GPU: Take into account predicated exits when performing shader control flow analysis. | Subv | 1 | -1/+10 | |
2018-06-04 | GPU: Use the bf bit in FSET to determine whether to write 0xFFFFFFFF or 1.0f. | Subv | 1 | -1/+6 | |
2018-06-04 | GPU: Corrected the I2F_R implementation. | Subv | 1 | -2/+12 | |
2018-06-04 | GPU: Calculate the correct viewport dimensions based on the scale and translate registers. | Subv | 1 | -2/+2 | |
This is how nouveau calculates the viewport width and height. For some reason some games set 0xFFFF in the VIEWPORT_HORIZ and VIEWPORT_VERT registers, maybe those are a misnomer and actually refer to something else? | |||||
2018-06-04 | GPU: Implemented the LOP32I instruction. | Subv | 1 | -0/+43 | |
2018-06-04 | GLCache: Corrected a mismatch between storing compressed sizes and verifying the uncompressed alignment in GetSurface. | Subv | 1 | -1/+2 | |
2018-06-04 | GPU: Use explicit types when retrieving the uniform values for fsetp/fset and isetp instead of the type of an invalid output register. | Subv | 1 | -9/+18 | |
2018-06-04 | GPU: Implemented the ISETP_R and ISETP_C shader instructions. | Subv | 1 | -0/+38 | |
2018-06-04 | GPU: Partially implemented the shader BRA instruction. | Subv | 1 | -1/+30 | |
2018-06-03 | gl_shader_decompiler: Implement TEXS component mask. | bunnei | 1 | -7/+10 | |
2018-06-03 | gl_shader_decompiler: Implement RRO as a register move. | bunnei | 1 | -6/+11 | |
2018-06-02 | GPU: Implemented the DXN1 (BC4) texture format. | Subv | 2 | -2/+11 | |
2018-06-01 | gl_shader_decompiler: Implement TEX instruction. | bunnei | 1 | -1/+26 | |
2018-06-01 | gl_shader_decompiler: Support multi-destination for TEXS. | bunnei | 1 | -2/+18 | |
2018-05-31 | gl_rasterizer_cache: Assert that component type is UNorm or format is RGBA16F. | bunnei | 1 | -1/+2 | |
2018-05-31 | gl_rasterizer_cache: Implement PixelFormat RGBA16F. | bunnei | 2 | -6/+19 | |
2018-05-30 | Shaders: Implemented reading the gl_InstanceID and gl_VertexID variables in the vertex shader. | Subv | 1 | -1/+7 | |
2018-05-30 | gl_shader_decompiler: F2F_R instruction: Implement abs. | bunnei | 1 | -1/+7 | |
2018-05-30 | gl_shader_decompiler: Partially implement F2F_R instruction. | bunnei | 1 | -1/+6 | |
2018-05-30 | GPU: Implemented the R8 texture format (0x1D) | Subv | 2 | -5/+14 | |
2018-05-30 | gl_rasterize_cache: Invert order of tex format RGB565. | bunnei | 1 | -1/+1 | |
2018-05-27 | GPU: Implemented the A1B5G5R5 texture format (0x14) | Subv | 2 | -5/+17 | |
2018-05-26 | gl_shader_decompiler: Implement GetPredicateComparison GreaterEqual. | bunnei | 1 | -4/+3 | |
2018-05-26 | shader_bytecode: Implement other variants of FMNMX. | bunnei | 1 | -1/+3 | |
2018-05-25 | Shader: Implemented compound predicates in fset. | Subv | 1 | -28/+12 | |
You can specify a predicate in the fset instruction: Result = ((Value1 Comp Value2) OP P0) ? 1.0 : 0.0; | |||||
2018-05-25 | Shader: Implemented compound predicates in fsetp. | Subv | 1 | -19/+55 | |
You can specify three predicates in an fsetp instruction: P1 = (Value1 Comp Value2) OP P0; P2 = !(Value1 Comp Value2) OP P0; | |||||
2018-05-21 | Shaders: Implemented the FMNMX shader instruction. | Subv | 1 | -6/+21 | |
2018-05-19 | GLRenderer: Remove unused hw_vao_enabled_attributes variable. | Subv | 2 | -4/+0 | |
2018-05-19 | GLRenderer: Remove unused vertex buffer and increase the size of the stream buffer to 128 MB. | Subv | 2 | -9/+3 | |
The stream buffer is where all the vertex data is copied, some games require this to be much bigger than the 4 MB we used to have. | |||||
2018-05-19 | GLRenderer: Log the shader source code when program linking fails. | Subv | 1 | -0/+27 | |
2018-05-02 | general: Make formatting of logged hex values more straightforward | Lioncash | 1 | -1/+1 | |
This makes the formatting expectations more obvious (e.g. any zero padding specified is padding that's entirely dedicated to the value being printed, not any pretty-printing that also gets tacked on). | |||||
2018-04-29 | gl_shader_decompiler: Implement MOV_R. | bunnei | 1 | -1/+2 | |
2018-04-29 | maxwell_to_gl: Implement type SignedNorm, Size_8_8_8_8. | bunnei | 1 | -0/+12 | |
2018-04-29 | Shaders: Implemented predicate condition 3 (LessEqual) in the fset and fsetp instructions. | Subv | 1 | -0/+7 | |
2018-04-29 | gl_shader_decompiler: Implement MOV_C. | bunnei | 1 | -0/+5 | |
2018-04-29 | gl_shader_decompiler: Partially implement I2I_R, and I2F_R. | bunnei | 1 | -0/+26 | |
2018-04-29 | gl_shader_decompiler: More cleanups, etc. with how we handle register types. | bunnei | 1 | -44/+120 | |
2018-04-29 | GLSLRegister: Simplify register declarations, etc. | bunnei | 1 | -63/+31 | |
2018-04-29 | gl_shader_decompiler: Implement MOV32_IMM instruction. | bunnei | 1 | -0/+5 | |
2018-04-27 | renderer_opengl: Replace usages of LOG_GENERIC with fmt-capable equivalents | Lioncash | 1 | -6/+7 | |
2018-04-27 | gl_shader_decompiler: Add GLSLRegisterManager class to track register state. | bunnei | 1 | -154/+262 | |
2018-04-27 | general: Convert assertion macros over to be fmt-compatible | Lioncash | 1 | -1/+1 | |
2018-04-26 | gl_shader_decompiler: Boilerplate for handling integer instructions. | bunnei | 1 | -5/+102 | |
2018-04-26 | gl_shader_decompiler: Move color output to EXIT instruction. | bunnei | 1 | -6/+12 | |
2018-04-25 | Shaders: Implemented the FSET instruction. | Subv | 1 | -0/+53 | |
This instruction is similar to the FSETP instruction, but it doesn't set a predicate, it sets the destination register to 1.0 if the condition holds, and 0 otherwise. | |||||
2018-04-25 | video-core: Move logging macros over to new fmt-capable ones | Lioncash | 2 | -8/+8 | |
2018-04-25 | Shaders: Added decodings for the FSET instructions. | Subv | 1 | -1/+1 | |
2018-04-25 | renderer_opengl: Use correct byte order for framebuffer pixel format ABGR8. | bunnei | 1 | -2/+1 | |
2018-04-25 | gl_rasterizer_cache: Use CHAR_BIT for bpp conversions instead of 8. | bunnei | 2 | -4/+4 | |
2018-04-25 | gl_rasterizer_cache: Use GPU PAGE_BITS/SIZE, not CPU. | bunnei | 1 | -5/+5 | |
2018-04-25 | gl_rasterizer_cache: Use new logger. | bunnei | 1 | -4/+4 | |
2018-04-25 | gl_rasterizer_cache: Add a function for finding framebuffer GPU address. | bunnei | 3 | -0/+31 | |
2018-04-25 | gl_rasterizer_cache: Handle compressed texture sizes. | bunnei | 2 | -24/+65 | |
2018-04-25 | gl_rasterizer_cache: Update to be based on GPU addresses, not CPU addresses. | bunnei | 5 | -46/+67 | |
2018-04-24 | memory_manager: Make GpuToCpuAddress return an optional. | bunnei | 2 | -9/+9 | |
2018-04-24 | memory_manager: Use GPUVAdddr, not PAddr, for GPU addresses. | bunnei | 2 | -5/+5 | |
2018-04-24 | renderer_opengl: Silence a -Wdangling-else warning in DrawScreenTriangles() | Lioncash | 1 | -1/+2 | |
2018-04-23 | GPU: Support multiple enabled vertex arrays. | Subv | 2 | -43/+84 | |
The vertex arrays will be copied to the stream buffer one after the other, and the attributes will be set using the ARB_vertex_attrib_binding extension. yuzu now thus requires OpenGL 4.3 or the ARB_vertex_attrib_binding extension. | |||||
2018-04-23 | GPU: Implement the RGB10_A2 RenderTarget format, it will use the same format as the A2BGR10 texture format. | Subv | 1 | -0/+2 | |
2018-04-22 | GPU: Implement the A2BGR10 texture format. | Subv | 2 | -6/+14 | |
2018-04-21 | gl_shader_decompiler: Skip RRO instruction. | bunnei | 1 | -0/+4 | |
2018-04-21 | gl_shader_decompiler: Cleanup error logging. | bunnei | 1 | -14/+6 | |
2018-04-21 | shader_bytecode: Decode instructions based on bit strings. | bunnei | 1 | -20/+29 | |
2018-04-21 | ShaderGen: Implemented the KIL instruction, which is equivalent to 'discard'. | Subv | 1 | -1/+7 | |
2018-04-21 | ShaderGen: Implemented predicated instruction execution. | Subv | 1 | -0/+35 | |
Each predicated instruction will be wrapped in an `if (predicate) { instruction_body; }` in the GLSL, where `predicate` is one of the predicate boolean variables previously set by fsetp. | |||||
2018-04-21 | ShaderGen: Implemented the fsetp instruction. | Subv | 1 | -0/+72 | |
Predicate variables are now added to the generated shader code in the form of 'pX' where X is the predicate id. These predicate variables are initialized to false on shader startup and are set via the fsetp instructions. TODO: * Not all the comparison types are implemented. * Only the single-predicate version is implemented. | |||||
2018-04-21 | opengl: Remove unnecessary header inclusions | Lioncash | 4 | -11/+0 | |
2018-04-21 | gl_resource_manager: Add missing noexcept specifiers to move constructors and assignment operators | Lioncash | 1 | -20/+19 | |
Standard library containers may use std::move_if_noexcept to perform move operations. If a move cannot be performed under these circumstances, then a copy is attempted. Given we only intend for these types to be move-only this can be somewhat problematic. By defining these to be noexcept we prevent cases where copies may be attempted. | |||||
2018-04-21 | gl_rasterizer_cache: Make MatchFlags an enum class | Lioncash | 1 | -4/+9 | |
Prevents implicit conversions and scope pollution. | |||||
2018-04-20 | ShaderGen: Register id 255 is special and is hardcoded to return 0 (SR_ZERO). | Subv | 1 | -0/+2 | |
2018-04-20 | ShaderGen: Ignore the 'sched' instruction when generating shaders. | Subv | 1 | -0/+16 | |
The 'sched' instruction has a very convoluted encoding, but fortunately it seems to only appear on a fixed interval (once every 4 instructions). | |||||
2018-04-20 | math_util: Remove the Clamp() function | Lioncash | 2 | -16/+17 | |
C++17 adds clamp() to the standard library, so we can remove ours in favor of it. | |||||
2018-04-20 | common_funcs: Remove ARRAY_SIZE macro | Lioncash | 1 | -2/+2 | |
C++17 has non-member size() which we can just call where necessary. | |||||
2018-04-20 | renderer_opengl: Add missing header guards | Lioncash | 2 | -0/+4 | |
2018-04-20 | glsl_shader_decompiler: Use std::string_view instead of std::string for AddLine() | Lioncash | 1 | -1/+2 | |
This function doesn't need to take ownership of the string data being given to it, considering all we do is append the characters to the internal string instance. Instead, use a string view to simply reference the string data without any potential heap allocation. Now anything that is a raw const char* won't need to be converted to a std::string before appending. | |||||
2018-04-20 | glsl_shader_decompiler: Add AddNewLine() function to ShaderWriter | Lioncash | 1 | -6/+12 | |
Avoids constructing a std::string just to append a newline character | |||||
2018-04-20 | glsl_shader_decompiler: Add char overload for ShaderWriter's AddLine() | Lioncash | 1 | -4/+11 | |
Avoids constructing a std::string just to append a character. | |||||
2018-04-20 | glsl_shader_decompiler: Append indentation without constructing a separate std::string | Lioncash | 1 | -1/+5 | |
The interface of std::string already lets us append N copies of a character to an existing string. | |||||
2018-04-19 | ShaderGen: Implemented the fmul32i shader instruction. | Subv | 1 | -6/+16 | |
2018-04-19 | ShaderGen: Fixed a case where the TEXS instruction would use the same registers for the input and the output. | Subv | 1 | -2/+9 | |
It will now save the coords before writing the outputs in a subscope. | |||||
2018-04-19 | GPU: Add support for the DXT23 and DXT45 compressed texture formats. | Subv | 2 | -27/+26 | |
2018-04-19 | GPU: Implemented the B5G6R5 format. | Subv | 2 | -8/+23 | |
2018-04-18 | gl_shader_gen: Support vertical/horizontal viewport flipping. (#347) | bunnei | 3 | -4/+19 | |
* gl_shader_gen: Support vertical/horizontal viewport flipping. * fixup! gl_shader_gen: Support vertical/horizontal viewport flipping. | |||||
2018-04-18 | GLCache: Added boilerplate code to make supporting configurable texture component types. | Subv | 3 | -9/+69 | |
For now only the UNORM type is supported. | |||||
2018-04-18 | GLCache: Unify texture and framebuffer formats when converting to OpenGL. | Subv | 2 | -26/+13 | |
2018-04-18 | GPU: Texture format 8 and framebuffer format 0xD5 are actually ABGR8. | Subv | 2 | -10/+10 | |
2018-04-18 | GLCache: Take into account the texture's block height when caching and unswizzling. | Subv | 3 | -43/+43 | |
2018-04-18 | GLCache: Added a function to convert cached PixelFormats back to texture formats. | Subv | 1 | -0/+12 | |
TODO: The way we handle cached formats must change, framebuffer and texture formats are too different to keep them in the same place. | |||||
2018-04-18 | GPU: Allow using a configurable block height when unswizzling textures. | Subv | 1 | -1/+10 | |
2018-04-18 | gl_rasterizer_cache: Add missing LOG statements. | bunnei | 1 | -0/+3 | |
2018-04-18 | renderer_opengl: Implement BlendEquation and BlendFunc. | bunnei | 3 | -2/+91 | |
2018-04-17 | gl_shader_decompiler: Fix warnings with MarkAsUsed. | bunnei | 1 | -1/+2 | |
2018-04-17 | gl_shader_decompiler: Cleanup logging, updating to NGLOG_*. | bunnei | 1 | -24/+22 | |
2018-04-17 | gl_shader_decompiler: Implement several MUFU subops and abs_d. | bunnei | 1 | -7/+21 | |
2018-04-17 | gl_shader_decompiler: Fix swizzle in GetRegister. | bunnei | 1 | -1/+1 | |
2018-04-17 | gl_shader_decompiler: Implement FMUL/FADD/FFMA immediate instructions. | bunnei | 1 | -12/+39 | |
2018-04-17 | gl_shader_decompiler: Allow vertex position to be used in fragment shader. | bunnei | 2 | -16/+18 | |
2018-04-17 | gl_shader_decompiler: Implement IPA instruction. | bunnei | 1 | -0/+11 | |
2018-04-17 | gl_shader_decompiler: Add support for TEXS instruction. | bunnei | 1 | -7/+29 | |
2018-04-17 | gl_shader_decompiler: Use fragment output color for GPR 0-3. | bunnei | 1 | -0/+5 | |
2018-04-17 | gl_shader_decompiler: Partially implement MUFU. | bunnei | 1 | -2/+11 | |
2018-04-17 | MaxwellToGL: Implemented tex wrap mode 1 (Wrap, GL_REPEAT). | Subv | 1 | -0/+2 | |
2018-04-17 | MaxwellToGL: Added a TODO and partial implementation of maxwell wrap mode 4 (Clamp, GL_CLAMP). | Subv | 1 | -0/+5 | |
This clamp mode was removed from OpenGL as of 3.1, we can emulate it by using GL_CLAMP_TO_BORDER to get the border color of the texture, and then manually sampling the edge to mix them in the fragment shader. | |||||
2018-04-17 | gl_rendering: Use NGLOG* for changed code. | bunnei | 2 | -10/+11 | |
2018-04-17 | gl_rasterizer: Implement indexed vertex mode. | bunnei | 3 | -21/+46 | |
2018-04-15 | GPU: Use the same buffer names in the generated GLSL and the buffer uploading code. | Subv | 4 | -17/+24 | |
2018-04-15 | GPU: Don't use explicit binding points when uploading the constbuffers to opengl. | Subv | 3 | -7/+47 | |
The bindpoints will now be dynamically calculated based on the number of buffers used by the previous shader stage. | |||||
2018-04-15 | GPU: Don't use GetPointer when uploading the constbuffer data to the GPU. | Subv | 1 | -3/+4 | |
2018-04-15 | GPU: Use the buffer hints from the shader decompiler to upload only the necessary const buffers for each shader stage. | Subv | 3 | -31/+41 | |
2018-04-15 | shaders: Expose hints about used const buffers. | bunnei | 5 | -31/+146 | |
2018-04-15 | GPU: Upload the entirety of each constbuffer for each shader stage as SSBOs. | Subv | 4 | -14/+48 | |
We're going to need the shader generator to give us a mapping of the actual used const buffers to properly bind them to the shader. | |||||
2018-04-15 | GPU: Allow configuring ssbos in the opengl state manager. | Subv | 4 | -0/+30 | |
2018-04-15 | GPU: Added a function to determine whether a shader stage is enabled or not. | Subv | 1 | -3/+3 | |
2018-04-15 | shaders: Add NumTextureSamplers const, remove unused #pragma. | bunnei | 3 | -2/+5 | |
2018-04-14 | shaders: Address PR review feedback. | bunnei | 1 | -6/+8 | |
2018-04-14 | gl_shader_decompiler: Cleanup log statements. | bunnei | 1 | -15/+15 | |
2018-04-14 | shaders: Fix GCC and clang build issues. | bunnei | 2 | -2/+2 | |
2018-04-14 | gl_shader_decompiler: Implement negate, abs, etc. and lots of cleanup. | bunnei | 1 | -20/+57 | |
2018-04-14 | gl_shader_decompiler: Add shader stage hint. | bunnei | 2 | -5/+12 | |
2018-04-14 | renderer_opengl: Fix Morton copy byteswap, etc. | bunnei | 1 | -5/+5 | |
2018-04-14 | gl_shader_manager: Implement SetShaderSamplerBindings. | bunnei | 1 | -0/+8 | |
2018-04-14 | gl_rasterizer: Generate shaders and upload uniforms. | bunnei | 2 | -32/+77 | |
2018-04-14 | gl_shader_decompiler: Basic impl. for very simple vertex shaders. | bunnei | 2 | -16/+311 | |
- Tested with Puyo Puyo Tetris and Cave Story+ | |||||
2018-04-14 | gl_shader_manager: Cleanup and consolidate uniform handling. | bunnei | 2 | -26/+24 | |
2018-04-14 | gl_rasterizer: Use shader program manager, remove test shader. | bunnei | 2 | -196/+31 | |
2018-04-14 | renderer_opengl: Add gl_shader_manager class. | bunnei | 2 | -0/+207 | |
2018-04-14 | maxwell_to_gl: Add a few types, etc. | bunnei | 1 | -0/+10 | |
2018-04-14 | gl_shader_gen: Add hashable setup/config structs. | bunnei | 2 | -29/+50 | |
2018-04-14 | gl_shader_util: Add missing includes. | bunnei | 1 | -0/+2 | |
2018-04-14 | renderer_opengl: Use OGLProgram instead of OGLShader. | bunnei | 6 | -6/+6 | |
2018-04-14 | gl_shader_util: Grab latest upstream. | bunnei | 2 | -149/+74 | |
2018-04-14 | gl_resource_manager: Grab latest upstream. | bunnei | 1 | -30/+86 | |
2018-04-14 | gl_shader_decompiler: Add skeleton code from Citra for shader analysis. | bunnei | 2 | -44/+142 | |
2018-04-07 | Fix clang format issues | James Rowe | 1 | -1/+1 | |
2018-04-07 | GL: Set up the textures used for each draw call. | Subv | 2 | -2/+39 | |
Each Maxwell shader stage can have an arbitrary number of textures, but we're limited to a certain number in OpenGL. We try to only use the minimum amount of host textures by not keeping a 1:1 relation between guest texture ids and host texture ids, ie, guest texture id 8 can be host texture id 0 if it's the only texture used in the guest shader program. This mapping will have to be passed to the shader decompiler so it can rewrite the texture accesses. | |||||
2018-04-07 | GL: Bind the textures to the shaders used for drawing. | Subv | 1 | -2/+11 | |
2018-04-07 | GLCache: Specialize the MortonCopy function for the DXT1 texture format. | Subv | 1 | -1/+15 | |
It will now use the UnswizzleTexture function instead of the MortonCopyPixels128, which doesn't seem to work for textures. | |||||
2018-04-07 | GLCache: Implemented GetTextureSurface. | Subv | 1 | -3/+28 | |
2018-04-07 | GLCache: Support uploading compressed textures to the GPU. | Subv | 1 | -5/+17 | |
Compressed texture formats like DXT1, DXT2, DXT3, etc will use this to ease the load on the CPU. | |||||
2018-04-07 | GL: Remove remaining references to 3DS-specific pixel formats | Subv | 1 | -83/+22 | |
2018-04-07 | RasterizerCache: Remove 3DS-specific pixel formats. | Subv | 2 | -71/+32 | |
We're only left with RGB8 and DXT1 for now. More will be added as they are needed. | |||||
2018-04-07 | GL: Create the sampler objects when starting up the GL rasterizer. | Subv | 1 | -0/+6 | |
2018-04-07 | GL: Ported the SamplerInfo struct from citra. | Subv | 2 | -1/+59 | |
2018-04-07 | GL: Rename PicaTexture to MaxwellTexture. | Subv | 2 | -2/+2 | |
2018-04-07 | GL: Added functions to convert Maxwell tex filters and wrap modes to OpenGL. | Subv | 1 | -0/+23 | |
2018-04-04 | gl_rasterizer_cache.cpp: Update from citra to yuzu | N00byKing | 1 | -1/+1 | |
2018-04-04 | gl_rasterizer_cache.h: Update from citra to yuzu | N00byKing | 1 | -3/+3 | |
2018-04-04 | renderer_opengl.h: Update from citra to yuzu | N00byKing | 1 | -2/+2 | |
2018-03-27 | renderer_opengl: Use better naming for DrawScreens and DrawSingleScreen. | bunnei | 2 | -8/+8 | |
2018-03-27 | gl_rasterizer: Move code to bind framebuffer surfaces before draw to its own function. | bunnei | 2 | -22/+31 | |
2018-03-27 | gl_rasterizer: Add a SyncViewport method. | bunnei | 2 | -18/+20 | |
2018-03-27 | gl_rasterizer: Move PrimitiveTopology check to MaxwellToGL. | bunnei | 2 | -11/+12 | |
2018-03-27 | gl_rasterizer: Use ReadBlock instead of GetPointer for SetupVertexArray. | bunnei | 1 | -1/+1 | |
2018-03-27 | gl_rasterizer: Normalize vertex array data as appropriate. | bunnei | 1 | -1/+1 | |
2018-03-27 | maxwel_to_gl: Fix string formatting in log statements. | bunnei | 1 | -2/+2 | |
2018-03-27 | rasterizer: Rename DrawTriangles to DrawArrays. | bunnei | 2 | -3/+3 | |
2018-03-27 | gl_rasterizer: Use passthrough shader for SetupVertexShader. | bunnei | 1 | -1/+2 | |
2018-03-27 | renderer_opengl: Logging, etc. cleanup. | bunnei | 5 | -32/+33 | |
2018-03-27 | renderer_opengl: Remove framebuffer RasterizerFlushVirtualRegion hack. | bunnei | 1 | -5/+0 | |
2018-03-27 | gl_rasterizer_cache: Implement UpdatePagesCachedCount. | bunnei | 2 | -8/+37 | |
2018-03-27 | gl_rasterizer: Implement SetupVertexArray. | bunnei | 1 | -20/+38 | |
2018-03-27 | gl_rasterizer_cache: Fix an ASSERT_MSG. | bunnei | 1 | -1/+1 | |
2018-03-27 | maxwell_to_gl: Add module and function for decoding VertexType. | bunnei | 1 | -0/+40 | |
2018-03-27 | gl_rasterizer: Use 32 texture units instead of 3. | bunnei | 3 | -2/+3 | |
2018-03-27 | gl_rasterizer: Implement DrawTriangles. | bunnei | 1 | -1/+194 | |
2018-03-27 | gl_rasterizer: Implement AnalyzeVertexArray. | bunnei | 1 | -1/+21 | |
2018-03-27 | gl_rasterizer_cache: MortonCopy Switch-style. | bunnei | 1 | -72/+32 | |
2018-03-27 | gl_rasterizer_cache: Implement GetFramebufferSurfaces. | bunnei | 2 | -4/+104 | |
2018-03-27 | renderer_opengl: Only draw the screen if a framebuffer is specified. | bunnei | 1 | -6/+7 | |
2018-03-24 | gl_rasterizer: Fake render in green, because it's cooler. | bunnei | 1 | -1/+1 | |
2018-03-24 | gl_rasterizer: Log warning instead of sync'ing unimplemented funcs. | bunnei | 1 | -7/+1 | |
2018-03-23 | gl_rasterizer_cache: Add missing include for vm_manager. | bunnei | 1 | -0/+1 | |
2018-03-23 | renderer_opengl: Only invalidate the framebuffer region, not flush. | bunnei | 1 | -4/+3 | |
2018-03-23 | renderer_opengl: Fixes for properly flushing & rendering the framebuffer. | bunnei | 1 | -6/+12 | |
2018-03-23 | RasterizerCacheOpenGL: FlushAll should flush full memory region. | bunnei | 1 | -1/+1 | |
2018-03-23 | rasterizer: Flush and invalidate regions should be 64-bit. | bunnei | 2 | -6/+6 | |
2018-03-23 | renderer_opengl: Add framebuffer_transform_flags member variable. | bunnei | 1 | -2/+2 | |
2018-03-23 | renderer_opengl: Better handling of framebuffer transform flags. | bunnei | 1 | -2/+16 | |
2018-03-23 | renderer_opengl: Use accelerated framebuffer load with LoadFBToScreenInfo. | bunnei | 1 | -31/+25 | |
2018-03-23 | gl_rasterizer: Implement AccelerateDisplay method from Citra. | bunnei | 2 | -2/+44 | |
2018-03-23 | LoadGLBuffer: Use bytes_per_pixel, not bits. | bunnei | 1 | -1/+2 | |
2018-03-23 | gl_rasterizer_cache: LoadGLBuffer should do a morton copy. | bunnei | 1 | -16/+5 | |
2018-03-23 | video_core: Move MortonCopyPixels128 to utils header. | bunnei | 1 | -111/+1 | |
2018-03-23 | video_core: Remove usage of PAddr and replace with VAddr. | bunnei | 4 | -35/+35 | |
2018-03-23 | video_core: Move FramebufferInfo to FramebufferConfig in GPU. | bunnei | 4 | -34/+40 | |
2018-03-23 | gl_rasterizer: Replace a bunch of UNIMPLEMENTED with ASSERT. | bunnei | 2 | -20/+20 | |
2018-03-23 | gl_rasterizer: Add a simple passthrough shader in lieu of shader generation. | bunnei | 2 | -5/+68 | |
2018-03-23 | renderer: Create rasterizer and cleanup. | bunnei | 1 | -2/+2 | |
2018-03-20 | renderer_gl: Port boilerplate rasterizer code over from Citra. | bunnei | 3 | -1/+431 | |
2018-03-20 | gl_shader_util: Sync latest version with Citra. | bunnei | 3 | -46/+116 | |
2018-03-20 | renderer_gl: Port over gl_shader_gen module from Citra. | bunnei | 2 | -0/+86 | |
2018-03-20 | renderer_gl: Port over gl_shader_decompiler module from Citra. | bunnei | 2 | -0/+85 | |
2018-03-20 | renderer_gl: Port over gl_rasterizer_cache module from Citra. | bunnei | 2 | -0/+1712 | |
2018-03-20 | gl_resource_manager: Sync latest version with Citra. | bunnei | 1 | -8/+77 | |
2018-03-20 | renderer_gl: Port over gl_stream_buffer module from Citra. | bunnei | 2 | -0/+216 | |
2018-03-20 | gl_state: Sync latest version with Citra. | bunnei | 2 | -47/+111 | |
2018-02-12 | renderer_opengl: Support framebuffer flip vertical. | bunnei | 2 | -5/+12 | |
2018-01-27 | memory: Replace all memory hooking with Special regions | MerryMage | 1 | -1/+1 | |
2018-01-21 | Format: Run the new clang format on everything | James Rowe | 1 | -1/+1 | |
2018-01-16 | clang-format | MerryMage | 1 | -1/+2 | |
2018-01-15 | renderer_gl: Clear screen to black before rendering framebuffer. | bunnei | 2 | -5/+8 | |
2018-01-15 | renderer: Render previous frame when no new one is available. | bunnei | 2 | -15/+16 | |
2018-01-13 | Fix build on macOS and linux | MerryMage | 1 | -0/+1 | |
2018-01-13 | Remove references to PICA and rasterizers in video_core | James Rowe | 9 | -4676/+0 | |
2018-01-12 | renderer_opengl: Fix LOG_TRACE in LoadFBToScreenInfo. | bunnei | 1 | -1/+1 | |
2018-01-11 | renderer_opengl: Support rendering Switch framebuffer. | bunnei | 2 | -136/+78 | |
2018-01-11 | renderer_opengl: Add MortonCopyPixels function for Switch framebuffer. | bunnei | 1 | -0/+111 | |
2018-01-11 | renderer_opengl: Update DrawScreens for Switch. | bunnei | 2 | -23/+11 | |
2018-01-01 | core/video_core: Fix a bunch of u64 -> u32 warnings. | bunnei | 2 | -4/+4 | |
2017-09-30 | Fixed type conversion ambiguity | Huw Pascoe | 1 | -2/+2 | |
2017-09-17 | Fixed framebuffer warning | Huw Pascoe | 1 | -7/+18 | |
2017-09-03 | pica/lighting: only apply Fresnel factor for the last light | wwylele | 1 | -4/+5 | |
2017-08-31 | video_core: report telemetry for gas mode | wwylele | 1 | -0/+6 | |
2017-08-25 | gl_rasterizer: implement custom clip plane | wwylele | 3 | -34/+83 | |
2017-08-22 | gl_rasterizer/lighting: more accurate CP formula | wwylele | 1 | -2/+2 | |
2017-08-21 | gl_shader_gen: simplify and clarify the depth transformation between vertex shader and fragment shader | wwylele | 1 | -2/+5 | |
2017-08-21 | gl_rasterizer: add clipping plane z<=0 defined in PICA | wwylele | 4 | -0/+21 | |
2017-08-11 | gl_shader_gen: don't call SampleTexture when bump map is not used | wwylele | 1 | -4/+5 | |
2017-07-18 | telemetry: Log performance, configuration, and system data. | bunnei | 2 | -6/+16 | |
2017-07-01 | gl_rasterizer: use texture buffer for proctex LUT | wwylele | 5 | -70/+80 | |
2017-06-22 | gl_rasterizer: use texture buffer for fog LUT | wwylele | 5 | -27/+23 | |
2017-06-22 | gl_rasterizer: create the texture before applying the state | wwylele | 1 | -2/+2 | |
this is a rebasing error from #2792. It doesn't affect much though, because the later more Apply() call fixes/hides it | |||||
2017-06-21 | gl_state: reset 1d textures | wwylele | 1 | -0/+14 | |
2017-06-21 | gl_rasterizer: fix glGetUniformLocation type | wwylele | 1 | -8/+8 | |
2017-06-21 | gl_rasterizer: manage texture ids in one place | wwylele | 3 | -31/+55 | |
2017-06-21 | gl_rasterizer/lighting: fix LUT interpolation | wwylele | 5 | -113/+91 | |
2017-06-18 | gl_rasterizer/lighting: use the formula from the paper for germetic factor | wwylele | 1 | -8/+8 | |
2017-06-15 | gl_rasterizer/lighting: implement geometric factor | wwylele | 2 | -1/+18 | |
2017-06-11 | gl_rasterizer/lighting: Implement tangent mapping | wwylele | 1 | -7/+12 | |
2017-06-11 | gl_rasterizer/lighting: implement lut input 5 (CP) | wwylele | 1 | -2/+25 | |
2017-06-10 | gl_rasterizer_cache: depth write is disabled if allow_depth_stencil_write is false | wwylele | 1 | -4/+5 | |
2017-06-10 | OpenGL: Update comment on AreQuaternionsOpposite with new information | Yuri Kunde Schlesner | 1 | -8/+11 | |
While debugging the software renderer implementation, it was noticed that this is actually exactly what the hardware does, upgrading the status of this "hack" to being a proper implementation. And there was much rejoicing. | |||||
2017-06-04 | pica/rasterizer: implement/stub texture wrap mode 4-7 | wwylele | 1 | -0/+13 | |
2017-05-30 | gl_rasterizer: implement spot light | wwylele | 1 | -6/+24 | |
2017-05-30 | gl_rasterizer: sync spot light status | wwylele | 4 | -2/+61 | |
2017-05-28 | Move screen size constants from video_core to core | Yuri Kunde Schlesner | 1 | -12/+8 | |
video_core didn't even properly use them, and they were the source of many otherwise-unnecessary dependencies from core to video_core. | |||||
2017-05-28 | OpenGL: Remove unused RendererOpenGL fields | Yuri Kunde Schlesner | 2 | -11/+2 | |
2017-05-27 | OpenGL: Improve accuracy of quaternion interpolation | Yuri Kunde Schlesner | 1 | -3/+5 | |
Current order of operations (rotate then normalize) seems to produce a lot more distortion than normalizing and then rotating. This makes Citra results match pretty closesly with hardware, and indicates that hardware may also be using lerp instead of slerp to interpolate the quaternions. | |||||
2017-05-27 | gl_shader: refactor texture sampler into its own function | wwylele | 1 | -40/+39 | |
2017-05-20 | gl_rasterizer: implement procedural texture | wwylele | 6 | -7/+600 | |
2017-05-05 | pica: shader_dirty if texture2 coord changed | wwylele | 2 | -1/+5 | |
2017-05-03 | pica: use correct coordinates for texture 2 | wwylele | 2 | -3/+15 | |
2017-04-20 | gl_shader_gen: remove TODO about Lerp behaviour verification. The implementation is verified against hardware | wwylele | 1 | -2/+0 | |
2017-04-19 | rasterizer: implement combiner operation 7 (Dot3_RGBA) | wwylele | 1 | -11/+20 | |
2017-04-17 | OpenGL: Pass Pica regs via parameter | Yuri Kunde Schlesner | 3 | -7/+5 | |
2017-04-17 | OpenGL: Move PicaShaderConfig to gl_shader_gen.h | Yuri Kunde Schlesner | 4 | -202/+206 | |
Also move the implementation of CurrentConfig to the cpp file. | |||||
2017-04-17 | OpenGL: Move Attributes enum to a more appropriate file | Yuri Kunde Schlesner | 3 | -12/+11 | |
2017-03-01 | Input: remove unused stuff & clean up | wwylele | 1 | -0/+1 | |
1. removed zl, zr and c-stick from HID::PadState. They are handled by IR, not HID 2. removed button handling in EmuWindow 3. removed key_map 4. cleanup #include | |||||
2017-02-27 | Core: Re-write frame limiter | Yuri Kunde Schlesner | 1 | -3/+3 | |
Now based on std::chrono, and also works in terms of emulated time instead of frames, so we can in the future frame-limit even when the display is disabled, etc. The frame limiter can also be enabled along with v-sync now, which should be useful for those with displays running at more than 60 Hz. | |||||
2017-02-27 | Core: Make PerfStats internally locked | Yuri Kunde Schlesner | 1 | -8/+2 | |
More ergonomic to use and will be required for upcoming changes. | |||||
2017-02-27 | Remove built-in (non-Microprofile) profiler | Yuri Kunde Schlesner | 1 | -8/+0 | |
2017-02-27 | Add performance statistics to status bar | Yuri Kunde Schlesner | 1 | -0/+9 | |
2017-02-18 | OpenGL: Check if uniform block exists before updating it (#2581) | Jannik Vogel | 1 | -29/+30 | |
2017-02-09 | OpenGL: Remove unused duplicate of IsPassThroughTevStage | Yuri Kunde Schlesner | 1 | -12/+0 | |
This copy was left behind when the shader generation code was moved to a separate file. | |||||
2017-02-09 | VideoCore: Split regs.h inclusions | Yuri Kunde Schlesner | 5 | -17/+29 | |
2017-02-04 | VideoCore: Move Regs to its own file | Yuri Kunde Schlesner | 5 | -5/+5 | |
2017-02-04 | VideoCore: Split lighting regs from Regs struct | Yuri Kunde Schlesner | 3 | -37/+45 | |
2017-02-04 | VideoCore: Split framebuffer regs from Regs struct | Yuri Kunde Schlesner | 6 | -70/+84 | |
2017-02-04 | VideoCore: Split texturing regs from Regs struct | Yuri Kunde Schlesner | 6 | -85/+91 | |
2017-02-04 | VideoCore: Split rasterizer regs from Regs struct | Yuri Kunde Schlesner | 3 | -32/+37 | |
2017-02-04 | Pica/Texture: Simplify/cleanup texture tile addressing | Yuri Kunde Schlesner | 1 | -2/+1 | |
2017-02-04 | VideoCore: Move LookupTexture out of debug_utils.h | Yuri Kunde Schlesner | 1 | -5/+6 | |
2017-01-30 | VideoCore: Change misleading register names | Yuri Kunde Schlesner | 2 | -2/+2 | |
A few registers had names such as "count" or "number" when they actually contained the maximum (that is, count - 1). This can easily lead to hard to notice off by one errors. | |||||
2017-01-30 | video_core: gl_rasterizer_cache.cpp removed unused type alias | Kloen | 1 | -1/+0 | |
2017-01-30 | video_core: gl_rasterizer.cpp removed unused type alias | Kloen | 1 | -2/+0 | |
2017-01-29 | video_core: silence unused-local-typedef boost related warning on GCC | Kloen | 1 | -0/+7 | |
2017-01-23 | video_core: gl_rasterizer float to int warning | Kloen | 1 | -1/+2 | |
2017-01-23 | video_core: fix gl_rasterizer warning on MSVC | Kloen | 1 | -1/+1 | |
2017-01-07 | config: Add option for specifying screen resolution scale factor. | bunnei | 1 | -3/+10 | |
2016-12-25 | Minor cleanup in GLSL code | Jannik Vogel | 1 | -3/+2 | |
2016-12-25 | Offset lighting LUT samples correctly | Jannik Vogel | 1 | -7/+7 | |
2016-12-23 | core: Move emu_window and key_map into core | MerryMage | 2 | -2/+2 | |
* Removes circular dependences (common should not depend on core) | |||||
2016-12-19 | Use GL_TRUE when setting color_mask | Albin Bernhardsson | 1 | -4/+4 | |
2016-12-15 | VideoCore: Make profiling scope more representative | Yuri Kunde Schlesner | 1 | -0/+12 | |
2016-12-07 | OpenGL: Drop framebuffer completeness check. | Markus Wick | 5 | -47/+8 | |
This OpenGL call synchronize the worker thread of the nvidia blob. It can be verified on linux with the __GL_THREADED_OPTIMIZATIONS=1 environment variable. Those errors should not happen on tested drivers. It was used as a workaround for https://bugs.freedesktop.org/show_bug.cgi?id=94148 | |||||
2016-12-05 | ASSERT that shader was linked successfully | Jannik Vogel | 1 | -0/+2 | |
2016-12-05 | Report shader uniform block size in case of mismatch | Jannik Vogel | 1 | -1/+3 | |
2016-12-05 | Print broken shader code to log | Jannik Vogel | 1 | -3/+9 | |
2016-12-04 | OpenGL: Non-zero stride only makes sense for linear buffers | Yuri Kunde Schlesner | 3 | -7/+11 | |
2016-12-04 | OpenGL: Ensure framebuffer binding is restored if completion check fails | Yuri Kunde Schlesner | 1 | -10/+7 | |
2016-12-04 | OpenGL: Fix DisplayTransfer accel when input width != output width | Yuri Kunde Schlesner | 1 | -1/+10 | |
Fixes #2246, #2261 | |||||
2016-11-30 | ClangFormat: Fixed the clang-format errors | Subv | 1 | -4/+8 | |
2016-11-29 | Build: Fixed a few warnings. | Subv | 1 | -4/+4 | |
2016-11-27 | RasterizerGL: Use GL_TRUE and 0xFF in the stencil and depth masks instead of simply true and -1 | Subv | 2 | -4/+4 | |
2016-11-27 | Rasterizer/Memfill: Set the correct stencil write mask when clearing the stencil buffer. | Subv | 1 | -1/+1 | |
2016-11-05 | Add default hotkey to swap primary screens. | James Rowe | 1 | -3/+2 | |
Also minor style changes | |||||
2016-11-05 | Support additional screen layouts. | James Rowe | 1 | -6/+12 | |
Allows users to choose a single screen layout or a large screen layout. Adds a configuration option to change the prominent screen. | |||||
2016-09-30 | OpenGL: Take cached viewport sub-rect into account for scissor | Yuri Kunde Schlesner | 3 | -29/+25 | |
Fixes #1938 | |||||
2016-09-29 | rasterizer: separate TextureCopy from DisplayTransfer | wwylele | 2 | -5/+6 | |
2016-09-21 | Use negative priorities to avoid special-casing the self-include | Yuri Kunde Schlesner | 6 | -6/+6 | |
2016-09-21 | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | 11 | -42/+6 | |
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation. | |||||
2016-09-19 | Manually tweak source formatting and then re-run clang-format | Yuri Kunde Schlesner | 8 | -46/+40 | |
2016-09-18 | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | 12 | -486/+789 | |
2016-08-30 | OpenGL: Avoid error on unsupported lighting LUT | Jannik Vogel | 1 | -0/+1 | |
2016-06-28 | OpenGL: Add scaled resolution support to scissor | Yuri Kunde Schlesner | 4 | -3/+16 | |
2016-06-28 | PICA: Scissor fixes and cleanups | Yuri Kunde Schlesner | 3 | -21/+22 | |
2016-06-28 | PICA: Implement scissor test | Subv | 3 | -1/+53 | |
2016-06-07 | OpenGL: Implement fog | Jannik Vogel | 5 | -7/+124 | |
2016-06-07 | OpenGL: Avoid undefined behaviour for UNIFORM_BLOCK_DATA_SIZE | Jannik Vogel | 2 | -6/+8 | |
2016-06-01 | gsp::gpu: Reset g_thread_id in UnregisterInterruptRelayQueue | mailwl | 1 | -1/+1 | |
2016-05-23 | OpenGL: Set shader_dirty on lighting changes | Jannik Vogel | 1 | -0/+23 | |
2016-05-23 | Pica: Name LightSrc.config register | Jannik Vogel | 1 | -2/+2 | |
2016-05-23 | Pica: Name lighting.config0 and .config1 registers | Jannik Vogel | 1 | -12/+12 | |
2016-05-23 | OpenGL: Use uniforms for dist_atten_bias and dist_atten_scale | Jannik Vogel | 3 | -8/+84 | |
2016-05-14 | OpenGL: Only update depth uniforms if the depth changed | Jannik Vogel | 2 | -9/+22 | |
2016-05-14 | OpenGL: value-initialize variables which cause uninitialised access otherwise | Jannik Vogel | 1 | -2/+2 | |
2016-05-12 | OpenGL: Support blend equation | Jannik Vogel | 4 | -0/+31 | |
2016-05-11 | OpenGL: Implement texture type 3 | Jannik Vogel | 4 | -35/+67 | |
2016-05-10 | gl_rasterizer: Fix compilation for debug builds | Lioncash | 1 | -1/+1 | |
2016-05-10 | OpenGL: Implement W-Buffers and fix depth-mapping | Jannik Vogel | 3 | -4/+23 | |
2016-05-10 | Pica: Implement W-Buffer in SW rasterizer | Jannik Vogel | 1 | -2/+2 | |
2016-05-07 | fixup simple type conversions where possible | Alexander Laties | 2 | -2/+2 | |
2016-05-06 | Frontends, VideoCore: Move glad initialisation to the frontend | Emmanuel Gil Peyrot | 1 | -6/+0 | |
On SDL2 this allows it to use SDL_GL_GetProcAddress() instead of the default function loader, and fixes a crash when using apitrace with an EGL context. On Qt we will need to migrate from QGLWidget to QOpenGLWidget and QOpenGLContext before we can use gladLoadGLLoader() instead of gladLoadGL(), since the former doesn’t expose a function loader. | |||||
2016-05-03 | Pica: Use a union for PicaShaderConfig | Jannik Vogel | 3 | -125/+139 | |
2016-05-03 | Pica: Add TevStageConfigRaw to PicaShaderConfig (MSVC workaround) | Jannik Vogel | 2 | -2/+23 | |
2016-05-03 | Pica: Make PicaShaderConfig trivially_copyable and clear it before use | Jannik Vogel | 1 | -21/+28 | |
2016-05-03 | OpenGL: Don't copy const_color (Reverts #1745) | Jannik Vogel | 1 | -2/+3 | |
2016-05-01 | OpenGL: Copy TevStageConfig using a loop. Fixes bug: const_color not copied | Jannik Vogel | 1 | -30/+11 | |
2016-04-30 | OpenGL: border_color was never set. Fixed. (#1740) | Jannik Vogel | 1 | -0/+1 | |
2016-04-30 | VideoCore: Run include-what-you-use and fix most includes. | Emmanuel Gil Peyrot | 12 | -24/+76 | |
2016-04-29 | Common: Remove section measurement from profiler (#1731) | Yuri Kunde Schlesner | 1 | -1/+0 | |
This has been entirely superseded by MicroProfile. The rest of the code can go when a simpler frametime/FPS meter is added to the GUI. | |||||
2016-04-22 | HWRasterizer: reorder declarations to match defs | tfarley | 1 | -9/+9 | |
2016-04-22 | HWRasterizer: sync specular uniform for new shaders | tfarley | 1 | -0/+2 | |
2016-04-21 | HWRasterizer: Texture forwarding | tfarley | 8 | -738/+1347 | |
2016-04-10 | OpenGL: Implement color combiner Operation::Dot3_RGB | Jannik Vogel | 1 | -0/+3 | |
2016-04-08 | OpenGL: Respect buffer-write allow registers | Jannik Vogel | 1 | -6/+28 | |
2016-04-08 | OpenGL: Split buffer-write mask sync into seperate functions | Jannik Vogel | 2 | -8/+39 | |
2016-04-08 | OpenGL: Keep stencil-test and framebuffer.depth_format in sync | Jannik Vogel | 1 | -0/+1 | |
2016-04-05 | Common: Remove Common::make_unique, use std::make_unique | MerryMage | 2 | -4/+4 | |
2016-04-03 | OpenGL: Fix a double framebuffer completeness checks. | Emmanuel Gil Peyrot | 1 | -4/+6 | |
2016-04-03 | OpenGL: Check for framebuffer completeness | Jannik Vogel | 1 | -0/+3 | |
2016-04-01 | Avoid warnings by casting to size_t for ARRAY_SIZE() comparisons | Jannik Vogel | 1 | -6/+6 | |
2016-03-24 | OpenGL: Don't attempt to draw empty triangle batches | Yuri Kunde Schlesner | 1 | -0/+3 | |
Our code did not handle this well, causing random crashes in some situations. | |||||
2016-03-08 | Improve error report from Init() functions | LittleWhite | 2 | -2/+8 | |
Add error popup when citra initialization failed | |||||
2016-03-06 | Pica: Write depth value even when depth test is disabled | Yuri Kunde Schlesner | 1 | -2/+4 | |
This has been confirmed on hardware. Fixes Etrian Odyssey IV. | |||||
2016-03-03 | Add immediate mode vertex submission | Dwayne Slater | 2 | -0/+2 | |
2016-02-26 | renderer_opengl: Initalise fragment shader LUT textures | MerryMage | 1 | -0/+4 | |
2016-02-05 | pica: Cleanup lighting register definitions and documentation. | bunnei | 1 | -15/+15 | |
2016-02-05 | gl_rasterizer: Use alignas(16) instead of explicit padding. | bunnei | 1 | -13/+6 | |
2016-02-05 | renderer_opengl: Use GLvec3/GLvec4 aliases for commonly used types. | bunnei | 4 | -14/+18 | |
2016-02-05 | gl_rasterizer: Fix issue with interpolation of opposite quaternions. | bunnei | 2 | -4/+32 | |
2016-02-05 | pica_types: Replace float24/20/16 with a template class. | bunnei | 2 | -9/+9 | |
2016-02-05 | gl_rasterizer: Remove unnecessary casts. | bunnei | 1 | -6/+6 | |
2016-02-05 | gl_rasterizer: Fix PicaShaderConfig on GCC. | bunnei | 1 | -29/+27 | |
2016-02-05 | gl_rasterizer: Initial implementation of bump mapping. | bunnei | 2 | -5/+33 | |
2016-02-05 | gl_shader_gen: Fix bug in LUT range (should within range [0, 255] not [0, 256]). | bunnei | 1 | -3/+3 | |
2016-02-05 | gl_shader_gen: Implement lighting red, green, and blue reflection. | bunnei | 2 | -18/+62 | |
2016-02-05 | gl_shader_gen: View should be normalized. | bunnei | 1 | -2/+2 | |
2016-02-05 | gl_shader_gen: Implement fragment lighting fresnel effect. | bunnei | 2 | -9/+33 | |
2016-02-05 | gl_shader_gen: Implement fragment lighting specular 1 component. | bunnei | 2 | -3/+22 | |
2016-02-05 | gl_shader_gen: Add support for D0 LUT scaling. | bunnei | 2 | -2/+4 | |
2016-02-05 | gl_shader_gen: Refactor lighting config to match Pica register naming. | bunnei | 2 | -42/+48 | |
- Also implement D0 LUT enable. | |||||
2016-02-05 | pica: Cleanup and add some comments to lighting registers. | bunnei | 1 | -1/+1 | |
2016-02-05 | gl_rasterizer: Minor naming refactor on Pica register naming. | bunnei | 1 | -5/+5 | |
2016-02-05 | gl_shader_gen: Reorganize and cleanup lighting code. | bunnei | 1 | -100/+107 | |
- No functional difference. | |||||
2016-02-05 | gl_shader_gen: Fix directional lights. | bunnei | 1 | -1/+1 | |
2016-02-05 | gl_shader_gen: Fix bug with lighting where clamp highlights was only applied to last light. | bunnei | 1 | -6/+6 | |
2016-02-05 | gl_shader_gen: View vector needs to be normalized when computing half angle vector. | bunnei | 1 | -3/+4 | |
2016-02-05 | renderer_opengl: Use textures for fragment shader LUTs instead of UBOs. | bunnei | 5 | -27/+64 | |
- Gets us LUT interpolation for free. - Some older Intel GPU drivers did not support the big UBOs needed to store the LUTs. | |||||
2016-02-05 | renderer_opengl: Initial implementation of basic specular lighting. | bunnei | 3 | -12/+158 | |
2016-02-05 | renderer_opengl: Implement HW fragment lighting distance attenuation. | bunnei | 2 | -17/+38 | |
2016-02-05 | renderer_opengl: Implement HW fragment lighting LUTs within our default UBO. | bunnei | 3 | -15/+66 | |
2016-02-05 | renderer_opengl: Implement diffuse component of HW fragment lighting. | bunnei | 5 | -5/+259 | |
2016-02-03 | hwrasterizer: Use proper cached fb addr/size | tfarley | 2 | -42/+34 | |
2016-02-03 | OpenGL: Downgrade GL_DEBUG_SEVERITY_NOTIFICATION to Debug logging level | Yuri Kunde Schlesner | 1 | -2/+0 | |
The nVidia driver is *extremely* spammy on this category, sending a message on every buffer or texture upload, slowing down the emulator and making the log useless. | |||||
2016-01-21 | hwrasterizer: Use depth offset | tfarley | 3 | -2/+24 | |
2015-12-08 | VideoCore: Unify interface to OpenGL and SW rasterizers | Yuri Kunde Schlesner | 3 | -38/+5 | |
This removes explicit checks sprinkled all over the codebase to instead just have the SW rasterizer expose an implementation with no-ops for most operations. | |||||
2015-12-07 | VideoCore: Rename HWRasterizer methods to be less confusing | Yuri Kunde Schlesner | 2 | -6/+6 | |
2015-12-07 | OpenGL: Rename cache functions to better match what they actually do | Yuri Kunde Schlesner | 3 | -12/+11 | |
2015-12-05 | OpenGL: Flip framebuffers during transfer rather than when rendering | Yuri Kunde Schlesner | 2 | -12/+11 | |
2015-12-05 | OpenGL: Add support for glFrontFace in the state tracker | Yuri Kunde Schlesner | 2 | -0/+6 | |
2015-12-01 | PICA: Properly emulate 1-stage delay in the combiner buffer | Yuri Kunde Schlesner | 1 | -7/+11 | |
This was discovered and verified by @fincs. The tev combiner buffer actually lags behind by one stage, meaning stage 1 reads the initial color, stage 2 reads stage 0's output, and so on. Fixes character portraits in Fire Emblem: Awakening and world textures in Zelda: ALBW. Closes #1140. | |||||
2015-11-26 | renderer_opengl: Fix uniform issues introduced with kemenaran/avoid-explicit-uniform-location. | bunnei | 2 | -6/+8 | |
2015-11-25 | Use regular uniform location | Pierre de La Morinerie | 3 | -15/+5 | |
The support for GL_ARB_explicit_uniform_location is not that good (53% according to http://feedback.wildfiregames.com/report/opengl/feature/GL_ARB_explicit_uniform_location). This fix the shader compilation on Intel HD 4000 (#1222). | |||||
2015-11-19 | FragShader: Use an UBO instead of several individual uniforms | Subv | 6 | -13/+67 | |
2015-10-24 | OpenGL: Log GL_KHR_debug messages we receive | Emmanuel Gil Peyrot | 1 | -0/+57 | |
This allows the driver to communicate errors, warnings and improvement suggestions about our usage of the API. | |||||
2015-10-22 | gl_shader_gen: Use explicit locations for vertex shader attributes. | bunnei | 2 | -15/+9 | |
2015-10-22 | gl_shader_gen: Optimize code for AppendAlphaTestCondition. | bunnei | 1 | -16/+11 | |
- Also add a comment to AppendColorCombiner. | |||||
2015-10-22 | gl_rasterizer: Define enum types for each vertex texcoord attribute. | bunnei | 3 | -12/+14 | |
2015-10-22 | gl_shader_gen: Various cleanups to shader generation. | bunnei | 3 | -48/+52 | |
2015-10-22 | gl_rasterizer: Use MMH3 hash for shader cache hey. | bunnei | 4 | -83/+63 | |
- Includes a check to confirm no hash collisions. | |||||
2015-10-22 | gl_shader_gen: Require explicit uniform locations. | bunnei | 3 | -56/+34 | |
- Fixes uniform issue on AMD. | |||||
2015-10-22 | gl_shader_gen: Rename 'o' to 'attr' in vertex/fragment shaders. | bunnei | 1 | -11/+11 | |
2015-10-22 | gl_shader_gen: AppendAlphaModifier default should be 0.0, not vec4(0.0). | bunnei | 1 | -1/+1 | |
2015-10-22 | gl_shader_gen: Fix bug where TEV stage outputs should be clamped. | bunnei | 1 | -3/+3 | |
2015-10-22 | gl_rasterizer: Add documentation to ShaderCacheKey. | bunnei | 1 | -0/+16 | |
2015-10-22 | gl_shader_gen: Add additional function documentation. | bunnei | 2 | -0/+18 | |
2015-10-22 | gl_shader_util: Cleanup header file + add docstring. | bunnei | 1 | -1/+7 | |
2015-10-22 | gl_shader_gen: Various cleanups + moved TEV stage generation to its own function. | bunnei | 1 | -161/+170 | |
2015-10-22 | renderer_opengl: Refactor shader generation/caching to be more organized + various cleanups. | bunnei | 9 | -787/+507 | |
2015-10-22 | gl_rasterizer: Move logic for creating ShaderCacheKey to a static function. | bunnei | 2 | -18/+46 | |
2015-10-22 | gl_shader_util: Use vec3 constants for AppendColorCombiner. | bunnei | 1 | -6/+6 | |
2015-10-22 | gl_rasterizer: Fix typo in uploading TEV const color uniforms. | bunnei | 1 | -5/+5 | |
2015-10-22 | gl_shader_util: Fix precision bug with alpha testing. | bunnei | 2 | -9/+9 | |
- Alpha testing is not done with float32 precision, this makes the HW renderer match the SW renderer. | |||||
2015-10-22 | Initial implementation of fragment shader generation with caching. | Subv | 6 | -261/+564 | |
2015-10-07 | Silence -Wsign-compare warnings. | Rohit Nirmal | 1 | -3/+3 | |
2015-09-29 | fix some xcode 7.0 warnings | Martin Lindhe | 1 | -1/+0 | |
2015-09-16 | general: Silence some warnings when using clang | Lioncash | 1 | -2/+2 | |
2015-09-11 | video_core: Reorganize headers | Lioncash | 7 | -18/+17 | |
2015-09-11 | video_core: Remove unnecessary includes from headers | Lioncash | 2 | -6/+3 | |
2015-09-10 | renderer_opengl: Remove unimplemented function declaration | Lioncash | 1 | -3/+0 | |
2015-09-10 | gl_rasterizer: Replace push_back calls with emplace_back in AddTriangle | Lioncash | 1 | -3/+3 | |
2015-09-03 | OpenGL: Use Sampler Objects to decouple sampler config from textures | Yuri Kunde Schlesner | 4 | -21/+76 | |
Fixes #978 | |||||
2015-09-03 | OpenGL: Remove ugly and endian-unsafe color pointer casts | Yuri Kunde Schlesner | 3 | -9/+9 | |
2015-09-03 | OpenGL: Add support for Sampler Objects to state tracker | Yuri Kunde Schlesner | 3 | -4/+42 | |
2015-08-30 | Replace the previous OpenGL loader with a glad-generated 3.3 one | Yuri Kunde Schlesner | 10 | -2810/+11 | |
The main advantage of switching to glad from glLoadGen is that, apart from being actively maintained, it supports a customizable entrypoint loader function, which makes it possible to also support OpenGL ES. | |||||
2015-08-28 | gl_rasterizer_cache: Detect and ignore unnecessary texture flushes. | bunnei | 3 | -8/+18 | |
2015-08-25 | Integrate the MicroProfile profiling library | Yuri Kunde Schlesner | 2 | -0/+15 | |
This brings goodies such as a configurable user interface and multi-threaded timeline view. | |||||
2015-08-24 | HWRenderer: Added a workaround for the Intel Windows driver bug that causes glTexSubImage2D to not change the stencil buffer. | Subv | 1 | -2/+9 | |
Reported here https://communities.intel.com/message/324464 | |||||
2015-08-21 | HWRasterizer: Implemented stencil ops 6 and 7. | Subv | 1 | -1/+3 | |
2015-08-21 | HWRasterizer: Implemented stencil op 1 (GL_ZERO) | Subv | 1 | -1/+1 | |
2015-08-20 | GLRasterizer: Implemented stencil testing in the hw renderer. | Subv | 4 | -2/+44 | |
2015-08-15 | Shader: Move shader code to its own subdirectory, "shader". | bunnei | 1 | -1/+1 | |
2015-08-15 | GPU: Refactor "VertexShader" namespace to "Shader". | bunnei | 2 | -8/+8 | |
- Also renames "vertex_shader.*" to "shader_interpreter.*" | |||||
2015-08-06 | OpenGL: Fix state tracking in situations with reused object handles | Yuri Kunde Schlesner | 4 | -0/+45 | |
If an OpenGL object is created, bound to a binding using the state tracker, and then destroyed, a newly created object can be assigned the same numeric handle by OpenGL. However, even though it is a new object, and thus needs to be bound to the binding again, the state tracker compared the current and previous handles and concluded that no change needed to be made, leading to failure to bind objects in certain cases. This manifested as broken text in VVVVVV, which this commit fixes along with similar texturing problems in other games. | |||||
2015-08-06 | OpenGL: Remove redundant texture.enable_2d field from OpenGLState | Yuri Kunde Schlesner | 4 | -26/+3 | |
All uses of this field where it's false can just set the texture id to 0 instead. | |||||
2015-07-28 | OpenGL: Add a profiler category measuring framebuffer readback | Yuri Kunde Schlesner | 1 | -0/+7 | |
2015-07-26 | OpenGL: Make OpenGL object resource wrappers fully inline | Yuri Kunde Schlesner | 2 | -142/+79 | |
The functions are so simple that having them separate only bloats the code and hinders optimization. | |||||
2015-07-23 | Rasterizer/GL: Set the border color when binding a texture. | Subv | 1 | -2/+9 | |
2015-07-22 | GL Renderer: Remove erroneous glEnable(GL_TEXTURE_2D) calls | Yuri Kunde Schlesner | 1 | -8/+5 | |
In OpenGL 3, texturing is always enabled, and this call is invalid. While it produced no effect in the rest of the execution, it wouldn't have the intended effect of disabling texturing for that unit. Instead bind a null texture to the unit. | |||||
2015-07-21 | GPU: Added registers for min and mag texture filters and implemented them in the hw renderer. | Subv | 2 | -3/+29 | |
2015-07-19 | GLRasterizer: Don't try to get a pointer to the depth buffer if it doesn't exist. | Subv | 1 | -3/+7 | |
2015-07-13 | Add CiTrace recording support. | Tony Wasserka | 1 | -0/+6 | |
This is exposed in the GUI as a new "CiTrace Recording" widget. Playback is implemented by a standalone 3DS homebrew application (which only runs reliably within Citra currently; on an actual 3DS it will often crash still). | |||||
2015-07-09 | Added GL_CLAMP_TO_BORDER support | Lectem | 1 | -1/+1 | |
2015-06-28 | Core: Cleanup hw includes. | Emmanuel Gil Peyrot | 2 | -0/+2 | |
2015-06-28 | Core, VideoCore: Replace or fix exit() calls. | Emmanuel Gil Peyrot | 1 | -6/+9 | |
2015-06-28 | Common: Cleanup key_map includes. | Emmanuel Gil Peyrot | 2 | -3/+9 | |
2015-06-16 | VideoCore: Log the GL driver’s vendor and renderer. | Emmanuel Gil Peyrot | 1 | -0/+2 | |
2015-06-09 | Renderer formatting edits | tfarley | 2 | -26/+29 | |
2015-06-09 | Render-to-texture flush, interval math fix | tfarley | 1 | -1/+13 | |
2015-06-09 | Liberal texture unbind (clout menu) | tfarley | 2 | -4/+40 | |
2015-06-09 | Depth format fix (crush3d intro/black screens) | tfarley | 1 | -46/+46 | |
2015-06-09 | Implemented glColorMask | tfarley | 3 | -0/+24 | |
2015-05-31 | Pica: Use zero for the SecondaryFragmentColor source. | bunnei | 1 | -10/+14 | |
- This is a workaround until we support fragment lighting. | |||||
2015-05-31 | Pica: Implement LogicOp function. | bunnei | 5 | -0/+57 | |
2015-05-30 | Move video_core/color.h to common/color.h | archshift | 1 | -1/+2 | |
2015-05-30 | Move video_core/math.h to common/vector_math.h | archshift | 1 | -1/+1 | |
The file only contained vector manipulation code, and such widely-useable code doesn't belong in video_core. | |||||
2015-05-29 | Remove every trailing whitespace from the project (but externals). | Emmanuel Gil Peyrot | 5 | -12/+12 | |
2015-05-23 | gl_state: Remove unnecessary const specifier on Apply | Lioncash | 2 | -2/+2 | |
2015-05-23 | Pica: Create 'State' structure and move state memory there. | bunnei | 2 | -114/+132 | |
2015-05-23 | gl_state: Fix a condition typo in Apply | Lioncash | 1 | -1/+1 | |
2015-05-23 | OpenGL renderer | tfarley | 12 | -20/+2069 | |
2015-05-15 | Memmap: Re-organize memory function in two files | Yuri Kunde Schlesner | 1 | -1/+1 | |
memory.cpp/h contains definitions related to acessing memory and configuring the address space mem_map.cpp/h contains higher-level definitions related to configuring the address space accoording to the kernel and allocating memory. | |||||
2015-05-09 | Memory: Add GetPhysicalPointer helper function | Yuri Kunde Schlesner | 1 | -4/+4 | |
2015-05-07 | Common: Remove common.h | Yuri Kunde Schlesner | 1 | -0/+1 | |
2015-04-04 | Allow the user to set the background clear color during emulation | archshift | 1 | -1/+2 | |
The background color can be seen at the sides of the bottom screen or when the window is wider than normal. | |||||
2015-03-09 | Added LCD registers, and implementation for color filling in OGL code. | archshift | 2 | -11/+48 | |
2015-03-07 | Set framebuffer layout from EmuWindow. | bunnei | 1 | -39/+9 | |
2015-03-02 | Add profiling infrastructure and widget | Yuri Kunde Schlesner | 1 | -0/+12 | |
2015-02-15 | video_core: Implement the remaining framebuffer formats in the OpenGL renderer. | Emmanuel Gil Peyrot | 2 | -12/+67 | |
2015-02-11 | Asserts: break/crash program, fit to style guide; log.h->assert.h | archshift | 2 | -4/+4 | |
Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft. | |||||
2015-01-14 | GSP: Update framebuffer info on all interrupts | Yuri Kunde Schlesner | 1 | -3/+1 | |
Hardware testing determined that the GSP processes shared memory framebuffer update info even when no memory transfer or filling GX commands are used. They are now updated on every interrupt, which isn't confirmed correct but matches hardware behaviour more closely. This also reverts the hack introduced in #404. It made a few games behave better, but I believe it's incorrect and also breaks other games. | |||||
2015-01-08 | GSP: Toggle active framebuffer each frame | bunnei | 1 | -1/+4 | |
2014-12-21 | License change | purpasmart96 | 5 | -5/+5 | |
2014-12-20 | Clean up some warnings | Chin | 1 | -2/+2 | |
2014-12-13 | Convert old logging calls to new logging macros | Yuri Kunde Schlesner | 2 | -12/+24 | |
2014-12-03 | Change NULLs to nullptrs. | Rohit Nirmal | 1 | -5/+5 | |
2014-12-01 | Silence a few -Wsign-compare warnings. | Rohit Nirmal | 1 | -1/+1 | |
2014-11-30 | Fixed viewport error caused by rounding | vaguilar | 1 | -2/+2 | |
2014-11-19 | Remove tabs in all files except in skyeye imports and in generated GL code | Emmanuel Gil Peyrot | 1 | -1/+1 | |
2014-11-18 | OpenGL Renderer: Cleanup viewport extent calculation. | Tony Wasserka | 2 | -44/+29 | |
2014-11-18 | Fixup EmuWindow interface and implementations thereof. | Tony Wasserka | 1 | -3/+3 | |
2014-11-18 | Viewport scaling and display density independence | Kevin Hartman | 2 | -1/+50 | |
The view is scaled to be as large as possible, without changing the aspect, within the bounds of the window. On "retina" displays, or other displays where window units != pixels, the view should no longer draw incorrectly. | |||||
2014-10-26 | Add `override` keyword through the code. | Yuri Kunde Schlesner | 1 | -4/+4 | |
This was automated using `clang-modernize`. | |||||
2014-10-21 | Only check OpenGL shader log if size is >1. | Yuri Kunde Schlesner | 1 | -9/+6 | |
This prevents a crash when the buffer size returned by the driver is 0, in which case no space is allocated to store even the NULL byte and glGetShaderInfoLog errors out. Thanks to @Relys for the bug report. | |||||
2014-10-12 | Rework OpenGL renderer. | Yuri Kunde Schlesner | 3 | -233/+189 | |
The OpenGL renderer has been revised, with the following changes: - Initialization and rendering have been refactored to reduce the number of redundant objects used. - Framebuffer rotation is now done directly, using texture mapping. - Vertex coordinates are now given in pixels, and the projection matrix isn't hardcoded anymore. | |||||
2014-10-12 | OpenGL renderer: Shuffle initialization code around and rename functions. | Yuri Kunde Schlesner | 2 | -25/+18 | |
2014-10-12 | Remove virtual inheritance from RendererOpenGL | Yuri Kunde Schlesner | 1 | -2/+2 | |
Also make destructor virtual so that instances are properly destructed. | |||||
2014-09-09 | Moved common_types::Rect from common to Common namespace | archshift | 2 | -3/+3 | |
2014-09-07 | renderer_opengl.cpp: improved alignment for readability | archshift | 1 | -16/+16 | |
2014-09-01 | Replace GLEW with a glLoadGen loader. | Yuri Kunde Schlesner | 6 | -7/+2805 | |
This should fix the GL loading errors that occur in some drivers due to the use of deprecated functions by GLEW. Side benefits are more accurate auto-completion (deprecated function and symbols don't exist) and faster pointer loading (less entrypoints to load). In addition it removes an external library depency, simplifying the build system a bit and eliminating one set of binary libraries for Windows. | |||||
2014-08-28 | Downgrade GLSL version to 1.50 (compatible with GL 3.2) | Yuri Kunde Schlesner | 3 | -10/+15 | |
2014-08-26 | VideoCore: Fixes rendering issues on Qt and corrects framebuffer output size. | bunnei | 2 | -4/+11 | |
2014-08-26 | Rewrite of OpenGL renderer, including OS X support | Kevin Hartman | 5 | -203/+315 | |
Screen contents are now displayed using textured quads. This can be updated to expose an FBO once an OpenGL backend for when Pica rendering is being worked on. That FBO's texture can then be applied to the quads. Previously, FBO blitting was used in order to display screen contents, which did not work on OS X. The new textured quad approach is less of a compatibility risk. | |||||
2014-08-12 | Pica/GPU: Change hardware registers to use physical addresses rather than virtual ones. | Tony Wasserka | 1 | -7/+7 | |
This cleans up the mess that address reading/writing had become and makes the code a *lot* more sensible. This adds a physical<->virtual address converter to mem_map.h. For further accuracy, we will want to properly extend this to support a wider range of address regions. For now, this makes simply homebrew applications work in a good manner though. | |||||
2014-08-12 | Remove the fancy RegisterSet class introduced in 4c2bff61e. | Tony Wasserka | 1 | -2/+2 | |
While it was some nice and fancy template usage, it ultimately had many practical issues regarding length of involved expressions under regular usage as well as common code completion tools not being able to handle the structures. Instead, we now use a more conventional approach which is a lot more clean to use. | |||||
2014-07-23 | Use uniform formatting when printing hexadecimal numbers. | Tony Wasserka | 1 | -1/+1 | |
2014-07-23 | RegisterSet: Simplify code by using structs for register definition instead of unions. | Tony Wasserka | 1 | -9/+9 | |
2014-07-23 | GPU: Make use of RegisterSet. | Tony Wasserka | 1 | -26/+28 | |
2014-07-23 | Renderer: Fix component order in bottom framebuffer. | Tony Wasserka | 2 | -5/+4 | |
2014-07-23 | Renderer: Respect the active_fb GPU register. | Tony Wasserka | 1 | -2/+9 | |
2014-07-23 | Renderer: Add a few TODOs. | Tony Wasserka | 1 | -3/+10 | |
2014-06-12 | Rename LCD to GPU. | Tony Wasserka | 1 | -3/+3 | |
2014-05-20 | common_types: Changed BasicRect back to Rect, in the common namespace | archshift | 2 | -3/+3 | |
Only Rect is in the namespace for now; the rest of common should be added in the future | |||||
2014-05-08 | Update FlipFramebuffer | Sethpaien | 1 | -7/+6 | |
Less calculations + fix | |||||
2014-05-01 | Reverse debugging changes | archshift | 1 | -2/+0 | |
2014-05-01 | TGA dumps work, courtesy of @bunnei | archshift | 1 | -0/+2 | |
2014-04-28 | Xcode complains that the class name is redundant. | archshift | 1 | -1/+1 | |
2014-04-28 | Rect to BasicRect | archshift | 2 | -3/+3 | |
Somewhere along the line an OSX header had already taken the name Rect. | |||||
2014-04-28 | removed DISALLOW_COPY_AND_ASSIGN in favor of NonCopyable class | bunnei | 1 | -1/+0 | |
2014-04-27 | fixed renderer to use correct framebuffer location | bunnei | 2 | -8/+7 | |
2014-04-22 | fixed GL context acquire (applies to Qt GUI only) | bunnei | 1 | -0/+2 | |
2014-04-18 | renamed hw_lcd module to just lcd | bunnei | 1 | -1/+1 | |
2014-04-17 | fixed framebuffer color order | bunnei | 1 | -1/+1 | |
2014-04-17 | removed hard-coded framebuffer addresses from renderer_opengl.cpp | bunnei | 1 | -2/+4 | |
2014-04-09 | fixed project includes to use new directory structure | bunnei | 2 | -6/+7 | |
2014-04-09 | got rid of 'src' folders in each sub-project | bunnei | 2 | -0/+370 | |