radv/winsys: remove the radv_amdgpu_winsys_bo::ws indirection

This saves a 64-bit pointer from radv_amdgpu_winsys_bo and it's
also common to pass a winsys pointer as the first parameter.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8859>
This commit is contained in:
Samuel Pitoiset
2021-02-03 14:11:49 +01:00
parent eb625b7a5f
commit e02b1577d0
15 changed files with 125 additions and 112 deletions

View File

@@ -873,7 +873,7 @@ radv_trap_handler_finish(struct radv_device *device)
radv_shader_variant_destroy(device, device->trap_handler_shader);
if (unlikely(device->tma_bo))
ws->buffer_destroy(device->tma_bo);
ws->buffer_destroy(ws, device->tma_bo);
}
static struct radv_shader_variant *