mesa/src/intel/tools/intel_tools.h
Kenneth Graunke 73cbb35442
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
brw: Move into a new src/intel/compiler/brw subdirectory
This keeps the directory structure a bit more organized:
- brw specific code
- elk specific code
- common NIR passes that could be used in both places

It also means that you can now 'git grep' in the brw directory without
finding a bunch of elk code, or having to "grep thing b*".

Reviewed-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37755>
2025-10-09 07:01:47 +00:00

48 lines
1.2 KiB
C

/*
* Copyright © 2025 Intel Corporation
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <stdio.h>
#include "intel/decoder/intel_decoder.h"
#include "compiler/brw/brw_isa_info.h"
#ifdef INTEL_USE_ELK
#include "compiler/elk/elk_isa_info.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
struct intel_device_info;
struct intel_isa_info {
union {
struct brw_isa_info brw_isa;
#ifdef INTEL_USE_ELK
struct elk_isa_info elk_isa;
#endif
};
};
/* Helpers to abstract some BRW/ELK differences. */
void intel_disassemble(const struct intel_device_info *devinfo,
const void *assembly, int start, FILE *out);
void intel_decoder_init(struct intel_batch_decode_ctx *ctx,
struct intel_isa_info *isa_info,
const struct intel_device_info *devinfo,
FILE *fp, enum intel_batch_decode_flags flags,
const char *xml_path,
struct intel_batch_decode_bo (*get_bo)(void *, bool, uint64_t),
unsigned (*get_state_size)(void *, uint64_t, uint64_t),
void *user_data);
#ifdef __cplusplus
}
#endif