Skip to content
Snippets Groups Projects
Unverified Commit ed2d77dd authored by liamwhite's avatar liamwhite Committed by GitHub
Browse files

Merge pull request #11893 from liamwhite/swizzle

renderer_vulkan: fix viewport swizzle dirty state tracking
parents 911d2216 21c631b3
No related branches found
No related tags found
No related merge requests found
...@@ -190,7 +190,7 @@ void SetupDirtySpecialOps(Tables& tables) { ...@@ -190,7 +190,7 @@ void SetupDirtySpecialOps(Tables& tables) {
void SetupDirtyViewportSwizzles(Tables& tables) { void SetupDirtyViewportSwizzles(Tables& tables) {
static constexpr size_t swizzle_offset = 6; static constexpr size_t swizzle_offset = 6;
for (size_t index = 0; index < Regs::NumViewports; ++index) { for (size_t index = 0; index < Regs::NumViewports; ++index) {
tables[0][OFF(viewport_transform) + index * NUM(viewport_transform[0]) + swizzle_offset] = tables[1][OFF(viewport_transform) + index * NUM(viewport_transform[0]) + swizzle_offset] =
ViewportSwizzles; ViewportSwizzles;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment