[Freedreno] [PATCH 5/9] drm/msm: Shadow current pointer in the ring until command is complete

2017-10-20 Thread Jordan Crouse
Add a shadow pointer to track the current command being written into the ring. Don't commit it as 'cur' until the command is submitted. Because 'cur' is used to construct the software copy of the wptr this ensures that somebody peeking in on the ring doesn't assume that a command is inflight while

[Freedreno] [PATCH 5/9] drm/msm: Shadow current pointer in the ring until command is complete

2017-10-11 Thread Jordan Crouse
Add a shadow pointer to track the current command being written into the ring. Don't commit it as 'cur' until the command is submitted. Because 'cur' is used to construct the software copy of the wptr this ensures that somebody peeking in on the ring doesn't assume that a command is inflight while