Sfoglia il codice sorgente

i965: Add a CHECK macro to call more complicated validation funcs.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
tags/17.1-branchpoint
Matt Turner 8 anni fa
parent
commit
ae9c69e1cf
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9
    0
      src/mesa/drivers/dri/i965/brw_eu_validate.c

+ 9
- 0
src/mesa/drivers/dri/i965/brw_eu_validate.c Vedi File

@@ -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)
{

Loading…
Annulla
Salva