export SEARCH_PATH="src/intel src/gallium/drivers/iris src/mesa/drivers/dri/i965"
grep -E "GEN_DEBUG" -rIl $SEARCH_PATH | xargs sed -ie "s/GEN_DEBUG/INTEL_DEBUG/g"
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10241>
memcpy(output, intel_debug_identifier(), intel_debug_identifier_size());
output += intel_debug_identifier_size();
- for (uint32_t id = GEN_DEBUG_BLOCK_TYPE_DRIVER; id < GEN_DEBUG_BLOCK_TYPE_MAX; id++) {
+ for (uint32_t id = INTEL_DEBUG_BLOCK_TYPE_DRIVER; id < INTEL_DEBUG_BLOCK_TYPE_MAX; id++) {
switch (id) {
- case GEN_DEBUG_BLOCK_TYPE_DRIVER: {
+ case INTEL_DEBUG_BLOCK_TYPE_DRIVER: {
struct intel_debug_block_driver driver_desc = {
.base = {
.type = id,
break;
}
- case GEN_DEBUG_BLOCK_TYPE_FRAME: {
+ case INTEL_DEBUG_BLOCK_TYPE_FRAME: {
struct intel_debug_block_frame frame_desc = {
.base = {
- .type = GEN_DEBUG_BLOCK_TYPE_FRAME,
+ .type = INTEL_DEBUG_BLOCK_TYPE_FRAME,
.length = sizeof(frame_desc),
},
};
}
struct intel_debug_block_base end = {
- .type = GEN_DEBUG_BLOCK_TYPE_END,
+ .type = INTEL_DEBUG_BLOCK_TYPE_END,
.length = sizeof(end),
};
memcpy(output, &end, sizeof(end));
if (item->type == type)
return item;
- if (item->type == GEN_DEBUG_BLOCK_TYPE_END)
+ if (item->type == INTEL_DEBUG_BLOCK_TYPE_END)
return NULL;
buffer += item->length;
enum intel_debug_block_type {
/* End of the debug blocks */
- GEN_DEBUG_BLOCK_TYPE_END = 1,
+ INTEL_DEBUG_BLOCK_TYPE_END = 1,
/* Driver identifier (struct intel_debug_block_driver) */
- GEN_DEBUG_BLOCK_TYPE_DRIVER,
+ INTEL_DEBUG_BLOCK_TYPE_DRIVER,
/* Frame identifier (struct intel_debug_block_frame) */
- GEN_DEBUG_BLOCK_TYPE_FRAME,
+ INTEL_DEBUG_BLOCK_TYPE_FRAME,
/* Internal, never to be written out */
- GEN_DEBUG_BLOCK_TYPE_MAX,
+ INTEL_DEBUG_BLOCK_TYPE_MAX,
};
struct intel_debug_block_base {
const struct intel_debug_block_driver *driver_desc =
intel_debug_get_identifier_block(sections[s].data,
sections[s].dword_count * 4,
- GEN_DEBUG_BLOCK_TYPE_DRIVER);
+ INTEL_DEBUG_BLOCK_TYPE_DRIVER);
if (driver_desc) {
printf("Driver identifier: %s\n",
(const char *) driver_desc->description);
intel_debug_identifier_size()) == 0) {
const struct intel_debug_block_frame *frame_desc =
intel_debug_get_identifier_block(bo->map, bo->size,
- GEN_DEBUG_BLOCK_TYPE_FRAME);
+ INTEL_DEBUG_BLOCK_TYPE_FRAME);
current_frame_id = frame_desc ? frame_desc->frame_id : 0;
break;
device->debug_frame_desc =
intel_debug_get_identifier_block(device->workaround_bo->map,
device->workaround_bo->size,
- GEN_DEBUG_BLOCK_TYPE_FRAME);
+ INTEL_DEBUG_BLOCK_TYPE_FRAME);
result = anv_device_init_trivial_batch(device);
if (result != VK_SUCCESS)