Commit be5f56f6 authored by Daniel Krebs's avatar Daniel Krebs
Browse files

rtds2gpu: fix bug in offset calculation

parent 90cb9374
......@@ -48,7 +48,7 @@ struct Rtds2GpuMemoryBuffer {
// HACK: This might break horribly, let's just hope C++17 will be there soon
static constexpr size_t dataOffset = 0;
static constexpr size_t doorbellOffset = N * sizeof(Rtds2GpuMemoryBuffer::data);
static constexpr size_t doorbellOffset = sizeof(Rtds2GpuMemoryBuffer::data);
T data[N];
reg_doorbell_t doorbell;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment