anv: track the current frame and write it into the driver identifier BO
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2201>
This commit is contained in:
committed by
Marge Bot
parent
42cb068d9f
commit
9f0db069d3
@@ -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");
|
||||
}
|
||||
|
||||
@@ -134,6 +134,9 @@ enum gen_debug_block_type {
|
||||
/* Driver identifier (struct gen_debug_block_driver) */
|
||||
GEN_DEBUG_BLOCK_TYPE_DRIVER,
|
||||
|
||||
/* Frame identifier (struct gen_debug_block_frame) */
|
||||
GEN_DEBUG_BLOCK_TYPE_FRAME,
|
||||
|
||||
/* Internal, never to be written out */
|
||||
GEN_DEBUG_BLOCK_TYPE_MAX,
|
||||
};
|
||||
@@ -148,6 +151,11 @@ struct gen_debug_block_driver {
|
||||
uint8_t description[];
|
||||
};
|
||||
|
||||
struct gen_debug_block_frame {
|
||||
struct gen_debug_block_base base;
|
||||
uint64_t frame_id;
|
||||
};
|
||||
|
||||
extern void *intel_debug_identifier(void);
|
||||
extern uint32_t intel_debug_identifier_size(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user