anv: track the current frame and write it into the driver identifier BO
[mesa.git] / src / intel / dev / gen_debug.c
index d8651390c476a106e449676b26308f95e8da480a..9a0ff4ba45e014989013267e1daa526dbc7f1c60 100644 (file)
@@ -176,6 +176,18 @@ intel_debug_write_identifiers(void *_output,
          break;
       }
 
+      case GEN_DEBUG_BLOCK_TYPE_FRAME: {
+         struct gen_debug_block_frame frame_desc = {
+            .base = {
+               .type = GEN_DEBUG_BLOCK_TYPE_FRAME,
+               .length = sizeof(frame_desc),
+            },
+         };
+         memcpy(output, &frame_desc, sizeof(frame_desc));
+         output += sizeof(frame_desc);
+         break;
+      }
+
       default:
          unreachable("Missing identifier write");
       }