Ringbuffer init fix
This commit is contained in:
parent
9d721df061
commit
8c4ca35a35
|
@ -229,6 +229,7 @@ bool CommandProcessor::SetupContext() { return true; }
|
||||||
void CommandProcessor::ShutdownContext() { context_.reset(); }
|
void CommandProcessor::ShutdownContext() { context_.reset(); }
|
||||||
|
|
||||||
void CommandProcessor::InitializeRingBuffer(uint32_t ptr, uint32_t log2_size) {
|
void CommandProcessor::InitializeRingBuffer(uint32_t ptr, uint32_t log2_size) {
|
||||||
|
read_ptr_index_ = 0;
|
||||||
primary_buffer_ptr_ = ptr;
|
primary_buffer_ptr_ = ptr;
|
||||||
primary_buffer_size_ = uint32_t(std::pow(2u, log2_size));
|
primary_buffer_size_ = uint32_t(std::pow(2u, log2_size));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1074,6 +1074,7 @@ PipelineCache::UpdateStatus PipelineCache::UpdateInputAssemblyState(
|
||||||
}
|
}
|
||||||
// TODO(benvanik): no way to specify in Vulkan?
|
// TODO(benvanik): no way to specify in Vulkan?
|
||||||
assert_true(regs.multi_prim_ib_reset_index == 0xFFFF ||
|
assert_true(regs.multi_prim_ib_reset_index == 0xFFFF ||
|
||||||
|
regs.multi_prim_ib_reset_index == 0xFFFFFF ||
|
||||||
regs.multi_prim_ib_reset_index == 0xFFFFFFFF);
|
regs.multi_prim_ib_reset_index == 0xFFFFFFFF);
|
||||||
// glPrimitiveRestartIndex(regs.multi_prim_ib_reset_index);
|
// glPrimitiveRestartIndex(regs.multi_prim_ib_reset_index);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue