mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
radv/winsys: Remove extra sizeof multiply.
The pointer is already uint64_t*, so the sizeof was too much ... Fixes:eeff7e1154"radv: Add userspace fence buffer per context." Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5181> (cherry picked from commit906435fb0e)
This commit is contained in:
parent
f6412c24b3
commit
167d4a5993
2 changed files with 2 additions and 2 deletions
|
|
@ -886,7 +886,7 @@
|
|||
"description": "radv/winsys: Remove extra sizeof multiply.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "eeff7e11544f333d211c8f8ad3679db814050cfa"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ static void radv_amdgpu_request_to_fence(struct radv_amdgpu_ctx *ctx,
|
|||
fence->fence.ip_instance = req->ip_instance;
|
||||
fence->fence.ring = req->ring;
|
||||
fence->fence.fence = req->seq_no;
|
||||
fence->user_ptr = (volatile uint64_t*)(ctx->fence_map + (req->ip_type * MAX_RINGS_PER_TYPE + req->ring) * sizeof(uint64_t));
|
||||
fence->user_ptr = (volatile uint64_t*)(ctx->fence_map + req->ip_type * MAX_RINGS_PER_TYPE + req->ring);
|
||||
}
|
||||
|
||||
static struct radeon_winsys_fence *radv_amdgpu_create_fence()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue