mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-10 02:50:28 +01:00
nir: Add barrier intrinsic function
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Connor Abbott <cwabbott0@gmail.com> Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
parent
86855365b4
commit
2867f2e8cd
2 changed files with 4 additions and 1 deletions
|
|
@ -1894,5 +1894,7 @@ nir_visitor::visit(ir_dereference_array *ir)
|
|||
void
|
||||
nir_visitor::visit(ir_barrier *ir)
|
||||
{
|
||||
unreachable("Not implemented!");
|
||||
nir_intrinsic_instr *instr =
|
||||
nir_intrinsic_instr_create(this->shader, nir_intrinsic_barrier);
|
||||
nir_instr_insert_after_cf_list(this->cf_node_list, &instr->instr);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ INTRINSIC(interp_var_at_offset, 1, ARR(2), true, 0, 1, 0,
|
|||
*/
|
||||
#define BARRIER(name) INTRINSIC(name, 0, ARR(), false, 0, 0, 0, 0)
|
||||
|
||||
BARRIER(barrier)
|
||||
BARRIER(discard)
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue