summaryrefslogtreecommitdiffstats
path: root/src/core/hw/gpu.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-01-13Remove references to PICA and rasterizers in video_coreJames Rowe1-573/+0
2018-01-09CoreTiming: Reworked CoreTiming (cherry-picked from Citra #3119)B3n301-1/+1
* CoreTiming: New CoreTiming; Add Test for CoreTiming
2018-01-07core_timing: Increase clock speed for Switch docked.bunnei1-1/+1
2017-10-13Remove more 3DS-specific code.bunnei1-3/+3
2017-08-21GPU/Warnings: Explicitly cast the screen refresh ticks to u64.Subv1-1/+1
2017-06-29gpu: add comments for TextureCopywwylele1-7/+7
2017-06-27gpu: fix edge cases for TextureCopywwylele1-18/+23
2017-02-27Core: Re-write frame limiterYuri Kunde Schlesner1-39/+0
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-27Add performance statistics to status barYuri Kunde Schlesner1-2/+2
2017-01-16CoreTiming: use named constant for ARM11 clock ratewwylele1-1/+1
2017-01-16HID: manages updating itself using correct tickswwylele1-4/+0
2016-12-11Add all services to the Service namespaceLioncash1-5/+5
Previously there was a split where some of the services were in the Service namespace and others were not.
2016-12-08Fixed the gpu command list size when creating CiTraces.Subv1-2/+2
2016-12-06Implement Frame rate limiter (#2223)emmauss1-0/+33
* implement frame limiter * fixes
2016-11-27GPU: Remove the broken frame_skip option.Emmanuel Gil Peyrot1-20/+1
Fixes #1960.
2016-09-29gpu: DisplayTransfer: a less amazing algorithm for flipwwylele1-8/+11
the old implementation modifies the loop variable in the loop. Though it actually works, it is really confusing. Makes it morereadable now.
2016-09-29gpu: keep the old signal strategy for null pointerwwylele1-4/+8
previous commits changes the behaviour of interrupt when meeting invalid params. Regresses to the same behaviour as before needs more hwtest
2016-09-29gpu: add validity check for TextureCopy, DisplayTransfer and FillMemorywwylele1-6/+88
prevent further operation with invalid values which may cause assertion failure or divided by zero. needs more hwtest
2016-09-29gpu: move MemoryFill, TextureCopy and DisplayTransfer into functionswwylele1-247/+249
The old code indented too much to read. Split into functions and do general cleanup.
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner1-1/+1
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-11/+4
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-57/+85
2016-05-07fixup simple type conversions where possibleAlexander Laties1-2/+2
2016-04-21HWRasterizer: Texture forwardingtfarley1-155/+172
2016-03-09renderer_base: Don't directly expose the rasterizer unique_ptrLioncash1-5/+5
There's no reason to allow direct access to the unique_ptr instance. Only its contained pointer.
2016-02-21AudioCore: Skeleton ImplementationMerryMage1-6/+0
This commit: * Adds a new subproject, audio_core. * Defines structures that exist in DSP shared memory. * Hooks up various other parts of the emulator into audio core. This sets the foundation for a later HLE DSP implementation.
2016-02-12BitField: Make trivially copyable and remove assignment operatorMerryMage1-8/+8
2015-12-08VideoCore: Unify interface to OpenGL and SW rasterizersYuri Kunde Schlesner1-6/+6
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-07VideoCore: Rename HWRasterizer methods to be less confusingYuri Kunde Schlesner1-5/+5
2015-08-25Integrate the MicroProfile profiling libraryYuri Kunde Schlesner1-0/+8
This brings goodies such as a configurable user interface and multi-threaded timeline view.
2015-08-16GPU: Implement TextureCopy-mode display transfersYuri Kunde Schlesner1-20/+49
Fixes glitchy garbage in Fire Emblem 3D scenes.
2015-07-23Qt/GPU Breakpoints: Added three more breakpoint types:Subv1-0/+4
* IncomingDisplayTransfer: Triggered just before a display transfer is performed. * GSPCommandProcessed: Triggered right after a GSP command is processed. * BufferSwapped: Triggered when the frames flip
2015-07-20GPU/DisplayTransfer: Implemented bit 5 in the transfer flags.Subv1-12/+30
It tells the GPU to not swizzle/de-swizzle the input during the transfer.
2015-07-13Add CiTrace recording support.Tony Wasserka1-0/+17
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-13GPU: Be robust against nullptr addresses; properly reset busy bits in the trigger registers.Tony Wasserka1-27/+34
2015-06-28GPU: Implement blended downscaling for display transfers.Emmanuel Gil Peyrot1-27/+40
2015-06-28GPU: Use shifts instead of multiplications to calculate the actual size of the output.Emmanuel Gil Peyrot1-6/+6
2015-06-28Core: Cleanup hw includes.Emmanuel Gil Peyrot1-4/+6
2015-06-28CitraQt: Cleanup includes.Emmanuel Gil Peyrot1-0/+1
2015-05-30Move video_core/color.h to common/color.harchshift1-1/+1
2015-05-30Remove gpu_refresh_rate configuration optionYuri Kunde Schlesner1-3/+2
Changing it makes emulation inherently inaccurate. It also had a wrong default value (30, whereas the real system has a refresh rate of 60 Hz) which, even if changed, would continue to be used unless people manually removed it from their config files.
2015-05-29Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot1-5/+5
2015-05-23OpenGL renderertfarley1-3/+13
2015-05-15Memmap: Re-organize memory function in two filesYuri Kunde Schlesner1-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-09Memory: Add GetPhysicalPointer helper functionYuri Kunde Schlesner1-5/+5
2015-05-02HW: Properly initialize and shutdown all modules.bunnei1-3/+5
2015-04-07gpu: Fix a missing format specifierLioncash1-1/+1
2015-04-03Services: Stubs and minor changespurpasmart961-1/+1
2015-03-16GPU/DisplayTransfer: Made the scaling bits a single 2bit valueSubv1-4/+10
Rephrased some comments.
2015-03-14GPU: Implemented the flip_data (bit 0) bit in display transfers.Subv1-5/+14
2015-03-11HID: Complete refactor of pad/touch input to fix threading issues.bunnei1-0/+4
2015-03-10GPU: Fixed the bit 25 in the display transfer flags.Subv1-3/+3
It is used to downscale the input image horizontally and vertically, previously we were only downscaling it vertically so this caused a hard-to-debug memory corruption problem.
2015-03-10GPU: Added the stencil test structure to the Pica Regs struct.Subv1-2/+2
2015-03-10GPU: Implemented more depth buffer formats.Subv1-2/+2
This fixes the horizontal lines in Picross E, Cubic Ninja, Cave Story 3D and possibly others
2015-03-09GPU: Corrected the 24 bit memory fills component orderSubv1-2/+2
2015-03-06Implement SetLcdForceBlack, move register enum to hw.harchshift1-5/+4
2015-03-04GPU: Added RGB565/RGB8 framebuffer support and various cleanups.bunnei1-50/+25
- Centralizes color format encode/decode functions. - Fixes endianness issues. - Implements remaining framebuffer formats in the debugger.
2015-02-27GPU: Implemented bits 3 and 1 from the display transfer flags.Subv1-21/+61
Bit 3 is used to specify a raw copy, where no processing is done to the data, seems to behave exactly as a DMA. Bit 1 is used to specify whether to convert from a tiled format to a linear format or viceversa.
2015-02-22GPU: Fixed RGBA8 as output format in a display transfer.Subv1-8/+7
Verified with hwtests
2015-02-22GPU: Add support for more framebuffer formats in display transfers.Tony Wasserka1-0/+37
2015-02-22GPU: Fixed the RGBA8 input format and RGB8 output formatSubv1-8/+6
in Display Transfers, tested with hwtests.
2015-02-18GPU: Properly implement memory fills.Tony Wasserka1-13/+28
2015-02-03core: Fix some warnings on OSXLioncash1-2/+0
2015-01-14GPU: Fix buffer overrun in Display TransfersYuri Kunde Schlesner1-9/+12
Display transfers with the horizontal downscaling flag were calculating the wrong output size, causing them to write double the amount of data intended. It is likely that this was perceived as correct due to a separate bug in calculating source indices which caused the image to be padded unless the previous bug was present. This fixes both issues, correcting flickering issues in 3dscraft, blargSnes and more (caused by the transfer overwriting the back buffer which followed) as well as potentially fixing other crashes.
2015-01-14GPU: Do periodic VBlank updates using CoreTimingYuri Kunde Schlesner1-47/+44
2015-01-14GPU: Correct wrong default framebuffer address for sub-screen.Yuri Kunde Schlesner1-2/+2
It appears this is a mistake, since the sub-screen has no right framebuffer.
2015-01-14GPU: Fire GPU interrupts at the correct places.Yuri Kunde Schlesner1-15/+18
PDC0 and PDC1 are both VBlank interrupts. PDC0 was being treated as a HBlank interrupt and fired many more times than it should. They now both fire together at 60 Hz. This puzzlingly *improves* apparent framerate on many applications. A few other interrupts were being fired inside the GSP command processing instead of on the actual GPU register writes, so they were moved there, which should cover direct writes tho those registers not going through the GX command queue.
2015-01-09Move ThreadContext to core/core.h and deal with the falloutYuri Kunde Schlesner1-0/+2
2015-01-05DSP: Signal (faked) interrupt on every frame.bunnei1-1/+7
- Hack to work around games checking that the DSP event has been signaled by a real DSP interrupt.
2014-12-31GPU: Pseudo-implement horizontal scaling.Tony Wasserka1-1/+5
It's not really known how this actually works. Some testing has shown that this probably performs no filtering, and common usage in games suggests it's not actually resizing the image at all. However, this patch does seem to fix some homebrew showing quasi-duplicated images while still keeping other applications in a working state.
2014-12-29GPU: Implement frameskip and remove forced framebuffer swap hack.bunnei1-27/+36
2014-12-26GPU: Further improve synchronization.bunnei1-22/+20
2014-12-21License changepurpasmart961-1/+1
2014-12-13Convert old logging calls to new logging macrosYuri Kunde Schlesner1-8/+8
2014-12-10GPU: Fixed bug in command list size decoding.bunnei1-2/+1
2014-11-27Fixed formatting and switch statement warningsvaguilar1-3/+3
2014-10-30Fix some warningsSean1-2/+2
2014-10-29Renamed souce files of services to match port namesGareth Poole1-1/+1
2014-10-28Added `gpu_refresh_rate` config setting for the new interpreter speed hack.archshift1-10/+1
2014-10-28Use configuration files to enable or disable the new dyncom interpreter.archshift1-0/+16
2014-10-12Rename GPU::Regs::FramebufferFormat to PixelFormatYuri Kunde Schlesner1-5/+5
This name better represents what the enum does, and is less overloaded in the context. (The whole register the enum is part of is also called 'format'.)
2014-10-08Fix warnings in video_coreLioncash1-2/+2
2014-09-14Core: Fix warnings in gpu.cppLioncash1-6/+6
2014-09-09core: Prune redundant includesarchshift1-2/+0
2014-08-31GPU: Improve frame synchronization, increases compatibility with both homebrew and retail applications.bunnei1-13/+31
2014-08-26VideoCore: Fixes rendering issues on Qt and corrects framebuffer output size.bunnei1-9/+8
2014-08-12Pica: Add command processor.Tony Wasserka1-3/+5
2014-08-12Pica/GPU: Change hardware registers to use physical addresses rather than virtual ones.Tony Wasserka1-84/+18
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-12Remove the fancy RegisterSet class introduced in 4c2bff61e.Tony Wasserka1-24/+23
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-08-07GPU: Updated g_last_ticks variable to be more descriptive (represents CPU tick count of last vertical line).bunnei1-5/+5
2014-08-07GPU: Updated horizontal sync line counter to use framebuffer height.bunnei1-2/+3
2014-08-06GSP: Removed dumb GX prefixes to functions/structs in GSP namespace.bunnei1-2/+2
- Various other cleanups.
2014-08-06GSP: Implements preliminary command synchronization via GPU interrupts.bunnei1-3/+19
Core: Added a comment to explain the logic for the RunLoop iterations.
2014-07-23Use uniform formatting when printing hexadecimal numbers.Tony Wasserka1-3/+3
2014-07-23GPU: Clarify display transfer code.Tony Wasserka1-12/+15
Also makes the illogical component order more obvious.
2014-07-23RegisterSet: Simplify code by using structs for register definition instead of unions.Tony Wasserka1-51/+51
2014-07-23GPU: Make use of RegisterSet.Tony Wasserka1-241/+101
2014-07-23GPU: Make framebuffer code format-aware.Tony Wasserka1-6/+47
2014-07-23GPU: Interface cleanup.Tony Wasserka1-12/+17
2014-07-23GPU: Initialize GPU registers to some sensible default state.Tony Wasserka1-1/+16
2014-07-23GPU: Emulate memory fills.Tony Wasserka1-2/+54
2014-07-23GPU: Add proper framebuffer register handling.Tony Wasserka1-1/+52
2014-07-23GPU: Properly implement display transfers.Tony Wasserka1-1/+19
2014-07-23GPU: Add display transfer configuration.Tony Wasserka1-0/+52
2014-06-12GPU: Cleanup register definitions.Tony Wasserka1-13/+13
2014-06-12Rename LCD to GPU.Tony Wasserka1-9/+9
2014-06-12Pica: Add command list registers.Tony Wasserka1-3/+42
2014-05-29lcd: moved kFrameTicks to lcd.h for use in other modulesbunnei1-2/+0
2014-05-23lcd: added thread wait after (faked) vblank interrupt (would have) occurredbunnei1-0/+4
2014-04-27added code to LCD modules keep track of framebuffer location in FCRAM or VRAMbunnei1-1/+90
2014-04-26- changed HW IO map to use virtual addressesbunnei1-0/+14
- added hooks to catch LCD IO read/writes
2014-04-18renamed hw_lcd module to just lcdbunnei1-1/+1
2014-04-11updated logging messagebunnei1-2/+2
2014-04-09fixed project includes to use new directory structurebunnei1-4/+7
2014-04-09got rid of 'src' folders in each sub-projectbunnei1-0/+0
2014-04-09fixed all license file headers in corebunnei1-23/+3
2014-04-07removed log message from hw_lcdbunnei1-2/+0
2014-04-06calling SwapBuffers from hw_lcd.cppbunnei1-0/+2
2014-04-05changed hw_lcd to use ARM core correct tick counter instead of [what was actually] just an instruction count. this seems to fix timing issues with the 3DS_Homebrew_Pong3Dv2 demo.bunnei1-3/+3
2014-04-05added a module for interfacing to hardware LCDbunnei1-20/+23
2014-04-05added initial support for hw.cpp modulebunnei1-25/+17
2014-04-05added hw module to interface h/w register reads/writesbunnei1-0/+70