Commit 7319cabf authored by Jesse Natalie's avatar Jesse Natalie Committed by Marge Bot

d3d12: Unused variable warning indicated bug in bo_unmap

Fixes: 2ea15cd6 ("d3d12: introduce d3d12 gallium driver")
Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
Part-of: <mesa/mesa!8248>
parent bd97f401
......@@ -197,9 +197,11 @@ d3d12_bo_unmap(struct d3d12_bo *bo, D3D12_RANGE *range)
} else if (range->Begin >= range->End) {
offset_range.Begin = offset;
offset_range.End = offset + base_bo->res->GetDesc().Width;
range = &offset_range;
} else {
offset_range.Begin = range->Begin + offset;
offset_range.End = range->End + offset;
range = &offset_range;
}
base_bo->res->Unmap(0, range);
......
Markdown is supported
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