freedreno: add support for FD_TIMESTAMP
Signed-off-by: Rob Clark <robclark@freedesktop.org>main
parent
67e7103cdb
commit
49041c3613
|
@ -51,6 +51,7 @@ enum fd_param_id {
|
|||
FD_GPU_ID,
|
||||
FD_CHIP_ID,
|
||||
FD_MAX_FREQ,
|
||||
FD_TIMESTAMP,
|
||||
};
|
||||
|
||||
/* bo flags: */
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue