[Mesa-dev] [PATCH 24/25] i965/fs: Translate memory barrier NIR intrinsics.
Francisco Jerez
currojerez at riseup.net
Tue May 5 14:48:31 PDT 2015
---
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index 497b8f7..a774f98 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -1524,6 +1524,13 @@ fs_visitor::nir_emit_intrinsic(nir_intrinsic_instr *instr)
break;
}
+ case nir_intrinsic_memory_barrier: {
+ const fs_reg tmp = vgrf(16 / dispatch_width);
+ emit(SHADER_OPCODE_MEMORY_FENCE, tmp)
+ ->regs_written = 2;
+ break;
+ }
+
case nir_intrinsic_load_front_face:
emit(MOV(retype(dest, BRW_REGISTER_TYPE_D),
*emit_frontfacing_interpolation()));
--
2.3.5
More information about the mesa-dev
mailing list