summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
AgeCommit message (Collapse)Author
2021-04-06Skip loading unknown XF registers in the FIFO playerPokechu22
This avoids some warnings, which were originally fixed by ignoring loads with a value of zero (see 636bedb207784db2d58b9986464f6a863677b59e / #3242). Note that FifoCI will report some changes, but only on the first frame; these seem to be timing related as they don't happen if a different write is used to replace skipped ones.
2021-04-06Track and log CP commands 0x00/0x10/0x20 differently from other unknown commandsPokechu22
They appear to relate to perf queries, and combining them with truely unknown commands would probably hide useful information. Furthermore, 0x20 is issued by every title, so without this every title would be recorded as using an unknown command, which is very unhelpful.
2021-04-06Log a warning for inexact uses of MATINDEX or VCD commandsPokechu22
2021-04-06Add game quirks for unknown BP/CP/XF commandsPokechu22
2021-04-03Merge pull request #9621 from Pokechu22/cassertLéo Lam
Replace uses of cassert with Common/Assert.h
2021-04-02Replace uses of cassert with Common/Assert.hPokechu22
2021-04-02VertexShaderGen: Sonic epsilon hack for OpenGL ESblåhaj
debaf63fe8abc4d534c0cac7540eb8607e2c5c91 moved the "Sonic epsilon hack" to vertex shaders. However, it was only done for targets with depth clamping. If this is not available, for example the target is OpenGL ES, the Sonic problem appears (https://bugs.dolphin-emu.org/issues/11897). A version of the "Sonic epsilon hack" is added for targets without depth clamping.
2021-04-01Merge pull request #8747 from iwubcode/map-freelookJMC47
Support controlling Free Look via input bindings (motion controls, gamepad, etc!)
2021-03-26Refactor CP array constants slightlyPokechu22
2021-03-18VertexLoaderTest: Fix memset assignment warningDentomologist
Initialize and assign members of TVtxDesc and VAT structs directly instead of using memset. Fixes -Wclass-memaccess warning from gcc on Debian.
2021-03-18FreeLook: update camera and manager to use a delta time for movement (in ↵iwubcode
case we decide to move this somewhere else in the future)
2021-03-17VideoCommon: update FreeLook camera to add quaternion based rotation, fix ↵iwubcode
orbital and fps implementations
2021-03-17Merge pull request #9494 from Dentomologist/convert_arm64reg_to_enum_classJosJuice
Arm64Gen: Convert ARM64Reg to enum class
2021-03-13Arm64Gen: Convert ARM64Reg to enum classDentomologist
Most changes are just adding ARM64Reg:: in front of the constants.
2021-03-07FreeLookCamera: Add override specifiersDentomologist
2021-03-07FreeLookCamera: Remove unused variableDentomologist
2021-03-06Use formatters in GetBPRegInfo; add missing commandsPokechu22
BPMEM_TEV_COLOR_ENV + 6 (0xC6) was missing due to a typo. BPMEM_BP_MASK (0xFE) does not lend itself well to documentation with the current FIFO analyzer implementation (since it requires remembering the values in BP memory) but still shouldn't be treated as unknown. BPMEM_TX_SETMODE0_4 and BPMEM_TX_SETMODE1_4 (0xA4-0xAB) were missing entirely.
2021-03-06Convert BPMemory to BitField and enum classPokechu22
Additional changes: - For TevStageCombiner's ColorCombiner and AlphaCombiner, op/comparison and scale/compare_mode have been split as there are different meanings and enums if bias is set to compare. (Shift has also been renamed to scale) - In TexMode0, min_filter has been split into min_mip and min_filter. - In TexImage1, image_type is now cache_manually_managed. - The unused bit in GenMode is now exposed. - LPSize's lineaspect is now named adjust_for_aspect_ratio.
2021-03-06Add FogParam0::FloatValue and FogParam3::FloatValuePokechu22
This value will be used in the register description; so expose it in a way that can be re-used instead of calculating it in 2 places later.
2021-03-06Fix typo with ztex2 op in UseVertexDepthRangePokechu22
2021-03-06Rename BPMEM_EFB_BR to BPMEM_EFB_WHPokechu22
2021-03-06Use XFMEM_REGISTERS_START/END in XFRegWritten and LoadXFRegPokechu22
2021-03-06Add names and descriptions for regular XF memoryPokechu22
2021-03-06Add names and descriptions for XF registers to the FIFO analyzerPokechu22
2021-03-06Convert XFMemory to BitField and enum classPokechu22
Additionally a new ClipDisable union has been added (though it is not currently used by Dolphin).
2021-03-06Add names and descriptions for CP registers to the FIFO analyzerPokechu22
2021-03-06Convert CPMemory to BitField and enum classPokechu22
Additionally, VCacheEnhance has been added to UVAT_group1. According to YAGCD, this field is always 1. TVtxDesc also now has separate low and high fields whose hex values correspond with the proper registers, instead of having one 33-bit value. This change was made in a way that should be backwards-compatible.
2021-03-06Create constants for CP registers and masksPokechu22
2021-02-11VideoCommon: Join the prefetch thread before clearing to avoid a potential ↵iwubcode
crash that can occur by multiple threads touching a single resource
2021-01-28Merge pull request #9366 from iwubcode/freelook_camera_quaternionLéo Lam
VideoCommon: allow Free Look to be manipulated by a quaternion
2021-01-27VideoCommon: use Quaternion for Free Look orientationiwubcode
2021-01-27msbuild: bundle all dolphin "core" code into single libraryShawn Hoffman
2021-01-27rename Common/File to Common/IOFileShawn Hoffman
2021-01-27rename Core/Analytics to Core/DolphinAnalyticsShawn Hoffman
2021-01-17Arm64Emitter: Convert ShiftType to enum classDentomologist
2021-01-15Arm64Emitter: Convert IndexType to enum classDentomologist
2021-01-05Merge pull request #9323 from waddlesplash/haikuLéo Lam
Rehabilitate Haiku support.
2021-01-05Fix a couple of typosFilippo Tarpini
[committer note: fixed commit message style]
2021-01-02Rehabilitate Haiku support.waddlesplash
2020-12-26VideoCommon: Fix crash that occurs on loading a fifo log due to ↵iwubcode
uninitialized Free Look control type
2020-12-24VideoCommon: Update active config when we check for config changes, this ↵iwubcode
ensures Free Look settings are copied at the start of the frame. Also update the camera's controller type at this time
2020-12-24VideoCommon: Add 'Active' state to FreelookCamera to future proof if we ever ↵iwubcode
add multiple cameras
2020-12-24VideoCommon: Update Free Look camera with settings change...iwubcode
2020-12-24Core / VideoCommon: Remove old Free Look configiwubcode
2020-12-24VideoCommon: Change 'Zoom' to 'MoveForward' since it really isn't a zoomiwubcode
2020-12-24VideoCommon: Add speed to Free Look cameraiwubcode
2020-12-16Core: Remove ImageWrite and get rid of -Wmissing-declarations warningsLéo Lam
2020-12-16Fix -Wclass-memaccess warningsLéo Lam
We want to clear/memset the padding bytes, not just each member, so using assignment or {} initialization is not an option. To silence the warnings, cast the object pointer to u8* (which is not undefined behavior) to make it explicit to the compiler that we want to fill the object representation.
2020-12-15Add NetBSD supportDavid Carlier
2020-12-11Merge pull request #9289 from AdmiralCurtiss/simple-png-api-writeLéo Lam
Use Simplified libpng API for writing PNGs.