1 /* 2 * Copyright © 2018 Intel Corporation 3 * SPDX-License-Identifier: MIT 4 */ 5 6 #pragma once 7 8 #include <stdio.h> 9 #include <stdbool.h> 10 11 struct intel_device_info; 12 13 typedef struct { 14 void *bin; 15 int bin_size; 16 } brw_assemble_result; 17 18 typedef enum { 19 BRW_ASSEMBLE_COMPACT = 1 << 0, 20 BRW_ASSEMBLE_DUMP = 1 << 1, 21 } brw_assemble_flags; 22 23 brw_assemble_result brw_assemble( 24 void *mem_ctx, const struct intel_device_info *devinfo, 25 FILE *f, const char *filename, brw_assemble_flags flags); 26