ameerj
6c0d902373
nvhost_ctrl: Refactor usage of gpu.LockSync()
This seems to only be used to protect a later gpu function call. So we can move the lock into that call instead.
4 years ago
ameerj
427bf76e62
gpu: Migrate implementation to the cpp file
4 years ago
ameerj
5daf3abe65
common/logging: Move Log::Entry declaration to a separate header
This reduces the load of requiring to include std::chrono in all files which include log.h
4 years ago
ameerj
6f35fb8d26
vk_graphics_pipeline: Force patch list topology when tessellation is used
Fixes a crash on some drivers when tessellation is used but the IA topology is not patch list.
4 years ago
ameerj
73666fb262
general: Update style to clang-format-12
4 years ago
ameerj
ab63a193d7
video_core: Fix jthread related hangs when stopping emulation
jthread on some compilers is more picky when it comes to the order in which objects are destroyed.
4 years ago
ameerj
1e1ecca691
vk_texture_cache: Disable cube compatibility flag on non-mesa AMD GCN4 and earlier
Fixes rainbow textures on BOTW.
4 years ago
Fernando Sahmkow
d702b393a4
Vulkan Query Cache: make sure to wait for the query result.
4 years ago
Fernando Sahmkow
8fdb51ab46
QueryCache: Flush queries in order of running.
4 years ago
Fernando Sahmkow
60a3980561
Vulkan Rasterizer: Correct DepthBias/PolygonOffset on Vulkan.
4 years ago
ameerj
24049591f6
maxwell_dma: Minor refactoring
4 years ago
ameerj
1ea8073783
buffer_cache: Minor fixes
Loop through the tmp_intervals by reference, rather than by copy, and fix gl clear buffer size calculation.
4 years ago
ameerj
22162f906b
host_shaders: Remove opengl_copy_bgra.comp
4 years ago
ameerj
ab808fe7cf
gl_texture_cache: Migrate BGRCopyPass from util_shaders
The BGR copies no longer use shaders.
4 years ago
ameerj
e3c153efa4
vulkan_device: Reorder Float16Int8 declaration
This variable was going out of scope before its usage in the vulkan device creation, causing a crash on very specific drivers.
4 years ago
ameerj
5601e1cb00
Revert "Merge pull request #7006 from FernandoS27/a-motherfucking-driver"
This reverts commit 62e88d0e74 , reversing
changes made to edf3da346f .
4 years ago
ameerj
7f737b022a
util_shaders: Unify BGRA copy passes
4 years ago
ameerj
84f7e7e91c
vk_scheduler: Use std::jthread
4 years ago
ameerj
877cd60b00
gpu: Use std::jthread for async gpu thread
4 years ago
Morph
2df2b3719a
renderers: Log total pipeline count
4 years ago
ameerj
db1c4b125f
vulkan_debug_callback: Ignore InvalidCommandBuffer-VkDescriptorSet errors
This validation error is spammed on some titles, asserting that VkDescriptorSet 0x0[] was destroyed.
This is likely a validation layer bug when using VK_KHR_push_descriptor, which can avoid using traditional VkDescriptorSet. It should be safe to ignore for now.
4 years ago
Fernando Sahmkow
7a712da2b3
Vulkan: Disable VK_EXT_SAMPLER_FILTER_MINMAX in GCN AMD since it's broken.
4 years ago
Fernando Sahmkow
e7c8a0bb23
Vulkan: Blacklist Int8Float16 Extension on AMD on driver 21.9.1
4 years ago
Fernando Sahmkow
e7ca37b1e5
Vulkan/Descriptors: Increase sets per pool on AMFD propietary driver.
4 years ago
ameerj
35e5a67a83
vk_swapchain: Use immediate present mode when mailbox is unavailable and FPS is unlocked
Allows drivers that do not support VK_PRESENT_MODE_MAILBOX_KHR the ability to present at a framerate higher than the monitor's refresh rate when the FPS is unlocked.
4 years ago
ameerj
678f73069f
vk_rasterizer: Fix dynamic StencilOp updating when two faces are enabled
This function was incorrectly using the stencil_two_side_enable register when dynamically updating the StencilOp.
4 years ago
ameerj
8e289ade15
vk_state_tracker: Remove unused function
4 years ago
Morph
e67463df24
shader_environment: Add missing <algorithm> include
4 years ago
Morph
63b4c8f9f7
vk_descriptor_pool: Add missing <algorithm> include
4 years ago
Morph
76abf55f25
slot_vector: Add missing <algorithm> include
4 years ago
Morph
554c46d186
video_core/memory_manager: Add missing <algorithm> include
4 years ago
Morph
ae028ddf22
codec: Add missing <string_view> include
4 years ago
Feng Chen
0292374807
Fix blend equation enum error
4 years ago
ameerj
7d854fbdb0
renderer_vulkan: Wait on present semaphore at queue submit
The present semaphore is being signalled by the call to acquire the
swapchain image. This semaphore is meant to be waited on when rendering
to the swapchain image. Currently it is waited on when presenting, but
moving its usage to be waited on in the command buffer submission allows
for proper usage of this semaphore.
Fixes the device lost when launching titles on the Intel Linux Mesa driver.
4 years ago
ameerj
4fda7f1c82
structured_control_flow: Conditionally invoke demote reorder pass
This is only needed on select drivers when a fragment shader discards/demotes.
4 years ago
Fernando Sahmkow
fe0acec539
Garbage Collection: Make it more agressive on high priority mode.
4 years ago
Fernando Sahmkow
ff48f06fb9
Garbage Collection: Adress Feedback.
4 years ago
ameerj
27f8f3333f
vulkan_device: Enable VK_KHR_swapchain_mutable_format if available
Silences validation errors when creating sRGB image views of linear swapchain images
4 years ago
ameerj
3c65c8580f
vk_swapchain: Prefer linear swapchain format when presenting sRGB images
Fixes broken sRGB when presenting from a secondary GPU.
4 years ago
Fernando Sahmkow
ba82bb359b
Garbage Collection: enable as default, eliminate option.
5 years ago
Fernando Sahmkow
d540d284b5
VideoCore: Rework Garbage Collection.
5 years ago
ameerj
eb2624ed65
vp9_types: Minor refactor of VP9 info structs.
4 years ago
ameerj
3de38c9a70
vp9_types: Remove unused Vp9PictureInfo members
4 years ago
ameerj
4d535799eb
vulkan_device: Add a check for int8 support
Silences validation errors when shaders use int8 without specifying its support to the API
4 years ago
ameerj
e0397f00d0
vk_rasterizer: Only clear depth and stencil buffers when set in attachment aspect mask
Silences validation errors for clearing the depth/stencil buffers of framebuffer attachments that were not specified to have depth/stencil usage.
5 years ago
Fernando Sahmkow
ef2066b272
GPU_MemoryManger: Fix GetSubmappedRange.
4 years ago
Valeri
4fd655cb46
video_core: eliminate constant ternary
`via_header_index` is already checked above, so it would never be true in this branch
4 years ago
ameerj
b384129c63
h264: Lower max_num_ref_frames
GPU decoding seems to be more picky when it comes to the maximum number of reference frames.
5 years ago
ameerj
cd016d3cb5
configure_graphics: Add GPU nvdec decoding as an option
Some system configurations may see visual regressions or lower performance using GPU decoding compared to CPU decoding. This setting provides the option for users to specify their decoding preference.
Co-Authored-By: yzct12345 <87620833+yzct12345@users.noreply.github.com>
5 years ago
ameerj
a832aa699f
codec: Improve libav memory alloc and cleanup
5 years ago