summaryrefslogtreecommitdiffstats
path: root/src/core/hw/gpu.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
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