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:
@@ -638,7 +638,7 @@ cik_create_gfx_config(struct radv_device *device)
|
||||
|
||||
void *map = device->ws->buffer_map(device->gfx_init);
|
||||
if (!map) {
|
||||
device->ws->buffer_destroy(device->gfx_init);
|
||||
device->ws->buffer_destroy(device->ws, device->gfx_init);
|
||||
device->gfx_init = NULL;
|
||||
goto fail;
|
||||
}
|
||||
|
Reference in New Issue
Block a user