gpu: pvr: pdumpfs: add frame struct and initial frame handling code
authorLuc Verhaegen <libv@codethink.co.uk>
Fri, 11 Mar 2011 14:02:48 +0000 (15:02 +0100)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:43:04 +0000 (21:43 +0300)
commitcd8d29c668c613f46a7dc7a95b6854a618d9fe45
tree0fd5297babd249ebe2ebc825b5e6a2daa1384710
parent4713ddfef267393154536ce3f4edb8ae3c5d6d72
gpu: pvr: pdumpfs: add frame struct and initial frame handling code

Now we are tracking frames correctly, but we are not accepting any data
yet. frame_current is the last of frame_stream, and the frame that we
would be writing to.

New frames are created when userspace flags the start of a new frame
with PDumpSetFrameKM. This is also where we deliberately change the
pdump content by adding two comments. One for flagging the end of the
previous frame, one for the start of the new frame.

We keep at most frame_count_max frames around, older frames will be
removed by frame_cull() which gets called when a new frame gets
created.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
Signed-off-by: Imre Deak <imre.deak@nokia.com>
pvr/bridged_pvr_bridge.c
pvr/pvr_pdump.c
pvr/pvr_pdump.h
pvr/pvr_pdumpfs.c
pvr/pvr_pdumpfs.h