summaryrefslogtreecommitdiffstats
path: root/src/core/hw (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-188-184/+209
|
* fixup simple type conversions where possibleAlexander Laties2016-05-071-2/+2
|
* LCD: Remove unneeded #undef with no matching #define.Emmanuel Gil Peyrot2016-04-301-2/+0
|
* HWRasterizer: Texture forwardingtfarley2016-04-212-157/+174
|
* Y2R: num_tiles should be allowed when its value is 128 (#1669)JamePeng2016-04-151-1/+1
|
* core/video_core: Make NumIds functions constexprLioncash2016-03-172-2/+2
|
* core/video_core: Don't cast away const in subscript operatorsLioncash2016-03-172-6/+6
| | | | Not to say these subscript operators aren't totally ugly as is.
* renderer_base: Don't directly expose the rasterizer unique_ptrLioncash2016-03-091-5/+5
| | | | | There's no reason to allow direct access to the unique_ptr instance. Only its contained pointer.
* AudioCore: Skeleton ImplementationMerryMage2016-02-211-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.
* BitField: Make trivially copyable and remove assignment operatorMerryMage2016-02-121-8/+8
|
* VideoCore: Unify interface to OpenGL and SW rasterizersYuri Kunde Schlesner2015-12-081-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.
* VideoCore: Rename HWRasterizer methods to be less confusingYuri Kunde Schlesner2015-12-071-5/+5
|
* Silence -Wsign-compare warnings.Rohit Nirmal2015-10-071-1/+1
|
* y2r: Give local variables an initial valueLioncash2015-09-101-3/+6
| | | | Keeps compilers/static analyzers quiet.
* Integrate the MicroProfile profiling libraryYuri Kunde Schlesner2015-08-251-0/+8
| | | | | This brings goodies such as a configurable user interface and multi-threaded timeline view.
* GPU: Implement TextureCopy-mode display transfersYuri Kunde Schlesner2015-08-162-25/+76
| | | | Fixes glitchy garbage in Fire Emblem 3D scenes.
* core: Fix missing prototype warningsLioncash2015-07-291-0/+1
|
* Qt/GPU Breakpoints: Added three more breakpoint types:Subv2015-07-231-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
* GPU/DisplayTransfer: Implemented bit 5 in the transfer flags.Subv2015-07-202-12/+31
| | | | It tells the GPU to not swizzle/de-swizzle the input during the transfer.
* Merge pull request #904 from aroulin/y2r-narrowing-warningarchshift2015-07-141-1/+1
|\ | | | | Y2R: Fix narrowing warning
| * Y2R: Fix narrowing warningaroulin2015-07-121-1/+1
| |
* | Add CiTrace recording support.Tony Wasserka2015-07-132-0/+27
| | | | | | | | | | | | 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).
* | GPU: Be robust against nullptr addresses; properly reset busy bits in the trigger registers.Tony Wasserka2015-07-131-27/+34
| |
* | HW: Fix a stupid issue which led to unknown register reads/writes.Tony Wasserka2015-07-131-0/+30
|/
* Merge pull request #876 from linkmauve/include-cleanupsYuri Kunde Schlesner2015-07-115-7/+12
|\ | | | | Cleanup includes, mostly in common
| * Core: Cleanup hw includes.Emmanuel Gil Peyrot2015-06-285-7/+11
| |
| * CitraQt: Cleanup includes.Emmanuel Gil Peyrot2015-06-281-0/+1
| |
* | GPU: Implement blended downscaling for display transfers.Emmanuel Gil Peyrot2015-06-281-27/+40
| |
* | GPU: Use shifts instead of multiplications to calculate the actual size of the output.Emmanuel Gil Peyrot2015-06-281-6/+6
|/
* Y2R: Rework conversion process, enabling support for all formatsYuri Kunde Schlesner2015-06-222-0/+384
|
* hw: Fix mismatched Write callLioncash2015-06-161-1/+1
|
* Merge pull request #811 from archshift/commonifyarchshift2015-05-311-1/+1
|\ | | | | Commonify video_core utility headers
| * Move video_core/color.h to common/color.harchshift2015-05-301-1/+1
| |
* | Merge pull request #832 from yuriks/refresh-rate-optionbunnei2015-05-311-3/+2
|\ \ | |/ |/| Remove gpu_refresh_rate configuration option
| * Remove gpu_refresh_rate configuration optionYuri Kunde Schlesner2015-05-301-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.
* | Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot2015-05-293-7/+7
|/
* OpenGL renderertfarley2015-05-231-3/+13
|
* Memmap: Re-organize memory function in two filesYuri Kunde Schlesner2015-05-151-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 functionYuri Kunde Schlesner2015-05-091-5/+5
|
* Common: Remove common.hYuri Kunde Schlesner2015-05-074-2/+9
|
* HW: Properly initialize and shutdown all modules.bunnei2015-05-023-3/+8
|
* gpu: Fix a missing format specifierLioncash2015-04-071-1/+1
|
* Services: Stubs and minor changespurpasmart962015-04-031-1/+1
|
* Merge pull request #650 from Subv/scalingbunnei2015-03-182-5/+16
|\ | | | | GPU: Fixed the bit 25 in the display transfer flags.
| * GPU/DisplayTransfer: Made the scaling bits a single 2bit valueSubv2015-03-162-6/+17
| | | | | | | | Rephrased some comments.
| * GPU: Fixed the bit 25 in the display transfer flags.Subv2015-03-102-5/+5
| | | | | | | | 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.
* | GPU: Implemented the flip_data (bit 0) bit in display transfers.Subv2015-03-142-6/+15
| |
* | Merge pull request #642 from bunnei/touchpadbunnei2015-03-121-0/+4
|\ \ | | | | | | Touchpad support
| * | HID: Complete refactor of pad/touch input to fix threading issues.bunnei2015-03-111-0/+4
| |/
* | Merge pull request #629 from archshift/lcdfbbunnei2015-03-106-35/+192
|\ \ | |/ |/| Implement SetLcdForceBlack and add implementation for color filling in the GPU code
| * Added LCD registers, and implementation for color filling in OGL code.archshift2015-03-095-9/+167
| |
| * Implement SetLcdForceBlack, move register enum to hw.harchshift2015-03-063-31/+30
| |
* | Merge pull request #648 from Subv/fill_bitTony Wasserka2015-03-091-1/+1
|\ \ | | | | | | GPU: Use the correct position for the finished bit in memory fills
| * | GPU: Use the correct position for the finished bit in memory fillsSubv2015-03-091-1/+1
| |/
* / GPU: Corrected the 24 bit memory fills component orderSubv2015-03-092-5/+5
|/
* GPU: Added RGB565/RGB8 framebuffer support and various cleanups.bunnei2015-03-041-50/+25
| | | | | | - Centralizes color format encode/decode functions. - Fixes endianness issues. - Implements remaining framebuffer formats in the debugger.
* Added RGBA5551 compatibility in the rasterizerarchshift2015-02-281-1/+1
| | | | This allows Virtual Console games to display properly.
* GPU: Implemented bits 3 and 1 from the display transfer flags.Subv2015-02-272-23/+64
| | | | | 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.
* GPU: Fixed RGBA8 as output format in a display transfer.Subv2015-02-221-8/+7
| | | | Verified with hwtests
* Merge pull request #471 from archshift/pp3ports3bunnei2015-02-221-0/+37
|\ | | | | GPU: Add support for more framebuffer formats in display transfers.
| * GPU: Add support for more framebuffer formats in display transfers.Tony Wasserka2015-02-221-0/+37
| |
* | Merge pull request #594 from Subv/display_transferbunnei2015-02-221-8/+6
|\ \ | | | | | | GPU: Fixed the RGBA8 input format and RGB8 output format
| * | GPU: Fixed the RGBA8 input format and RGB8 output formatSubv2015-02-221-8/+6
| | | | | | | | | | | | in Display Transfers, tested with hwtests.
* | | Remove duplication of INSERT_PADDING_WORDS between pica.h and gpu.harchshift2015-02-201-11/+0
|/ /
* | GPU: Properly implement memory fills.Tony Wasserka2015-02-182-16/+57
| |
* | video_core: Implement the remaining framebuffer formats in the OpenGL renderer.Emmanuel Gil Peyrot2015-02-151-0/+19
| |
* | Asserts: break/crash program, fit to style guide; log.h->assert.harchshift2015-02-111-1/+1
| | | | | | | | | | | | | | 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.
* | core: Fix some warnings on OSXLioncash2015-02-031-2/+0
| |
* | GPU: Fix buffer overrun in Display TransfersYuri Kunde Schlesner2015-01-141-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.
* | GPU: Do periodic VBlank updates using CoreTimingYuri Kunde Schlesner2015-01-143-51/+44
| |
* | GPU: Correct wrong default framebuffer address for sub-screen.Yuri Kunde Schlesner2015-01-141-2/+2
| | | | | | | | | | It appears this is a mistake, since the sub-screen has no right framebuffer.
* | GPU: Fire GPU interrupts at the correct places.Yuri Kunde Schlesner2015-01-141-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.
* Move ThreadContext to core/core.h and deal with the falloutYuri Kunde Schlesner2015-01-091-0/+2
|
* DSP: Signal (faked) interrupt on every frame.bunnei2015-01-051-1/+7
| | | | - Hack to work around games checking that the DSP event has been signaled by a real DSP interrupt.
* GPU: Pseudo-implement horizontal scaling.Tony Wasserka2014-12-312-1/+8
| | | | | 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.
* GPU: Implement frameskip and remove forced framebuffer swap hack.bunnei2014-12-292-27/+37
|
* GPU: Further improve synchronization.bunnei2014-12-261-22/+20
|
* License changepurpasmart962014-12-214-4/+4
|
* Convert old logging calls to new logging macrosYuri Kunde Schlesner2014-12-132-12/+12
|
* GPU: Fixed bug in command list size decoding.bunnei2014-12-102-3/+2
|
* Remove unused NDMA moduleYuri Kunde Schlesner2014-12-093-86/+0
|
* Fixed formatting and switch statement warningsvaguilar2014-11-273-5/+5
|
* Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generatedEmmanuel Gil Peyrot2014-11-191-3/+3
|
* Merge pull request #162 from SeannyM/warning-fixesbunnei2014-10-303-6/+6
|\ | | | | Fix some warnings
| * Fix some warningsSean2014-10-303-6/+6
| |
* | Renamed souce files of services to match port namesGareth Poole2014-10-291-1/+1
|/
* Added `gpu_refresh_rate` config setting for the new interpreter speed hack.archshift2014-10-281-10/+1
|
* Use configuration files to enable or disable the new dyncom interpreter.archshift2014-10-282-3/+16
|
* Rename GPU::Regs::FramebufferFormat to PixelFormatYuri Kunde Schlesner2014-10-122-14/+10
| | | | | | 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'.)
* Fix warnings in video_coreLioncash2014-10-082-3/+3
|
* Core: Fix warnings in gpu.cppLioncash2014-09-141-6/+6
|
* core: Prune redundant includesarchshift2014-09-093-4/+0
|
* GPU: Improve frame synchronization, increases compatibility with both homebrew and retail applications.bunnei2014-08-311-13/+31
|
* VideoCore: Fixes rendering issues on Qt and corrects framebuffer output size.bunnei2014-08-261-9/+8
|
* GPU: Fix a compiler warning about redundant semicolons.Tony Wasserka2014-08-251-2/+2
|
* Pica: Add command processor.Tony Wasserka2014-08-121-3/+5
|
* Pica/GPU: Change hardware registers to use physical addresses rather than virtual ones.Tony Wasserka2014-08-122-150/+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.
* Remove the fancy RegisterSet class introduced in 4c2bff61e.Tony Wasserka2014-08-122-132/+212
| | | | | 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.
* GPU: Updated g_last_ticks variable to be more descriptive (represents CPU tick count of last vertical line).bunnei2014-08-071-5/+5
|
* GPU: Updated horizontal sync line counter to use framebuffer height.bunnei2014-08-071-2/+3
|
* GSP: Removed dumb GX prefixes to functions/structs in GSP namespace.bunnei2014-08-061-2/+2
| | | | - Various other cleanups.
* GSP: Implements preliminary command synchronization via GPU interrupts.bunnei2014-08-061-3/+19
| | | | Core: Added a comment to explain the logic for the RunLoop iterations.
* Use uniform formatting when printing hexadecimal numbers.Tony Wasserka2014-07-231-3/+3
|
* Fix a few warnings.Tony Wasserka2014-07-232-4/+4
| | | | Templates shouldn't be marked as inline if they aren't defined in the header.
* GPU: Clarify display transfer code.Tony Wasserka2014-07-231-12/+15
| | | | Also makes the illogical component order more obvious.
* GPU: Add documentation.Tony Wasserka2014-07-231-2/+14
|
* RegisterSet: Simplify code by using structs for register definition instead of unions.Tony Wasserka2014-07-232-133/+123
|
* GPU: Make use of RegisterSet.Tony Wasserka2014-07-232-306/+172
|
* GPU: Make framebuffer code format-aware.Tony Wasserka2014-07-231-6/+47
|
* GPU: Interface cleanup.Tony Wasserka2014-07-232-13/+20
|
* GPU: Initialize GPU registers to some sensible default state.Tony Wasserka2014-07-231-1/+16
|
* GPU: Emulate memory fills.Tony Wasserka2014-07-232-2/+80
|
* GPU: Add proper framebuffer register handling.Tony Wasserka2014-07-232-11/+105
|
* GPU: Properly implement display transfers.Tony Wasserka2014-07-231-1/+19
|
* GPU: Add display transfer configuration.Tony Wasserka2014-07-232-0/+92
|
* GSP: HLE GXCommandId::SET_DISPLAY_TRANSFER and GXCommandId::SET_TEXTURE_COPY.Tony Wasserka2014-07-231-0/+8
|
* Use a more compatible choice of initial framebuffer addresses.Tony Wasserka2014-07-221-10/+22
|
* Merge branch 'threading' of https://github.com/bunnei/citrabunnei2014-06-142-2/+3
|\ | | | | | | | | | | Conflicts: src/core/hle/function_wrappers.h src/core/hle/service/gsp.cpp
| * Core: Cleaned up SingleStep(), updated default LCD refresh to assume each instruction is ~3 cyclesbunnei2014-06-131-1/+2
| |
| * lcd: moved kFrameTicks to lcd.h for use in other modulesbunnei2014-05-292-2/+2
| |
* | GPU: Cleanup register definitions.Tony Wasserka2014-06-122-28/+28
| |
* | Rename LCD to GPU.Tony Wasserka2014-06-124-20/+20
| |
* | Pica: Add command list registers.Tony Wasserka2014-06-122-5/+52
|/
* lcd: added thread wait after (faked) vblank interrupt (would have) occurredbunnei2014-05-231-0/+4
|
* added code to LCD modules keep track of framebuffer location in FCRAM or VRAMbunnei2014-04-272-15/+153
|
* - changed HW IO map to use virtual addressesbunnei2014-04-262-39/+51
| | | | - added hooks to catch LCD IO read/writes
* added (fake) physical addresses for where to put framebuffer in VRAMbunnei2014-04-261-0/+10
|
* renamed hw_lcd module to just lcdbunnei2014-04-183-2/+2
|
* added NDMA hardware interfacebunnei2014-04-183-2/+133
|
* fixed hw write declarations to not be constbunnei2014-04-131-4/+4
|
* updated logging messagebunnei2014-04-111-2/+2
|
* cleaned up some logging messagesbunnei2014-04-111-4/+4
|
* fixed project includes to use new directory structurebunnei2014-04-094-9/+14
|
* got rid of 'src' folders in each sub-projectbunnei2014-04-094-0/+164