Skip to content

Commit

Permalink
declare functions inline
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Nov 23, 2023
1 parent b7aef71 commit 7714634
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gallium/drivers/freedreno/freedreno_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,11 @@ fd_screen_create(int fd,
const struct pipe_screen_config *config,
struct renderonly *ro)
{
static int
kgsl_pipe_get_param(struct fd_pipe *pipe, enum fd_param_id param,
uint64_t *value);
struct fd_pipe *kgsl_pipe_new(struct fd_device *dev, enum fd_pipe_id id,
uint32_t prio);
struct fd_device *dev = fd_device_new_dup(fd);
if (!dev)
return NULL;
Expand All @@ -1032,7 +1037,7 @@ fd_screen_create(int fd,
screen->ro = ro;

// maybe this should be in context?
screen->pipe = fd_pipe_new(screen->dev, FD_PIPE_3D);
screen->pipe = kgsl_pipe_new(screen->dev, FD_PIPE_3D);
if (!screen->pipe) {
printf("could not create 3d pipe\n");
//goto fail;
Expand Down

0 comments on commit 7714634

Please sign in to comment.