summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
AgeCommit message (Collapse)Author
2023-12-21VideoCommon: revert max pixel shader samplers back to 8 for Android devices.iwubcode
It was reported that some games (Zelda Wind Waker and Zelda Twilight Princess but others may also exhibit the issue) have graphical issues with the max pixel samplers set to 16 on some Android devices (ex: Pixel6); since this was increased for a performance heavy feature (custom shaders) just disable it for now. In the future, this could be handled more elegantly
2023-12-20VideoCommon/CommandProcessor: Pass system instance through constructorLioncache
Makes the use of the interface a little less noisy, especially given how much of the interface depends on an instance being present.
2023-12-19VideoCommon: when loading a texture asset, set sampler to linear sampler if ↵iwubcode
the texture type is not defined and the 2d texture is assumed
2023-12-19VideoCommon: update custom pipeline action to support a variety of texture ↵iwubcode
samplers (2D, 2D array, and cube maps)
2023-12-20VideoCommon: apply "force 24-bit color" to EFB-to-VRAM copies as wellTillmann Karras
2023-12-18VideoCommon/Fifo: Pass system instance through FifoManager constructorLioncache
Given how many member functions make use of the system instance, it's likely just better to pass the system instance in on construction. Makes the interface a little less noisy to use.
2023-12-18Merge pull request #12170 from Filoppi/custom_aspect_ratioAdmiral H. Curtiss
Add support for custom aspect ratios
2023-12-18Video: make the "Auto" resolution setting also follow the max res setting, ↵Filoppi
to avoid trying to create texture bigger than the maximum supported one
2023-12-18Video: fix auto resolution scale calculationsFiloppi
2023-12-18Video: fix Auto Resolution Scale not updating when the window was resized.Filoppi
Also fixes the widescreen hack not fully updating when the aspect ratio setting changed on the spot.
2023-12-18Video: implement custom aspect ratio support (already exposed to Qt).Filoppi
This also renamed some variables/functions.
2023-12-18Video: rename Presenter::SetWindowSize()Filoppi
2023-12-18Video: polish aspect ratio related code comments to make it clearerFiloppi
2023-12-17Merge pull request #12370 from iwubcode/more_samplersMai
VideoBackends / VideoCommon: update max pixel shader samplers from 8 to 16
2023-12-17Merge pull request #12409 from iwubcode/custom_material_graphics_mod_action_dataMai
VideoCommon: prepare graphics mods for custom shader material data
2023-12-17Merge pull request #12382 from iwubcode/shader_asset_default_valueMai
VideoCommon: update shader asset to provide a variant default value
2023-12-17Merge pull request #12372 from iwubcode/texture_usage_flagMai
VideoBackends / VideoCommon: add type enum to dictate how the texture is used; support texture 2d
2023-12-16Merge pull request #12427 from JosJuice/jitarm64-msr-updated-logical-immAdmiral H. Curtiss
JitArm64: Fix MSRUpdated(ARM64Reg) with FEATURE_FLAG_PERFMON set
2023-12-16JitArm64: Use enum class for LogicalImm size parameterJosJuice
This should prevent issues like the one fixed in the previous commit from happening again.
2023-12-15VideoBackends / VideoCommon: add type enum to dictate whether a texture is a ↵iwubcode
2D texture, a texture array, or a cube map; support 2D texture type across backends Co-authored-by: TellowKrinkle <tellowkrinkle@gmail.com>
2023-12-12VideoCommon: prepare graphics mods for custom shader material dataiwubcode
2023-12-12Merge pull request #12240 from iwubcode/material_asset_additional_propertiesMai
VideoCommon: add additional data types to material asset
2023-12-12VideoCommon: add message to XF load assertTillmann Karras
2023-12-12LightingShaderGen: Resolve -Wshadow warningsLioncash
Given how the lambda doesn't capture anything, we can move this to a internally linked function, which prevents any name shadowing.
2023-12-12Merge pull request #12371 from lioncash/spanTilka
VideoCommon: Use std::span for BoundingBox::Write()
2023-12-12VideoCommon: update shader asset to provide a variant default valueiwubcode
2023-12-11CustomAssetLibrary: Remove unused GetAssetSize() functionLioncash
There's a direct analogue of this function within DirectFilesystemAssetLibrary that *is* used, however, so we can get rid of this one.
2023-12-11VertexManagerBase: Resolve -Wsign-compare warningLioncash
2023-12-11Merge pull request #12392 from lioncash/declAdmiral H. Curtiss
General: Resolve -Wmissing-declaration warnings
2023-12-11Merge pull request #12389 from lioncash/cheeveAdmiral H. Curtiss
AchievementManager: Make GetInstance() and GetLock() return a reference
2023-12-11PostProcessing: Mark helper functions as staticLioncash
These didn't have any prototypes and were generating -Wmissing-declaration warnings.
2023-12-11ShaderAsset: Mark ParseShaderProperties() as staticLioncash
This had no function prototype, so this can be internally linked. Resolves a -Wmissing-declaration warning.
2023-12-11CustomShaderCache: Resolve -Wreorder warningsLioncash
Lays out the initializer lists to be in the same order that initialization would occur in.
2023-12-11AchievementManager: Return by reference from GetLock()Lioncash
This makes the API a little nicer to use, since you don't need to do a mandatory dereference when passing the lock into any kind of scope guard.
2023-12-11AchievementManager: Make GetInstance() return a referenceLioncash
The internal static member will always have a valid lifetime. Makes this consistent with other instance based objects in our code.
2023-12-10VideoCommon: add ability to serialize graphics mod to json objectiwubcode
2023-12-10VideoBackends / VideoCommon: update max pixel shader samplers from 8 to 16, ↵iwubcode
this allows us to support more samplers than the native Wii/GC
2023-12-09VideoCommon: prevent a potential custom texture crash that can occur when a ↵iwubcode
shared_ptr gets released while a pointer to its member data is still being used
2023-12-09VideoCommon/Present: Remove use of g_presenter inside Presenter classLioncash
There's no need to self reference a global of the class itself when we can just call the function directly.
2023-12-09VideoCommon: Use std::span for BoundingBox::Write()Lioncash
Crosses off a lingering TODO. Also amends a few nearby cases where a u32 cast was being repromoted to size_t.
2023-12-08Bugfix - small square in bottom right cornerLillyJadeKatrin
Fixed a bug in OSUI created by the challenge icons that caused a small rectangle to appear in the bottom right corner of the screen.
2023-12-07Display Active Challenges On ScreenLillyJadeKatrin
The active challenges, aka the primed achievements, are displayed on screen as a series of icons in the bottom right corner of the screen via OnScreenUI.
2023-12-04VideoCommon: add additional data types (int, int2, float, bool, etc) as ↵iwubcode
properties of materials and some helper functions to support sending the data to the GPU
2023-12-02VertexLoader: Use Common::SmallVectorPokechu22
2023-12-02VertexLoader: Remove unnecessary calls to ↵Pokechu22
VertexLoader_TextCoord::GetDummyFunction
2023-12-02VertexLoader: Fix wrong array being used if color 1 is present but color 0 isn'tPokechu22
This worked correctly on the JIT vertex loaders, and for the equivalent case with texture coordinates. I'm not aware of any games this affects (but libogc does mention a semi-related scenario at https://github.com/devkitPro/libogc/blob/6bc0317c7d52063c2d2b48b721520093c76432a9/gc/ogc/gx.h#L1855-L1857.)
2023-12-02VertexLoaderTest: Add test for skipped texture coordinatesPokechu22
Jimmie Johnson's Anything with an Engine is known to use texture coordinate 7 (and only texture coordinate 7) in some cases. There are a lot of possible edge-cases, so this test brute-forces all combinations with coordinates 0, 1, and 2.
2023-11-28Remove _M_X86 in favour of _M_X86_64Zopolis4
2023-11-28Merge pull request #12263 from Dentomologist/realtime_cheatsearch_updateMai
CheatSearch: Automatically update Current Values
2023-11-28Merge pull request #12328 from iwubcode/xf_state_managerTilka
VideoCommon: move xf state management to its own class