749b4817ad
In addition to bringing us one backend closer to the scoped-only future, this improves the generated code in cases like: memoryBarrierBuffer(); memoryBarrierShared(); controlBarrier(); With scoped_barriers + nir_opt_combine_barriers, we now emit only one MEMBAR instruction (and a BARRIER) rather than two MEMBARs. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23191>