diff options
author | Eduardo Lima Mitev <[email protected]> | 2015-06-16 20:25:55 +0200 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-08-03 09:40:47 -0700 |
commit | afe085a0ca01f659c69456018e5f5076c9dde47d (patch) | |
tree | 5fe20ee077041a3e89a559560231ed7fb6dc8a88 | |
parent | 5c0436dbf87fef76ba67456f215d9285c38f1816 (diff) |
i965/nir/vec4: Implement loop statements (nir_cf_node_loop)
This is taken as-is from fs_nir.
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp index 7ce571a2261..763c69a9521 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp @@ -302,7 +302,11 @@ vec4_visitor::nir_emit_if(nir_if *if_stmt) void vec4_visitor::nir_emit_loop(nir_loop *loop) { - /* @TODO: Not yet implemented */ + emit(BRW_OPCODE_DO); + + nir_emit_cf_list(&loop->body); + + emit(BRW_OPCODE_WHILE); } void |