mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 20:10:14 +01:00
Acked-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32534>
26 lines
516 B
C
26 lines
516 B
C
/*
|
|
* Copyright © 2018 Intel Corporation
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdio.h>
|
|
#include <stdbool.h>
|
|
|
|
struct intel_device_info;
|
|
|
|
typedef struct {
|
|
void *bin;
|
|
int bin_size;
|
|
int inst_count;
|
|
} brw_assemble_result;
|
|
|
|
typedef enum {
|
|
BRW_ASSEMBLE_COMPACT = 1 << 0,
|
|
BRW_ASSEMBLE_DUMP = 1 << 1,
|
|
} brw_assemble_flags;
|
|
|
|
brw_assemble_result brw_assemble(
|
|
void *mem_ctx, const struct intel_device_info *devinfo,
|
|
FILE *f, const char *filename, brw_assemble_flags flags);
|