intel/brw: Add ERROR helper variant that returns to EU validation
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31296>
This commit is contained in:
@@ -78,6 +78,15 @@ contains(const struct string haystack, const struct string needle)
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
#define RETURN_ERROR(msg) RETURN_ERROR_IF(true, msg)
|
||||
#define RETURN_ERROR_IF(cond, msg) \
|
||||
do { \
|
||||
if ((cond) && !CONTAINS(error_msg, error(msg))) { \
|
||||
CAT(error_msg, error(msg)); \
|
||||
return error_msg; \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
#define CHECK(func, args...) \
|
||||
do { \
|
||||
struct string __msg = func(isa, inst, ##args); \
|
||||
|
||||
Reference in New Issue
Block a user