summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
AgeCommit message (Collapse)Author
2021-05-22Merge pull request #9737 from Techjar/fix-textureinfo-hasmipsMai M
VideoCommon/TextureInfo: Restore old mipmap detection logic
2021-05-22Apple M1: RAII Wrapper for JITPageWrite*Execute*()Skyler Saleh
Added RAII wrapper around the the JITPageWriteEnableExecuteDisable() and JITPageWriteDisableExecuteEnable() to make it so that it is harder to forget to pair the calls in all code branches as suggested by leoetlino.
2021-05-22Apple M1 Support for MacOSSkyler Saleh
This commit adds support for compiling Dolphin for ARM on MacOS so that it can run natively on the M1 processors without running through Rosseta2 emulation providing a 30-50% performance speedup and less hitches from Rosseta2. It consists of several key changes: - Adding support for W^X allocation(MAP_JIT) for the ARM JIT - Adding the machine context and config info to identify the M1 processor - Additions to the build system and docs to support building universal binaries - Adding code signing entitlements to access the MAP_JIT functionality - Updating the MoltenVK libvulkan.dylib to a newer version with M1 support
2021-05-22VideoCommon: Account for pixel quads in bounding box calculationTechjar
The GC/Wii GPU rasterizes in 2x2 pixel groups, so bounding box values will be rounded to the extents of these groups, rather than the exact pixel. To account for this, we'll round the top/left down to even and the bottom/right up to odd. I have verified that the values resulting from this change exactly match a real Wii.
2021-05-22VideoCommon: Split BBox* functions into common and backend implementation ↵Techjar
variants This will allow for some aspects of bounding box to be handled in VideoCommon instead of individual backends.
2021-05-22VideoCommon/TextureInfo: Restore old mipmap detection logicTechjar
2021-05-20Merge pull request #9710 from JosJuice/volatile-begoneMai M
Remove all remaining volatile qualifiers
2021-05-18Merge pull request #8923 from Filoppi/OSD-fixesJMC47
fixes for "On Display Messages"
2021-05-15Remove all remaining volatile qualifiersJosJuice
2021-05-14Merge pull request #9540 from Pokechu22/better-fifo-analyzer-part-2Mat M
Fifo analyzer quality of life improvements
2021-05-14Merge pull request #9707 from JosJuice/remove-atomic-headerMat M
Remove Atomic.h
2021-05-14Merge pull request #9688 from Filoppi/input_cleanupScott Mansell
Input cleanup
2021-05-13Remove Atomic.hJosJuice
The STL has everything we need nowadays. I have tried to not alter any behavior or semantics with this change wherever possible. In particular, WriteLow and WriteHigh in CommandProcessor retain the ability to accidentally undo another thread's write to the upper half or lower half respectively. If that should be fixed, it should be done in a separate commit for clarity. One thing did change: The places where we were using += on a volatile variable (not an atomic operation) are now using fetch_add (actually an atomic operation). Tested with single core and dual core on x86-64 and AArch64.
2021-05-13Merge pull request #9681 from iwubcode/texture-infoMat M
VideoCommon: move all texture calculations to a "TextureInfo" class
2021-05-12Add mixed comments to input code, make some tooltip clearerFiloppi
2021-05-11VideoCommon: move all texture calculations to a "TextureInfo" class. This ↵iwubcode
ever so slightly improves readability and allows for the full texture name to be generated outside of the hires texture cache
2021-05-09Merge pull request #9694 from iwubcode/xfb-tcache-hashJMC47
VideoCommon: update TextureCache logic for finding oversized XFBs
2021-05-08VideoCommon: simplify TextureCacheBase by comparing a xfb's hash against a ↵iwubcode
newly calculated one. This fixes games like Teenage Mutant Ninja Turtles (Wii) which use oversized textures where the stride doesn't match the BytesPerRow and that resulted in a different hash algorithm being used. By not hashing the texture before, we improve performance by hashing at most once in all direct XFB lookup scenarios.
2021-05-07UberShaderPixel: always run indirect stage logicPokechu22
Hardware testing has confirmed that fb_addprev and wrapping both run even when the indirect stage is disabled.
2021-05-07PixelShaderGen: always run indirect stage logicPokechu22
Hardware testing has confirmed that fb_addprev and wrapping both run even when the indirect stage is disabled.
2021-05-07UberShaderPixel: Fix OOB tex coord indicesPokechu22
Previously we set the texture coordinate to zero, now we set the texture coordinate *index* to zero. This fixes the ripple effect of the Mario painting in Luigi's Mansion.
2021-05-07UberShaderPixel: Return fixed-point values from selectTexCoordPokechu22
This change should have no behavioral differences itself, but allows for changing the behavior of out of bounds tex coord indices more easily in the next commit. Without this change, returning tex0 for out of bounds cases and then applying the fixed-point logic would use the wrong tex dimension info (tex0 with I_TEXDIMS[1] or such), which is inaccurate.
2021-05-07PixelShaderGen: Fix OOB tex coord indicesTillmann Karras
Previously we set the texture coordinate to zero, now we set the texture coordinate *index* to zero. This fixes the ripple effect of the Mario painting in Luigi's Mansion. Co-authored-by: Pokechu22 <Pokechu022@gmail.com>
2021-05-07PixelShaderGen: Remove unused num_texgens argumentPokechu22
It became unused in f039149198657c1891e1c6462ed30c31ed4b8486.
2021-05-07Split TevStageIndirect::mid into matrix_index and matrix_idPokechu22
2021-05-07Add 1 when displaying the number of TEV stagesPokechu22
2021-05-07Correct indirect stage ref typosPokechu22
YAGCD uses BI0/BC0/BI1/BC1/BI2/BC2/BI3/BC3, so I'm pretty sure the BI2/BC3/BI4/BC4 names are a typo that just was propagated.
2021-05-07Separate vertex components by spacesPokechu22
2021-05-07Add descriptions for GX_LOAD_INDX_A/B/C/DPokechu22
2021-05-07Move vertex size and component calculation to VertexLoaderBasePokechu22
2021-05-07Remove VertexLoaderBase::IsInitializedPokechu22
It is no longer relevant for the current set of loaders after 70305425462843af192489da00389559cd6f5834. If it becomes relevant again, a static function named IsUsable or IsCompatibleWithCurrentMachine or something would be a better approach.
2021-05-07Eliminate TVtxAttrPokechu22
2021-05-07Extract VertexLoaderARM64::GetLoadSize into a new functionPokechu22
2021-05-07Use bool bitfields in VATPokechu22
2021-05-07Remove VertexLoader::ToStringPokechu22
2021-05-07Convert VertexLoader_Color to a tablePokechu22
2021-05-08Merge pull request #9633 from Pokechu22/BitfieldExtract-pointer-to-memberLéo Lam
Change BitfieldExtract to use a pointer to the bitfield member
2021-05-07Change BitfieldExtract to use a pointer to the bitfield memberPokechu22
2021-05-07Merge pull request #9417 from Filoppi/input-1Léo Lam
Fix FPS counter and Game Window speed % breaking on pause/unpause
2021-05-07Merge pull request #9641 from lynlevenick/ash/texture-cache-optLéo Lam
Remove spurious memory allocations in TextureCacheBase::SerializeTexture and DeserializeTexture
2021-05-06Fix FPS counter and Game Window speed % breaking on pause/unpauseFiloppi
-Add pause state to FPSCounter. -Add ability to have more than one "OnStateChanged" callback in core. -Add GetActualEmulationSpeed() to Core. Returns 1 by default. It's used by my input PRs.
2021-05-05Update zcompression format change TODOScott Mansell
2021-05-05Implement EFB Peeks for compressed z16 formatsScott Mansell
This fixes an issue in RS3 where engine lens flares would shine though ships during cutscenes
2021-04-25OnScreenDisplay: a few fixesFiloppi
-They might have never drawn if DrawMessages wasn't called before they actually expired -Their fade was wrong if the duration of the message was less than the fade time This makes them much more useful for debugging, I know there might be other means of debugging like logs and imgui, but this was the simplest so that's what I used. If you want to print the same message every frame, but with a slightly different value to see the changes, it now work. To compensate for the fact that they are now always rendered once, so on start up a lot of old messages (printed while the emulation was off) could show up, I've added a "drop" time, which means if a msg isn't rendered for the first time within that time, it will be dropped and never rendered.
2021-04-24VideoCommon: Fix scissorOffset, handle negative value correctlyezio1900
VideoCommon: Change the type of BPMemory.scissorOffset to 10bit signed: S32X10Y10 VideoBackends: Fix Software Clipper.PerspectiveDivide function, use BPMemory.scissorOffset instead of hard code 342
2021-04-18optimize TextureCacheBase::SerializeTexture, ::DeserializeTextureash!!
texture serialization and deserialization used to involve many memory allocations and deallocations, along with many copies to and from those allocations. avoid those by reserving a memory region inside the output and writing there directly, skipping the allocation and copy to an intermediate buffer entirely.
2021-04-18Merge pull request #7214 from stenzek/cp-access-syncJMC47
Fifo: Run/sync with the GPU on command processor register access
2021-04-18Fifo: Run/sync with the GPU on command processor register accessStenzek
2021-04-13Allow shaders to query reciprocal of window resolutionValeri
2021-04-11DriverDetails: Fix broken vector bitwise AND on Mali driverssspacelynx