etnaviv: isa: Add struct etna_asm_result
This struct contains the result of an assembler run and will be filled in Rust and consumed via a C API. Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Reviewed-by: @LingMan Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28869>
This commit is contained in:
committed by
Marge Bot
parent
863023ceda
commit
2ad2d86e49
@@ -9,6 +9,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "etnaviv/isa/enums.h"
|
||||
@@ -93,3 +94,11 @@ struct etna_inst {
|
||||
struct etna_inst_src src[ETNA_NUM_SRC]; /* source operand */
|
||||
unsigned imm; /* takes place of src[2] for BRANCH/CALL */
|
||||
};
|
||||
|
||||
struct etna_asm_result {
|
||||
struct etna_inst *instr;
|
||||
char *error;
|
||||
size_t num_instr;
|
||||
size_t capacity_instr;
|
||||
bool success;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user