mesa: Add blend barrier entry point and driver hook.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 6 Jul 2016 06:21:21 +0000 (23:21 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 24 Aug 2016 20:28:30 +0000 (13:28 -0700)
commit303fb5881c36b8c1270f3c8071705eea336c341b
tree92bf4b1472f95718ffb40b600b483a788484febb
parent6a976bbf84c9c8790fa61bbeb5eb24a2e646c76c
mesa: Add blend barrier entry point and driver hook.

Both MESA_shader_framebuffer_fetch_non_coherent and the non-coherent
variant of KHR_blend_equation_advanced will use this driver hook to
request coherency between framebuffer reads and writes.  This
intentionally doesn't hook up glBlendBarrierMESA to the dispatch layer
since the extension isn't exposed to applications yet, see [1]
for more details.

[1] https://lists.freedesktop.org/archives/mesa-dev/2016-July/124028.html

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/barrier.c
src/mesa/main/barrier.h
src/mesa/main/dd.h