freedreno: add support for FD_TIMESTAMP

Signed-off-by: Rob Clark <robclark@freedesktop.org>
main
Rob Clark 2016-02-23 11:47:33 -05:00
parent 67e7103cdb
commit 49041c3613
3 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,7 @@ enum fd_param_id {
FD_GPU_ID,
FD_CHIP_ID,
FD_MAX_FREQ,
FD_TIMESTAMP,
};
/* bo flags: */

View File

@ -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:

View File

@ -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;