Skip to content

Commit

Permalink
use the correct kgsl files
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Dec 8, 2023
1 parent a9d8fe6 commit fa94f6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/freedreno/drm/kgsl/kgsl_bo.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ kgsl_bo_cpu_prep(struct fd_bo *bo, struct fd_pipe *pipe, uint32_t op)
}

void
kgsl_bo_close_handle(struct fd_bo *bo)
kgsl_bo_close_handle(struct fd_device *dev, uint32_t handle)
{
struct kgsl_gpumem_free_id req = {
.id = bo->handle
.id = handle
};

kgsl_pipe_safe_ioctl(bo->dev->fd, IOCTL_KGSL_GPUMEM_FREE_ID, &req);
kgsl_pipe_safe_ioctl(dev->fd, IOCTL_KGSL_GPUMEM_FREE_ID, &req);
}

static void
Expand Down
4 changes: 2 additions & 2 deletions src/freedreno/drm/kgsl/kgsl_priv.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef KGSL_PRIV_H
#define KGSL_PRIV_H
#include "../freedreno_priv.h"
#include "freedreno_priv.h"

/* TODO the KGSL kernel interface should probably be moved */
/* into someplace common that both turnip and freedreno can use */
Expand Down Expand Up @@ -49,6 +49,6 @@ FD_DEFINE_CAST(fd_bo, kgsl_bo);
struct fd_bo *kgsl_bo_new(struct fd_device *dev, uint32_t size, uint32_t flags);
struct fd_bo *kgsl_bo_from_dmabuf(struct fd_device *dev, int fd);
struct fd_bo *kgsl_bo_from_handle(struct fd_device *dev, uint32_t size, uint32_t handle);
void kgsl_bo_close_handle(struct fd_bo *bo);
void kgsl_bo_close_handle(struct fd_device *dev, uint32_t handle);

#endif

0 comments on commit fa94f6b

Please sign in to comment.