diff --git a/freedreno/freedreno_drmif.h b/freedreno/freedreno_drmif.h index 950fd63b..02dcfd25 100644 --- a/freedreno/freedreno_drmif.h +++ b/freedreno/freedreno_drmif.h @@ -51,6 +51,7 @@ enum fd_param_id { FD_GPU_ID, FD_CHIP_ID, FD_MAX_FREQ, + FD_TIMESTAMP, }; /* bo flags: */ diff --git a/freedreno/kgsl/kgsl_pipe.c b/freedreno/kgsl/kgsl_pipe.c index 5569da0a..3546718d 100644 --- a/freedreno/kgsl/kgsl_pipe.c +++ b/freedreno/kgsl/kgsl_pipe.c @@ -51,6 +51,7 @@ static int kgsl_pipe_get_param(struct fd_pipe *pipe, *value = kgsl_pipe->devinfo.chip_id; return 0; case FD_MAX_FREQ: + case FD_TIMESTAMP: /* unsupported on kgsl */ return -1; default: diff --git a/freedreno/msm/msm_pipe.c b/freedreno/msm/msm_pipe.c index f539b9ae..f872e245 100644 --- a/freedreno/msm/msm_pipe.c +++ b/freedreno/msm/msm_pipe.c @@ -69,6 +69,8 @@ static int msm_pipe_get_param(struct fd_pipe *pipe, return 0; case FD_MAX_FREQ: return query_param(pipe, MSM_PARAM_MAX_FREQ, value); + case FD_TIMESTAMP: + return query_param(pipe, MSM_PARAM_TIMESTAMP, value); default: ERROR_MSG("invalid param id: %d", param); return -1;