radeonsi: add s_sethalt to shaders for debugging
[mesa.git] / src / amd / common / ac_rtld.h
index 01c29b50817ed0ed9b554bec20b0b93af9c13ebc..b13270b181d43c61afa67bb2137b9db29bd8ca22 100644 (file)
@@ -42,8 +42,16 @@ struct ac_rtld_symbol {
        unsigned part_idx; /* shader part in which this symbol appears */
 };
 
+struct ac_rtld_options {
+       /* Loader will insert an s_sethalt 1 instruction as the
+        * first instruction. */
+       bool halt_at_entry:1;
+};
+
 /* Lightweight wrapper around underlying ELF objects. */
 struct ac_rtld_binary {
+       struct ac_rtld_options options;
+
        /* Required buffer sizes, currently read/executable only. */
        uint64_t rx_size;
 
@@ -75,6 +83,7 @@ typedef bool (*ac_rtld_get_external_symbol_cb)(
  */
 struct ac_rtld_open_info {
        const struct radeon_info *info;
+       struct ac_rtld_options options;
 
        unsigned num_parts;
        const char * const *elf_ptrs; /* in-memory ELF objects of each part */