summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_state_tracker.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-06-25 10:21:51 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:39 +0200
commit57a8921e01a90ff5993079dd638a6c48e5781756 (patch)
tree90c7c3b044c85f08dd5c2341c87414062be7db17 /src/video_core/renderer_vulkan/vk_state_tracker.cpp
parentspirv: Fix code emission when descriptor aliasing is unsupported (diff)
downloadyuzu-57a8921e01a90ff5993079dd638a6c48e5781756.tar
yuzu-57a8921e01a90ff5993079dd638a6c48e5781756.tar.gz
yuzu-57a8921e01a90ff5993079dd638a6c48e5781756.tar.bz2
yuzu-57a8921e01a90ff5993079dd638a6c48e5781756.tar.lz
yuzu-57a8921e01a90ff5993079dd638a6c48e5781756.tar.xz
yuzu-57a8921e01a90ff5993079dd638a6c48e5781756.tar.zst
yuzu-57a8921e01a90ff5993079dd638a6c48e5781756.zip
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_state_tracker.cpp')
-rw-r--r--src/video_core/renderer_vulkan/vk_state_tracker.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/vk_state_tracker.cpp b/src/video_core/renderer_vulkan/vk_state_tracker.cpp
index 0ebe0473f..e3b7dd61c 100644
--- a/src/video_core/renderer_vulkan/vk_state_tracker.cpp
+++ b/src/video_core/renderer_vulkan/vk_state_tracker.cpp
@@ -29,10 +29,10 @@ using Flags = Maxwell3D::DirtyState::Flags;
Flags MakeInvalidationFlags() {
static constexpr int INVALIDATION_FLAGS[]{
- Viewports, Scissors, DepthBias, BlendConstants,
- DepthBounds, StencilProperties, CullMode, DepthBoundsEnable,
- DepthTestEnable, DepthWriteEnable, DepthCompareOp, FrontFace,
- StencilOp, StencilTestEnable, VertexBuffers, VertexInput,
+ Viewports, Scissors, DepthBias, BlendConstants, DepthBounds,
+ StencilProperties, LineWidth, CullMode, DepthBoundsEnable, DepthTestEnable,
+ DepthWriteEnable, DepthCompareOp, FrontFace, StencilOp, StencilTestEnable,
+ VertexBuffers, VertexInput,
};
Flags flags{};
for (const int flag : INVALIDATION_FLAGS) {
@@ -86,6 +86,11 @@ void SetupDirtyStencilProperties(Tables& tables) {
table[OFF(stencil_back_func_mask)] = StencilProperties;
}
+void SetupDirtyLineWidth(Tables& tables) {
+ tables[0][OFF(line_width_smooth)] = LineWidth;
+ tables[0][OFF(line_width_aliased)] = LineWidth;
+}
+
void SetupDirtyCullMode(Tables& tables) {
auto& table = tables[0];
table[OFF(cull_face)] = CullMode;
@@ -180,6 +185,7 @@ StateTracker::StateTracker(Tegra::GPU& gpu)
SetupDirtyBlendConstants(tables);
SetupDirtyDepthBounds(tables);
SetupDirtyStencilProperties(tables);
+ SetupDirtyLineWidth(tables);
SetupDirtyCullMode(tables);
SetupDirtyDepthBoundsEnable(tables);
SetupDirtyDepthTestEnable(tables);