Re: [Mesa-dev] [PATCH] st/mesa: fix dirty flags for atoms that can depend on mutable objects

2016-06-03 Thread Marek Olšák
On Fri, Jun 3, 2016 at 2:31 AM, Ilia Mirkin wrote: > Both textures and buffers can have their underlying resources > reallocated with a glTexImage*() or glBufferData(). Atoms that reference > these need to be notified that a change to the underlying resource has > occurred in order to be recreated

Re: [Mesa-dev] [PATCH] st/mesa: fix dirty flags for atoms that can depend on mutable objects

2016-06-02 Thread Ilia Mirkin
ChrisF suggested I do the buffer stuff like intel does - based on usage hints. This prevents a lot of unnecessary revalidation. I tend to agree - I'll resend this with updates. (Of course there's a missing USAGE flag for vertex arrays, but I'll fix that.) On Thu, Jun 2, 2016 at 8:31 PM, Ilia Mirki

[Mesa-dev] [PATCH] st/mesa: fix dirty flags for atoms that can depend on mutable objects

2016-06-02 Thread Ilia Mirkin
Both textures and buffers can have their underlying resources reallocated with a glTexImage*() or glBufferData(). Atoms that reference these need to be notified that a change to the underlying resource has occurred in order to be recreated. This means textures (which can reference a buffer object),