Skip to content

Commit

Permalink
set max freq explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Nov 23, 2023
1 parent 156a7e6 commit b7aef71
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/gallium/drivers/freedreno/freedreno_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,18 +1047,8 @@ fd_screen_create(int fd,
if (fd_device_version(dev) >= FD_VERSION_GMEM_BASE) {
kgsl_pipe_get_param(screen->pipe, FD_GMEM_BASE, &screen->gmem_base);
}

if (kgsl_pipe_get_param(screen->pipe, FD_MAX_FREQ, &val)) {
printf("could not get gpu freq\n");
/* this limits what performance related queries are
* supported but is not fatal
*/
screen->max_freq = 0;
} else {
screen->max_freq = val;
if (kgsl_pipe_get_param(screen->pipe, FD_TIMESTAMP, &val) == 0)
screen->has_timestamp = true;
}
printf("setting max freq")
screen->max_freq = 0;
printf("piping dev id");
screen->dev_id = fd_pipe_dev_id(screen->pipe);
printf("dev id pipe done");
Expand Down

0 comments on commit b7aef71

Please sign in to comment.