Module: Mesa Branch: master Commit: ae9c69e1cfd34597e8f8b9f724c62aadfec5b13f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ae9c69e1cfd34597e8f8b9f724c62aadfec5b13f
Author: Matt Turner <[email protected]> Date: Sun Nov 6 21:10:29 2016 -0800 i965: Add a CHECK macro to call more complicated validation funcs. Reviewed-by: Kenneth Graunke <[email protected]> --- src/mesa/drivers/dri/i965/brw_eu_validate.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_eu_validate.c b/src/mesa/drivers/dri/i965/brw_eu_validate.c index e23f1ec..3225386 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_validate.c +++ b/src/mesa/drivers/dri/i965/brw_eu_validate.c @@ -53,6 +53,15 @@ cat(struct string *dest, const struct string src) } \ } 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 src0_is_null(const struct gen_device_info *devinfo, const brw_inst *inst) { _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
