Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | renderer_opengl: Use trace log in a few places. | bunnei | 2018-08-08 | 1 | -1/+1 |
| | |||||
* | renderer_base: Make Rasterizer() return the rasterizer by reference | Lioncash | 2018-08-04 | 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(). | ||||
* | video_core: Eliminate the g_renderer global variable | Lioncash | 2018-08-04 | 1 | -1/+1 |
| | | | | | | | | | | | | | | 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. | ||||
* | video_core: Make global EmuWindow instance part of the base renderer class | Lioncash | 2018-08-02 | 1 | -17/+9 |
| | | | | | | | | | | | 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. | ||||
* | vi: Partially implement buffer crop parameters. | bunnei | 2018-07-18 | 1 | -4/+18 |
| | |||||
* | OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering. | bunnei | 2018-07-14 | 1 | -1/+14 |
| | |||||
* | Update clang format | James Rowe | 2018-07-03 | 1 | -1/+1 |
| | |||||
* | Rename logging macro back to LOG_* | James Rowe | 2018-07-03 | 1 | -7/+7 |
| | |||||
* | gl_rasterizer: Implement AccelerateDisplay to forward textures to framebuffers. | bunnei | 2018-06-27 | 1 | -1/+0 |
| | |||||
* | GLState: Support changing the GL_TEXTURE_SWIZZLE parameter of each texture unit. | Subv | 2018-06-07 | 1 | -0/+1 |
| | |||||
* | renderer_opengl: Replace usages of LOG_GENERIC with fmt-capable equivalents | Lioncash | 2018-04-27 | 1 | -6/+7 |
| | |||||
* | video-core: Move logging macros over to new fmt-capable ones | Lioncash | 2018-04-25 | 1 | -5/+5 |
| | |||||
* | renderer_opengl: Use correct byte order for framebuffer pixel format ABGR8. | bunnei | 2018-04-25 | 1 | -2/+1 |
| | |||||
* | gl_rasterizer_cache: Update to be based on GPU addresses, not CPU addresses. | bunnei | 2018-04-25 | 1 | -1/+2 |
| | |||||
* | renderer_opengl: Silence a -Wdangling-else warning in DrawScreenTriangles() | Lioncash | 2018-04-24 | 1 | -1/+2 |
| | |||||
* | opengl: Remove unnecessary header inclusions | Lioncash | 2018-04-21 | 1 | -3/+0 |
| | |||||
* | renderer_opengl: Fix Morton copy byteswap, etc. | bunnei | 2018-04-14 | 1 | -5/+5 |
| | |||||
* | renderer_opengl: Use OGLProgram instead of OGLShader. | bunnei | 2018-04-14 | 1 | -1/+1 |
| | |||||
* | renderer_opengl: Use better naming for DrawScreens and DrawSingleScreen. | bunnei | 2018-03-27 | 1 | -6/+6 |
| | |||||
* | renderer_opengl: Logging, etc. cleanup. | bunnei | 2018-03-27 | 1 | -2/+2 |
| | |||||
* | renderer_opengl: Remove framebuffer RasterizerFlushVirtualRegion hack. | bunnei | 2018-03-27 | 1 | -5/+0 |
| | |||||
* | renderer_opengl: Only draw the screen if a framebuffer is specified. | bunnei | 2018-03-27 | 1 | -6/+7 |
| | |||||
* | renderer_opengl: Only invalidate the framebuffer region, not flush. | bunnei | 2018-03-23 | 1 | -4/+3 |
| | |||||
* | renderer_opengl: Fixes for properly flushing & rendering the framebuffer. | bunnei | 2018-03-23 | 1 | -6/+12 |
| | |||||
* | renderer_opengl: Better handling of framebuffer transform flags. | bunnei | 2018-03-23 | 1 | -2/+16 |
| | |||||
* | renderer_opengl: Use accelerated framebuffer load with LoadFBToScreenInfo. | bunnei | 2018-03-23 | 1 | -31/+25 |
| | |||||
* | video_core: Move MortonCopyPixels128 to utils header. | bunnei | 2018-03-23 | 1 | -111/+1 |
| | |||||
* | video_core: Move FramebufferInfo to FramebufferConfig in GPU. | bunnei | 2018-03-23 | 1 | -26/+30 |
| | |||||
* | gl_shader_util: Sync latest version with Citra. | bunnei | 2018-03-20 | 1 | -1/+1 |
| | |||||
* | renderer_opengl: Support framebuffer flip vertical. | bunnei | 2018-02-12 | 1 | -5/+9 |
| | |||||
* | memory: Replace all memory hooking with Special regions | MerryMage | 2018-01-27 | 1 | -1/+1 |
| | |||||
* | renderer_gl: Clear screen to black before rendering framebuffer. | bunnei | 2018-01-15 | 1 | -3/+6 |
| | |||||
* | renderer: Render previous frame when no new one is available. | bunnei | 2018-01-15 | 1 | -10/+13 |
| | |||||
* | Fix build on macOS and linux | MerryMage | 2018-01-13 | 1 | -0/+1 |
| | |||||
* | Remove references to PICA and rasterizers in video_core | James Rowe | 2018-01-13 | 1 | -7/+0 |
| | |||||
* | renderer_opengl: Fix LOG_TRACE in LoadFBToScreenInfo. | bunnei | 2018-01-12 | 1 | -1/+1 |
| | |||||
* | renderer_opengl: Support rendering Switch framebuffer. | bunnei | 2018-01-11 | 1 | -129/+68 |
| | |||||
* | renderer_opengl: Add MortonCopyPixels function for Switch framebuffer. | bunnei | 2018-01-11 | 1 | -0/+111 |
| | |||||
* | renderer_opengl: Update DrawScreens for Switch. | bunnei | 2018-01-11 | 1 | -22/+10 |
| | |||||
* | telemetry: Log performance, configuration, and system data. | bunnei | 2017-07-18 | 1 | -3/+12 |
| | |||||
* | OpenGL: Remove unused RendererOpenGL fields | Yuri Kunde Schlesner | 2017-05-28 | 1 | -8/+2 |
| | |||||
* | Core: Re-write frame limiter | Yuri Kunde Schlesner | 2017-02-27 | 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. | ||||
* | Core: Make PerfStats internally locked | Yuri Kunde Schlesner | 2017-02-27 | 1 | -8/+2 |
| | | | | More ergonomic to use and will be required for upcoming changes. | ||||
* | Remove built-in (non-Microprofile) profiler | Yuri Kunde Schlesner | 2017-02-27 | 1 | -8/+0 |
| | |||||
* | Add performance statistics to status bar | Yuri Kunde Schlesner | 2017-02-27 | 1 | -0/+9 |
| | |||||
* | core: Move emu_window and key_map into core | MerryMage | 2016-12-23 | 1 | -1/+1 |
| | | | | * Removes circular dependences (common should not depend on core) | ||||
* | Add default hotkey to swap primary screens. | James Rowe | 2016-11-05 | 1 | -3/+2 |
| | | | | Also minor style changes | ||||
* | Support additional screen layouts. | James Rowe | 2016-11-05 | 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. | ||||
* | Use negative priorities to avoid special-casing the self-include | Yuri Kunde Schlesner | 2016-09-21 | 1 | -1/+1 |
| | |||||
* | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | 2016-09-21 | 1 | -5/+1 |
| | | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation. | ||||
* | Manually tweak source formatting and then re-run clang-format | Yuri Kunde Schlesner | 2016-09-19 | 1 | -20/+12 |
| | |||||
* | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | 2016-09-18 | 1 | -51/+71 |
| | |||||
* | gsp::gpu: Reset g_thread_id in UnregisterInterruptRelayQueue | mailwl | 2016-06-01 | 1 | -1/+1 |
| | |||||
* | fixup simple type conversions where possible | Alexander Laties | 2016-05-07 | 1 | -1/+1 |
| | |||||
* | Frontends, VideoCore: Move glad initialisation to the frontend | Emmanuel Gil Peyrot | 2016-05-06 | 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. | ||||
* | VideoCore: Run include-what-you-use and fix most includes. | Emmanuel Gil Peyrot | 2016-04-30 | 1 | -5/+10 |
| | |||||
* | HWRasterizer: Texture forwarding | tfarley | 2016-04-21 | 1 | -54/+74 |
| | |||||
* | Improve error report from Init() functions | LittleWhite | 2016-03-08 | 1 | -1/+7 |
| | | | | Add error popup when citra initialization failed | ||||
* | renderer_opengl: Use GLvec3/GLvec4 aliases for commonly used types. | bunnei | 2016-02-05 | 1 | -2/+2 |
| | |||||
* | OpenGL: Downgrade GL_DEBUG_SEVERITY_NOTIFICATION to Debug logging level | Yuri Kunde Schlesner | 2016-02-03 | 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. | ||||
* | Merge pull request #1196 from linkmauve/khr_debug | bunnei | 2016-01-13 | 1 | -0/+57 |
|\ | | | | | Add optional GL_KHR_debug support | ||||
| * | OpenGL: Log GL_KHR_debug messages we receive | Emmanuel Gil Peyrot | 2015-10-24 | 1 | -0/+57 |
| | | | | | | | | | | This allows the driver to communicate errors, warnings and improvement suggestions about our usage of the API. | ||||
* | | VideoCore: Unify interface to OpenGL and SW rasterizers | Yuri Kunde Schlesner | 2015-12-08 | 1 | -12/+3 |
| | | | | | | | | | | | | 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. | ||||
* | | FragShader: Use an UBO instead of several individual uniforms | Subv | 2015-11-19 | 1 | -0/+1 |
| | | |||||
* | | renderer_opengl: Refactor shader generation/caching to be more organized + various cleanups. | bunnei | 2015-10-22 | 1 | -2/+37 |
|/ | |||||
* | general: Silence some warnings when using clang | Lioncash | 2015-09-16 | 1 | -2/+2 |
| | |||||
* | video_core: Reorganize headers | Lioncash | 2015-09-11 | 1 | -2/+2 |
| | |||||
* | video_core: Remove unnecessary includes from headers | Lioncash | 2015-09-11 | 1 | -3/+3 |
| | |||||
* | Replace the previous OpenGL loader with a glad-generated 3.3 one | Yuri Kunde Schlesner | 2015-08-30 | 1 | -2/+2 |
| | | | | | | 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. | ||||
* | OpenGL: Remove redundant texture.enable_2d field from OpenGLState | Yuri Kunde Schlesner | 2015-08-06 | 1 | -5/+0 |
| | | | | | All uses of this field where it's false can just set the texture id to 0 instead. | ||||
* | Add CiTrace recording support. | Tony Wasserka | 2015-07-13 | 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). | ||||
* | Core, VideoCore: Replace or fix exit() calls. | Emmanuel Gil Peyrot | 2015-06-28 | 1 | -6/+9 |
| | |||||
* | VideoCore: Log the GL driver’s vendor and renderer. | Emmanuel Gil Peyrot | 2015-06-16 | 1 | -0/+2 |
| | |||||
* | Liberal texture unbind (clout menu) | tfarley | 2015-06-09 | 1 | -0/+6 |
| | |||||
* | Remove every trailing whitespace from the project (but externals). | Emmanuel Gil Peyrot | 2015-05-29 | 1 | -1/+1 |
| | |||||
* | OpenGL renderer | tfarley | 2015-05-23 | 1 | -14/+47 |
| | |||||
* | Memmap: Re-organize memory function in two files | Yuri Kunde Schlesner | 2015-05-15 | 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. | ||||
* | Memory: Add GetPhysicalPointer helper function | Yuri Kunde Schlesner | 2015-05-09 | 1 | -4/+4 |
| | |||||
* | Common: Remove common.h | Yuri Kunde Schlesner | 2015-05-07 | 1 | -0/+1 |
| | |||||
* | Allow the user to set the background clear color during emulation | archshift | 2015-04-04 | 1 | -1/+2 |
| | | | | The background color can be seen at the sides of the bottom screen or when the window is wider than normal. | ||||
* | Merge pull request #629 from archshift/lcdfb | bunnei | 2015-03-10 | 1 | -10/+44 |
|\ | | | | | Implement SetLcdForceBlack and add implementation for color filling in the GPU code | ||||
| * | Added LCD registers, and implementation for color filling in OGL code. | archshift | 2015-03-09 | 1 | -10/+44 |
| | | |||||
* | | Merge pull request #636 from bunnei/refactor-screen-win | bunnei | 2015-03-08 | 1 | -39/+9 |
|\ \ | | | | | | | Set framebuffer layout from EmuWindow. | ||||
| * | | Set framebuffer layout from EmuWindow. | bunnei | 2015-03-07 | 1 | -39/+9 |
| |/ | |||||
* / | Add profiling infrastructure and widget | Yuri Kunde Schlesner | 2015-03-02 | 1 | -0/+12 |
|/ | |||||
* | video_core: Implement the remaining framebuffer formats in the OpenGL renderer. | Emmanuel Gil Peyrot | 2015-02-15 | 1 | -12/+62 |
| | |||||
* | Asserts: break/crash program, fit to style guide; log.h->assert.h | archshift | 2015-02-11 | 1 | -3/+3 |
| | | | | | | | 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. | ||||
* | GSP: Update framebuffer info on all interrupts | Yuri Kunde Schlesner | 2015-01-14 | 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. | ||||
* | GSP: Toggle active framebuffer each frame | bunnei | 2015-01-08 | 1 | -1/+4 |
| | |||||
* | Merge pull request #291 from purpasmart96/license | bunnei | 2014-12-21 | 1 | -1/+1 |
|\ | | | | | License change | ||||
| * | License change | purpasmart96 | 2014-12-21 | 1 | -1/+1 |
| | | |||||
* | | Clean up some warnings | Chin | 2014-12-20 | 1 | -2/+2 |
|/ | |||||
* | Convert old logging calls to new logging macros | Yuri Kunde Schlesner | 2014-12-13 | 1 | -6/+6 |
| | |||||
* | Merge pull request #236 from rohit-n/sign-compare | bunnei | 2014-12-03 | 1 | -1/+1 |
|\ | | | | | Silence a few -Wsign-compare warnings. | ||||
| * | Silence a few -Wsign-compare warnings. | Rohit Nirmal | 2014-12-01 | 1 | -1/+1 |
| | | |||||
* | | Fixed viewport error caused by rounding | vaguilar | 2014-11-30 | 1 | -2/+2 |
|/ | |||||
* | Remove tabs in all files except in skyeye imports and in generated GL code | Emmanuel Gil Peyrot | 2014-11-19 | 1 | -1/+1 |
| | |||||
* | OpenGL Renderer: Cleanup viewport extent calculation. | Tony Wasserka | 2014-11-18 | 1 | -27/+22 |
| | |||||
* | Fixup EmuWindow interface and implementations thereof. | Tony Wasserka | 2014-11-18 | 1 | -3/+3 |
| | |||||
* | Viewport scaling and display density independence | Kevin Hartman | 2014-11-18 | 1 | -1/+35 |
| | | | | | 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. | ||||
* | Rework OpenGL renderer. | Yuri Kunde Schlesner | 2014-10-12 | 1 | -167/+141 |
| | | | | | | | | | 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. | ||||
* | OpenGL renderer: Shuffle initialization code around and rename functions. | Yuri Kunde Schlesner | 2014-10-12 | 1 | -17/+16 |
| | |||||
* | Merge pull request #97 from archshift/cleanup | bunnei | 2014-09-14 | 1 | -16/+16 |
|\ | | | | | Small, general code cleanup | ||||
| * | renderer_opengl.cpp: improved alignment for readability | archshift | 2014-09-07 | 1 | -16/+16 |
| | | |||||
* | | Moved common_types::Rect from common to Common namespace | archshift | 2014-09-09 | 1 | -2/+2 |
|/ | |||||
* | Replace GLEW with a glLoadGen loader. | Yuri Kunde Schlesner | 2014-09-01 | 1 | -5/+3 |
| | | | | | | | | | 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. | ||||
* | Downgrade GLSL version to 1.50 (compatible with GL 3.2) | Yuri Kunde Schlesner | 2014-08-28 | 1 | -6/+8 |
| | |||||
* | VideoCore: Fixes rendering issues on Qt and corrects framebuffer output size. | bunnei | 2014-08-26 | 1 | -4/+10 |
| | |||||
* | Rewrite of OpenGL renderer, including OS X support | Kevin Hartman | 2014-08-26 | 1 | -176/+146 |
| | | | | | | 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. | ||||
* | Pica/GPU: Change hardware registers to use physical addresses rather than virtual ones. | Tony Wasserka | 2014-08-12 | 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. | ||||
* | Remove the fancy RegisterSet class introduced in 4c2bff61e. | Tony Wasserka | 2014-08-12 | 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. | ||||
* | Use uniform formatting when printing hexadecimal numbers. | Tony Wasserka | 2014-07-23 | 1 | -1/+1 |
| | |||||
* | RegisterSet: Simplify code by using structs for register definition instead of unions. | Tony Wasserka | 2014-07-23 | 1 | -9/+9 |
| | |||||
* | GPU: Make use of RegisterSet. | Tony Wasserka | 2014-07-23 | 1 | -26/+28 |
| | |||||
* | Renderer: Fix component order in bottom framebuffer. | Tony Wasserka | 2014-07-23 | 1 | -1/+1 |
| | |||||
* | Renderer: Respect the active_fb GPU register. | Tony Wasserka | 2014-07-23 | 1 | -2/+9 |
| | |||||
* | Renderer: Add a few TODOs. | Tony Wasserka | 2014-07-23 | 1 | -3/+10 |
| | |||||
* | Rename LCD to GPU. | Tony Wasserka | 2014-06-12 | 1 | -3/+3 |
| | |||||
* | common_types: Changed BasicRect back to Rect, in the common namespace | archshift | 2014-05-20 | 1 | -2/+2 |
| | | | | Only Rect is in the namespace for now; the rest of common should be added in the future | ||||
* | Merge remote-tracking branch 'upstream/master' into issue-7-fix | archshift | 2014-05-17 | 1 | -7/+6 |
|\ | |||||
| * | Update FlipFramebuffer | Sethpaien | 2014-05-08 | 1 | -7/+6 |
| | | | | | | Less calculations + fix | ||||
* | | Reverse debugging changes | archshift | 2014-05-01 | 1 | -2/+0 |
| | | |||||
* | | TGA dumps work, courtesy of @bunnei | archshift | 2014-05-01 | 1 | -0/+2 |
| | | |||||
* | | Rect to BasicRect | archshift | 2014-04-28 | 1 | -2/+2 |
|/ | | | | Somewhere along the line an OSX header had already taken the name Rect. | ||||
* | fixed renderer to use correct framebuffer location | bunnei | 2014-04-27 | 1 | -6/+5 |
| | |||||
* | fixed GL context acquire (applies to Qt GUI only) | bunnei | 2014-04-22 | 1 | -0/+2 |
| | |||||
* | renamed hw_lcd module to just lcd | bunnei | 2014-04-18 | 1 | -1/+1 |
| | |||||
* | fixed framebuffer color order | bunnei | 2014-04-17 | 1 | -1/+1 |
| | |||||
* | removed hard-coded framebuffer addresses from renderer_opengl.cpp | bunnei | 2014-04-17 | 1 | -2/+4 |
| | |||||
* | fixed project includes to use new directory structure | bunnei | 2014-04-09 | 1 | -3/+4 |
| | |||||
* | got rid of 'src' folders in each sub-project | bunnei | 2014-04-09 | 1 | -0/+279 |