Re: [Mesa-dev] [PATCH] nouveau: take extra push space into account for pushbuf_space calls

2017-01-11 Thread Ilia Mirkin
On Wed, Jan 11, 2017 at 10:47 AM, Emil Velikov wrote: > On 11 January 2017 at 03:10, Ilia Mirkin wrote: >> Ever since a long time ago when I messed around with fences, I ensure >> that after a PUSH_SPACE call there is enough space to write a fence

Re: [Mesa-dev] [PATCH] nouveau: take extra push space into account for pushbuf_space calls

2017-01-11 Thread Emil Velikov
On 11 January 2017 at 03:10, Ilia Mirkin wrote: > Ever since a long time ago when I messed around with fences, I ensure > that after a PUSH_SPACE call there is enough space to write a fence out > into the pushbuf. > > However the PUSH_SPACE macro is not all-knowing, and so

[Mesa-dev] [PATCH] nouveau: take extra push space into account for pushbuf_space calls

2017-01-10 Thread Ilia Mirkin
Ever since a long time ago when I messed around with fences, I ensure that after a PUSH_SPACE call there is enough space to write a fence out into the pushbuf. However the PUSH_SPACE macro is not all-knowing, and so sometimes we have to invoke nouveau_pushbuf_space manually with the relocs/pushes