summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/engines/shader_bytecode.h1
-rw-r--r--src/video_core/renderer_vulkan/fixed_pipeline_state.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 7231597d4..73d98fe8c 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -655,6 +655,7 @@ union Instruction {
655 } 655 }
656 656
657 constexpr Instruction(u64 value) : value{value} {} 657 constexpr Instruction(u64 value) : value{value} {}
658 constexpr Instruction(const Instruction& instr) : value(instr.value) {}
658 659
659 BitField<0, 8, Register> gpr0; 660 BitField<0, 8, Register> gpr0;
660 BitField<8, 8, Register> gpr8; 661 BitField<8, 8, Register> gpr8;
diff --git a/src/video_core/renderer_vulkan/fixed_pipeline_state.h b/src/video_core/renderer_vulkan/fixed_pipeline_state.h
index 9fe6bdbf9..9a950f4de 100644
--- a/src/video_core/renderer_vulkan/fixed_pipeline_state.h
+++ b/src/video_core/renderer_vulkan/fixed_pipeline_state.h
@@ -129,7 +129,7 @@ struct alignas(32) FixedPipelineState {
129 auto& binding = bindings[index]; 129 auto& binding = bindings[index];
130 binding.raw = 0; 130 binding.raw = 0;
131 binding.enabled.Assign(enabled ? 1 : 0); 131 binding.enabled.Assign(enabled ? 1 : 0);
132 binding.stride.Assign(stride); 132 binding.stride.Assign(static_cast<u16>(stride));
133 binding_divisors[index] = divisor; 133 binding_divisors[index] = divisor;
134 } 134 }
135 135