v3d: Changed v3d_compile:failed to an enum
Instead of just having a bool status for the failure, there is now an enum so that the compilation can report a more detailed status. Currently this is only used to report whether the failure was due to failed register allocation. The “failed” bool doesn’t seem to actually have been used anywhere so this doesn’t really change a lot. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5953>
This commit is contained in:
@@ -489,6 +489,12 @@ vir_after_block(struct qblock *block)
|
||||
return (struct vir_cursor){ vir_cursor_addtail, &block->instructions };
|
||||
}
|
||||
|
||||
enum v3d_compilation_result {
|
||||
V3D_COMPILATION_SUCCEEDED,
|
||||
V3D_COMPILATION_FAILED_REGISTER_ALLOCATION,
|
||||
V3D_COMPILATION_FAILED,
|
||||
};
|
||||
|
||||
/**
|
||||
* Compiler state saved across compiler invocations, for any expensive global
|
||||
* setup.
|
||||
@@ -666,7 +672,7 @@ struct v3d_compile {
|
||||
bool emitted_tlb_load;
|
||||
bool lock_scoreboard_on_first_thrsw;
|
||||
|
||||
bool failed;
|
||||
enum v3d_compilation_result compilation_result;
|
||||
|
||||
bool tmu_dirty_rcl;
|
||||
};
|
||||
|
Reference in New Issue
Block a user