i965/nir: Support barrier intrinsic function
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 13 Mar 2015 19:03:52 +0000 (12:03 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 12 Jun 2015 22:12:40 +0000 (15:12 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp

index 3c24a87c10c1a02d054d15c4eb6f0987fe7fd784..59081eab8770345ee8f6684e3698a321fab6b6f3 100644 (file)
@@ -1575,6 +1575,10 @@ fs_visitor::nir_emit_intrinsic(const fs_builder &bld, nir_intrinsic_instr *instr
       break;
    }
 
+   case nir_intrinsic_barrier:
+      emit_barrier();
+      break;
+
    default:
       unreachable("unknown intrinsic");
    }