diff options
author | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2023-05-23 13:55:43 -0400 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-06-13 16:36:10 +0000 |
commit | 749b4817ad24e2b6e170eb942ffbd0398dcea467 (patch) | |
tree | a00d612a2ab28b7e2295ff2c936a34356eef3c3a /src/gallium/drivers/i915 | |
parent | d3aca1a75868cb3c184509bcdffddc2b9310a6ce (diff) |
ntt: Use scoped barriers
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>
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r-- | src/gallium/drivers/i915/i915_screen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c index 01f2cb8f909..fd9bece25dd 100644 --- a/src/gallium/drivers/i915/i915_screen.c +++ b/src/gallium/drivers/i915/i915_screen.c @@ -120,6 +120,7 @@ static const nir_shader_compiler_options i915_compiler_options = { .lower_uniforms_to_ubo = true, .lower_vector_cmp = true, .use_interpolated_input_intrinsics = true, + .use_scoped_barrier = true, .force_indirect_unrolling = nir_var_all, .force_indirect_unrolling_sampler = true, .max_unroll_iterations = 32, |