yuzu/src/video_core/renderer_vulkan
ReinUsesLisp bb1ed66d99 maxwell_3d: Fix depth clamping register
Using deko3d as reference:
4e47ba0013/source/maxwell/gpu_3d_state.cpp (L42)

We were using bits 3 and 4 to determine depth clamping, but these are
the same both enabled and disabled:

state->depthClampEnable ? 0x101A : 0x181D

The same happens on Nvidia's OpenGL driver, where they do something like
this (default capabilities, GL 4.5 compatibility):

(state & DEPTH_CLAMP) != 0 ? 0x201a : 0x281c

There's always a difference between the first bits in this register, but
bit 11 is consistently disabled on both deko3d/NVN and OpenGL. This
commit changes yuzu's behaviour to use bit 11 to determine depth
clamping.

- Fixes depth issues on Super Mario Odyssey's intro.
2020-04-27 20:50:14 -03:00
..
shaders vk_compute_pass: Implement indexed quads 2020-04-16 21:12:32 -03:00
fixed_pipeline_state.cpp maxwell_3d: Fix depth clamping register 2020-04-27 20:50:14 -03:00
fixed_pipeline_state.h maxwell_3d: Fix depth clamping register 2020-04-27 20:50:14 -03:00
maxwell_to_vk.cpp maxwell_to_vk: Add uint16 vertex formats 2020-04-15 04:06:30 -03:00
maxwell_to_vk.h renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
nsight_aftermath_tracker.cpp renderer_vulkan: Integrate Nvidia Nsight Aftermath on Windows 2020-04-14 00:39:21 -03:00
nsight_aftermath_tracker.h renderer_vulkan: Integrate Nvidia Nsight Aftermath on Windows 2020-04-14 00:39:21 -03:00
renderer_vulkan.cpp renderer_vulkan: assume X11 if not Windows/macOS after bf1d66b7c0 2020-04-19 00:32:23 +00:00
renderer_vulkan.h renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_blit_screen.cpp vk_blit_screen: Initialize all members in VkPipelineViewportStateCreateInfo 2020-04-15 03:30:08 -03:00
vk_blit_screen.h renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_buffer_cache.cpp buffer_cache: Return handles instead of pointer to handles 2020-04-16 02:33:34 -03:00
vk_buffer_cache.h buffer_cache: Return handles instead of pointer to handles 2020-04-16 02:33:34 -03:00
vk_compute_pass.cpp vk_compute_pass: Implement indexed quads 2020-04-16 21:12:32 -03:00
vk_compute_pass.h vk_compute_pass: Implement indexed quads 2020-04-16 21:12:32 -03:00
vk_compute_pipeline.cpp renderer_vulkan: Integrate Nvidia Nsight Aftermath on Windows 2020-04-14 00:39:21 -03:00
vk_compute_pipeline.h renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_descriptor_pool.cpp renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_descriptor_pool.h renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_device.cpp renderer_vulkan: Integrate Nvidia Nsight Aftermath on Windows 2020-04-14 00:39:21 -03:00
vk_device.h Merge pull request #3756 from ReinUsesLisp/integrated-devices 2020-04-27 16:04:22 -04:00
vk_fence_manager.cpp Address Feedback. 2020-04-22 11:36:24 -04:00
vk_fence_manager.h Address Feedback. 2020-04-22 11:36:24 -04:00
vk_graphics_pipeline.cpp maxwell_3d: Fix depth clamping register 2020-04-27 20:50:14 -03:00
vk_graphics_pipeline.h renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_image.cpp renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_image.h renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_memory_manager.cpp vk_memory_manager: Remove unified memory model flag 2020-04-21 22:06:38 -03:00
vk_memory_manager.h vk_memory_manager: Remove unified memory model flag 2020-04-21 22:06:38 -03:00
vk_pipeline_cache.cpp vk_pipeline_cache: Unify pipeline cache keys into a single operation 2020-04-23 17:34:16 -03:00
vk_pipeline_cache.h vk_pipeline_cache: Unify pipeline cache keys into a single operation 2020-04-23 17:34:16 -03:00
vk_query_cache.cpp renderer_vulkan: Catch device losses in more places 2020-04-13 17:33:59 -03:00
vk_query_cache.h renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_rasterizer.cpp Merge pull request #3766 from ReinUsesLisp/renderpass-cache-key 2020-04-27 16:05:14 -04:00
vk_rasterizer.h Merge pull request #3753 from ReinUsesLisp/ac-vulkan 2020-04-26 01:55:43 -03:00
vk_renderpass_cache.cpp vk_renderpass_cache: Pack renderpass cache key to 12 bytes 2020-04-23 17:34:16 -03:00
vk_renderpass_cache.h vk_rasterizer: Pack texceptions and color formats on invalid formats 2020-04-24 22:21:29 -03:00
vk_resource_manager.cpp renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_resource_manager.h renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_sampler_cache.cpp renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_sampler_cache.h renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_scheduler.cpp renderer_vulkan: Catch device losses in more places 2020-04-13 17:33:59 -03:00
vk_scheduler.h renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_shader_decompiler.cpp Merge pull request #3612 from ReinUsesLisp/red 2020-04-15 15:03:49 -04:00
vk_shader_decompiler.h vk_shader_decompiler: Use registry for specialization 2020-03-13 18:33:05 -03:00
vk_shader_util.cpp renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_shader_util.h renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_staging_buffer_pool.cpp Merge pull request #3756 from ReinUsesLisp/integrated-devices 2020-04-27 16:04:22 -04:00
vk_staging_buffer_pool.h vk_memory_manager: Remove unified memory model flag 2020-04-21 22:06:38 -03:00
vk_state_tracker.cpp DirtyFlags: relax need to set render_targets as dirty 2020-03-14 11:47:33 -04:00
vk_state_tracker.h state_tracker: Remove type traits with named structures 2020-02-28 17:56:43 -03:00
vk_stream_buffer.cpp vk_stream_buffer: Fix out of memory on boot on recent Nvidia drivers 2020-04-17 18:12:48 -03:00
vk_stream_buffer.h vk_stream_buffer: Fix out of memory on boot on recent Nvidia drivers 2020-04-17 18:12:48 -03:00
vk_swapchain.cpp renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_swapchain.h renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_texture_cache.cpp renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_texture_cache.h renderer_vulkan: Drop Vulkan-Hpp 2020-04-10 22:49:02 -03:00
vk_update_descriptor.cpp buffer_cache: Return handles instead of pointer to handles 2020-04-16 02:33:34 -03:00
vk_update_descriptor.h buffer_cache: Return handles instead of pointer to handles 2020-04-16 02:33:34 -03:00
wrapper.cpp Merge pull request #3721 from ReinUsesLisp/sort-devices 2020-04-25 03:27:40 -04:00
wrapper.h Merge pull request #3677 from FernandoS27/better-sync 2020-04-22 22:09:38 -04:00