Module: Mesa
Branch: main
Commit: 21cf9323f026b4d5b0e6f5967ee5478052cf0a5a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=21cf9323f026b4d5b0e6f5967ee5478052cf0a5a

Author: Caio Oliveira <caio.olive...@intel.com>
Date:   Fri Nov  3 21:50:18 2023 -0700

intel/compiler: Add a few more helpers to fs_builder

Reviewed-by: Ian Romanick <ian.d.roman...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25216>

---

 src/intel/compiler/brw_fs_builder.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/intel/compiler/brw_fs_builder.h 
b/src/intel/compiler/brw_fs_builder.h
index 793feb2f8c1..ae2874c6ffd 100644
--- a/src/intel/compiler/brw_fs_builder.h
+++ b/src/intel/compiler/brw_fs_builder.h
@@ -833,6 +833,13 @@ namespace brw {
 
       backend_shader *shader;
 
+      fs_inst *BREAK()    { return emit(BRW_OPCODE_BREAK); }
+      fs_inst *DO()       { return emit(BRW_OPCODE_DO); }
+      fs_inst *ENDIF()    { return emit(BRW_OPCODE_ENDIF); }
+      fs_inst *NOP()      { return emit(BRW_OPCODE_NOP); }
+      fs_inst *WHILE()    { return emit(BRW_OPCODE_WHILE); }
+      fs_inst *CONTINUE() { return emit(BRW_OPCODE_CONTINUE); }
+
    private:
       /**
        * Workaround for negation of UD registers.  See comment in

Reply via email to