summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <robclark@freedesktop.org>2016-02-23 11:47:33 -0500
committerRob Clark <robclark@freedesktop.org>2016-03-13 12:27:30 -0400
commit49041c3613dde0b11bf6096b3da498915303abed (patch)
tree7e9e0ee1f1e299b29e5e3b7a55125e2d3fb43979
parent67e7103cdb498d2acfb880ea01ad151d4039feda (diff)
freedreno: add support for FD_TIMESTAMP
Signed-off-by: Rob Clark <robclark@freedesktop.org>
-rw-r--r--freedreno/freedreno_drmif.h1
-rw-r--r--freedreno/kgsl/kgsl_pipe.c1
-rw-r--r--freedreno/msm/msm_pipe.c2
3 files changed, 4 insertions, 0 deletions
diff --git a/freedreno/freedreno_drmif.h b/freedreno/freedreno_drmif.h
index 950fd63be592..02dcfd256d5d 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 5569da0a8724..3546718db2e4 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 f539b9aecd8b..f872e2459271 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;