mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 13:30:12 +01:00
i965: Add a CHECK macro to call more complicated validation funcs.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
25448e4b7e
commit
ae9c69e1cf
1 changed files with 9 additions and 0 deletions
|
|
@ -53,6 +53,15 @@ cat(struct string *dest, const struct string src)
|
||||||
} \
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
#define CHECK(func, args...) \
|
||||||
|
do { \
|
||||||
|
struct string __msg = func(devinfo, inst, ##args); \
|
||||||
|
if (__msg.str) { \
|
||||||
|
cat(&error_msg, __msg); \
|
||||||
|
free(__msg.str); \
|
||||||
|
} \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
src0_is_null(const struct gen_device_info *devinfo, const brw_inst *inst)
|
src0_is_null(const struct gen_device_info *devinfo, const brw_inst *inst)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue