drm/msm: add timestamp param
authorRob Clark <robdclark@gmail.com>
Mon, 22 Feb 2016 11:26:21 +0000 (06:26 -0500)
committerRob Clark <robdclark@gmail.com>
Thu, 3 Mar 2016 16:55:32 +0000 (11:55 -0500)
commit6c77d1abe61797239533918d7a0336fc84f4aef1
tree0745cdcd1ccf1d9bd85445ba135bf6034d4f63fb
parent4313c744d99314f84a7a98771a17c0c1adfb4de6
drm/msm: add timestamp param

We need this for GL_TIMESTAMP queries.

Note: currently only supported on a4xx.. a3xx doesn't have this
always-on counter.  I think we could emulate it with the one CP
counter that is available, but for now it is of limited usefulness
on a3xx (since we can't seem to do time-elapsed queries in any sane
way with the existing firmware on a3xx, and if you are trying to do
profiling on a tiler you want time-elapsed).  We can add that later
if it becomes useful.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/a4xx_gpu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.h
include/uapi/drm/msm_drm.h