2018-12-10 16:12:07 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright © 2018 Intel Corporation
|
2024-07-02 11:57:39 -07:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-12-10 16:12:07 -08:00
|
|
|
*/
|
|
|
|
|
|
2024-12-06 14:25:29 -08:00
|
|
|
#pragma once
|
2018-12-10 16:12:07 -08:00
|
|
|
|
2024-07-02 11:57:39 -07:00
|
|
|
#include <stdio.h>
|
2018-12-10 16:12:07 -08:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
2024-07-02 11:57:39 -07:00
|
|
|
struct intel_device_info;
|
2018-12-10 16:12:07 -08:00
|
|
|
|
2024-07-02 11:57:39 -07:00
|
|
|
typedef struct {
|
|
|
|
|
void *bin;
|
2024-07-05 11:47:42 -07:00
|
|
|
int bin_size;
|
2024-07-02 11:57:39 -07:00
|
|
|
} brw_assemble_result;
|
2019-05-10 11:24:18 -07:00
|
|
|
|
2024-07-02 11:57:39 -07:00
|
|
|
typedef enum {
|
|
|
|
|
BRW_ASSEMBLE_COMPACT = 1 << 0,
|
2024-09-22 10:25:04 -07:00
|
|
|
BRW_ASSEMBLE_DUMP = 1 << 1,
|
2024-07-02 11:57:39 -07:00
|
|
|
} brw_assemble_flags;
|
2018-12-10 16:12:07 -08:00
|
|
|
|
2024-07-02 11:57:39 -07:00
|
|
|
brw_assemble_result brw_assemble(
|
|
|
|
|
void *mem_ctx, const struct intel_device_info *devinfo,
|
|
|
|
|
FILE *f, const char *filename, brw_assemble_flags flags);
|