freedreno: add simpler ring-reloc

Graphics / Mesa 3D Graphics Library / libdrm - Rob Clark [freedesktop.org] - 20 July 2016 18:42 UTC

Provide a way to insert a reference (ie. OUT_IB()) to a target ring, executing all the cmds in the target ring from the start.

Sometimes the ringmarker stuff is just overkill. And it will won't really work properly once we support multiple physical cmdstream buffers per fd_ringbuffer. So in the future the old ringmarker related APIs will be deprecated in a few releases.

2ca73c6 freedreno: add simpler ring-reloc
freedreno/freedreno_drmif.h | 9 +++++++++
freedreno/freedreno_ringbuffer.c | 12 +++++++++++-
freedreno/freedreno_ringbuffer.h | 14 ++++++++------
3 files changed, 28 insertions(+), 7 deletions(-)

Upstream: cgit.freedesktop.org


  • Share