[Mesa-dev] [PATCH 4/6] gallium: add way for drivers to create fences without flushing

Marek Olšák maraeo at gmail.com
Tue Apr 5 13:04:11 UTC 2016


On Mon, Apr 4, 2016 at 2:43 PM, Rob Clark <robdclark at gmail.com> wrote:
> Hmm, what are the requirements of eglClientWaitSyncKHR() about having
> current context bound?  Not being thread-safe (ie. being associated w/
> current ctx) is pretty important to allow apps that create fences at
> in-opportune times to not force a mid-frame flush for tilers.. :-(

There are 2 kinds of fences already:
- owned by pipe_screen: pipe_fence_handle
- owned by pipe_context: PIPE_QUERY_GPU_FINISHED

I think the latter is what you want.

Marek


More information about the mesa-dev mailing list