i965: Mark all EGLimages as non-coherent.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 16 Aug 2017 18:15:24 +0000 (11:15 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 18 Aug 2017 23:28:13 +0000 (16:28 -0700)
commitbc56dfbf3f20504fce13e0f1730eea05ea0ea69a
treef951aee8e8f22ae73c3cb55035ee22fcaeaa14d7
parenta727e03360c9802731f29edcf58e811ac3429e69
i965: Mark all EGLimages as non-coherent.

EGLimages are shared with external users, and we don't know what they're
going to do with them.  They might scan them out.  They might access
them in a way that doesn't work with our explicit clflushing.

It's safest to simply mark them non-coherent.

Chris Wilson caught this problem and wrote a similar (though less
aggressive) patch to solve it; the miptree code has since undergone
a lot of refactoring so I had to rewrite it.

Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c