summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEduardo Lima Mitev <[email protected]>2015-06-16 20:25:55 +0200
committerJason Ekstrand <[email protected]>2015-08-03 09:40:47 -0700
commitafe085a0ca01f659c69456018e5f5076c9dde47d (patch)
tree5fe20ee077041a3e89a559560231ed7fb6dc8a88 /src/mesa/drivers
parent5c0436dbf87fef76ba67456f215d9285c38f1816 (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]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_nir.cpp6
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