summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan
AgeCommit message (Collapse)Author
2021-10-08Merge pull request #9803 from Techjar/bbox-videocommonLéo Lam
VideoCommon: Abstract bounding box
2021-10-04VideoCommon: Abstract bounding boxTechjar
This moves much of the duplicated bounding box code into VideoCommon, leaving only the specific buffer implementations in each backend.
2021-09-20DriverDetails: Add broken dual source blending bug to MoltenVK on Intel GPUsOatmealDome
2021-09-20VulkanContext: Don't assume anv for Intel GPUs on macOSOatmealDome
2021-09-16VulkanContext: Disable subgroup reduction on macOS with AMD GPUsOatmealDome
2021-08-30VideoBackends / VideoCommon: allow the ability to set debug names for ↵iwubcode
shaders / textures. These names are visible in applications like RenderDoc
2021-08-05ShaderCompiler: Attach source text to SPIR-V for debuggers like RenderDocOatmealDome
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-06-07Vulkan: Fix subgroup reductionTechjar
It seems that we were writing values from helper invocations, which produces wrong results.
2021-05-31VideoCommon: Restore BBox* forwarding functionsTechjar
2021-05-29VideoCommon: Remove BBox* forwarding functionsTechjar
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-15Remove all remaining volatile qualifiersJosJuice
2021-04-12Vulkan: Work around AMD exclusive fullscreen bug (21.3+)Connor McLaughlin
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-01-27msbuild: bundle all dolphin "core" code into single libraryShawn Hoffman
2021-01-27normalize common filenames in VideoBackends/VulkanShawn Hoffman
2020-12-02General: Convert PanicAlerts over to fmt equivalentLioncash
Converts lingering panic alert calls over to the fmt-capable ones.
2020-11-20Vulkan: fix validation error in bSupportsGeometryShaders=false caseJonathan Marek
In CreateDescriptorSetLayouts(), one less dynamic binding is created when bSupportsGeometryShaders=false. Reduce the dynamicOffsetCount argument by one in that case. Avoids this validation error: Attempting to bind 3 descriptorSets with 2 dynamic descriptors, but dynamicOffsetCount is 3. It should exactly match the number of dynamic descriptors. The Vulkan spec states: dynamicOffsetCount must be equal to the total number of dynamic descriptors in pDescriptorSets Signed-off-by: Jonathan Marek <jonathan@marek.ca> [Applied clang-format] Signed-off-by: Léo Lam <leo@leolam.fr>
2020-11-09Vulkan: Migrate logging over to fmtLioncash
Migrates the vulkan backend over to the fmt-capable logger.
2020-11-05Common/LinearDiskCache: Replace std::fstream with File::IOFileJosJuice
File::IOFile is better suited to this type of task. Split out from a future PR.
2020-11-03Merge pull request #9138 from martymac/VK_NULL_HANDLE-fixJordan Woyak
Fix build on FreeBSD i386 - nullptr vs VK_NULL_HANDLE
2020-11-03Resolve VkDeviceMemory/nullptr type mismatch to fix build on FreeBSD i386Ganael Laplanche
2020-10-08DriverDetails: Remove bug for broken GPU Texture DecodingTechjar
2020-10-01Vulkan: Use VK_LAYER_KHRONOS_validation for validationStenzek
VK_LAYER_LUNARG_standard_validation is deprecated.
2020-09-07VideoBackends: Disable GPU Texture Decoding under MoltenVKTechjar
It's broken and causes spectacular artifacts and crashes.
2020-09-06Make default graphics backend not show up as emptyJosJuice
Fixes https://bugs.dolphin-emu.org/issues/12245. I considered making a change to DolphinQt instead of the core, but then additional effort would've been required to add the same fix to the Android GUI once we start using the new config system there.
2020-08-22name some threadsShawn Hoffman
2020-08-22Merge pull request #9035 from shuffle2/vs-prettyLC
misc vcxproj cleanup
2020-08-22windows: fix build if pch were to be disabledShawn Hoffman
2020-08-22msbuild: re-enable standalone vcxproj processingShawn Hoffman
2020-08-22msbuild: refactor stuff out of project files (for dolphin)Shawn Hoffman
2020-07-18Use range loop (if possible)Filip Gawin
2020-05-30Externals: Fix build failures with the newer glslang.orbea
v2: Don't include glslang project wide.
2020-05-25VideoCommon/ShaderGenCommon: Make template functions regular functionsLioncash
These are only ever used with ShaderCode instances and nothing else. Given that, we can convert these helper functions to expect that type of object as an argument and remove the need for templates, improving compiler throughput a marginal amount, as the template instantiation process doesn't need to be performed. We can also move the definitions of these functions into the cpp file, which allows us to remove a few inclusions from the ShaderGenCommon header. This uncovered a few instances of indirect inclusions being relied upon in other source files. One other benefit is this allows changes to be made to the definitions of the functions without needing to recompile all translation units that make use of these functions, making change testing a little quicker. Moving the definitions into the cpp file also allows us to completely hide DefineOutputMember() from external view, given it's only ever used inside of GenerateVSOutputMembers().
2020-04-29Fix windows build system.degasus
2020-04-27Merge pull request #8696 from howard0su/cleanup_shadowLéo Lam
Cleanup warnings of -Wmissing-declarations
2020-04-07Vulkan: Switch from vkCreateMacOSSurfaceMVK() to vkCreateMetalSurfaceEXT()Stenzek
Since we are calling this off the UI thread, we can't use anything which accesses the underlying NSView object. We create and set the Metal layer on the UI thread before the video backend is initialized. This extension is both compatible with MoltenVK and gfx-portability for accepting a layer at surface creation.
2020-03-24Cleanup warnings of -Wmissing-declarationsJun Su
Add static to the functions which is not intentionally export to big scope.
2020-03-11Vulkan: Pass CAMetalLayer to MoltenVK instead of NSViewStenzek
Gets rid of the warning for calling [NSView layer] off the main thread.
2020-03-11VideoBackends: Make it possible for PrepareWindow to change the surfaceStenzek
Again, needed for MoltenVK.
2020-01-31Vulkan: Treat VK_SUBOPTIMAL_KHR as VK_SUCCESS on AndroidStenzek
Android 10 seems to expect a prerotated/transformed swap chain for optimal presentation. For now, until we implement that, just ignore the hint.
2020-01-31Vulkan: Log when a swap chain resize is occurringStenzek
This may help us debug performance problems in the future.
2020-01-24Add Dolphin version and current video backend to shader compilation logsRyan Meredith
2019-12-29Use pre-increment for iterators instead of post-increment.David Korth
Pre-increment is more efficient, since it doesn't have to return the old iterator.
2019-12-28Add an ARM64 target to Visual Studio projectsStenzek
2019-12-09Vulkan: Call VertexManagerBase initializeStenzek
2019-12-05VideoCommon/IndexGenerator: Eliminate static stateLioncash
Now that we've extracted all of the stateless functions that can be hidden, it's time to make the index generator a regular class with active data members. This can just be a member that sits within the vertex manager base class. By deglobalizing the state of the index generator we also get rid of the wonky dual-initializing that was going on within the OpenGL backend. Since the renderer is always initialized before the vertex manager, we now only call Init() once throughout the execution lifecycle.
2019-11-30Update VS projects/solutions to VS2019Stenzek
2019-11-28Common: Unify logging namespace with CommonLioncash
Previously the logging was a in a little bit of a disarray. Some things were in namespaces, and other things were not. Given this code will feature a bit of restructuring during the transition over to fmt, this is a good time to unify it under a single namespace and also remove functions and types from the global namespace. Now, all functions and types are under the Common::Log namespace. The only outliers being, of course, the preprocessor macros.