]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c4a56535613e8cc5a9551e43430cb881e94030a
tree0745cdcd1ccf1d9bd85445ba135bf6034d4f63fb
parent5c7013712f326cd7a4a3a5c9e485a687488fed8c
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