Re: [Mesa-dev] [PATCH v4 10/10] anv: Do relocations in userspace before execbuf ioctl

2016-11-08 Thread Chris Wilson
On Mon, Nov 07, 2016 at 02:27:54PM -0800, Jason Ekstrand wrote: > From: Kristian Høgsberg Kristensen > > Since our surface state buffer is shared by all batches, the kernel does a > full stall and sync with the CPU between batches every time we call > execbuf2 because it refuses to do relocations

[Mesa-dev] [PATCH v4 10/10] anv: Do relocations in userspace before execbuf ioctl

2016-11-07 Thread Jason Ekstrand
From: Kristian Høgsberg Kristensen Since our surface state buffer is shared by all batches, the kernel does a full stall and sync with the CPU between batches every time we call execbuf2 because it refuses to do relocations on an active buffer. Doing them in userspace and passing the NO_RELOC fl