diff options
Diffstat (limited to 'src/gallium/drivers/ilo/genhw/genhw.h')
-rw-r--r-- | src/gallium/drivers/ilo/genhw/genhw.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/gallium/drivers/ilo/genhw/genhw.h b/src/gallium/drivers/ilo/genhw/genhw.h index 59160bed847..d341ede8d15 100644 --- a/src/gallium/drivers/ilo/genhw/genhw.h +++ b/src/gallium/drivers/ilo/genhw/genhw.h @@ -37,15 +37,21 @@ #include "gen_eu_isa.xml.h" #include "gen_eu_message.xml.h" -#define GEN_MI_CMD(op) (GEN6_MI_TYPE_MI | GEN6_MI_OPCODE_ ## op) - -#define GEN_BLITTER_CMD(op) \ - (GEN6_BLITTER_TYPE_BLITTER | GEN6_BLITTER_OPCODE_ ## op) - -#define GEN_RENDER_CMD(subtype, op) \ - (GEN6_RENDER_TYPE_RENDER | \ - GEN6_RENDER_SUBTYPE_ ## subtype | \ - GEN6_RENDER_OPCODE_ ## op) +#define GEN_MI_CMD(gen, op) (GEN6_MI_TYPE_MI | gen ## _MI_OPCODE_ ## op) +#define GEN6_MI_CMD(op) GEN_MI_CMD(GEN6, op) +#define GEN7_MI_CMD(op) GEN_MI_CMD(GEN7, op) + +#define GEN_BLITTER_CMD(gen, op) \ + (GEN6_BLITTER_TYPE_BLITTER | gen ## _BLITTER_OPCODE_ ## op) +#define GEN6_BLITTER_CMD(op) GEN_BLITTER_CMD(GEN6, op) + +#define GEN_RENDER_CMD(subtype, gen, op) \ + (GEN6_RENDER_TYPE_RENDER | \ + GEN6_RENDER_SUBTYPE_ ## subtype | \ + gen ## _RENDER_OPCODE_ ## op) +#define GEN6_RENDER_CMD(subtype, op) GEN_RENDER_CMD(subtype, GEN6, op) +#define GEN7_RENDER_CMD(subtype, op) GEN_RENDER_CMD(subtype, GEN7, op) +#define GEN75_RENDER_CMD(subtype, op) GEN_RENDER_CMD(subtype, GEN75, op) static inline bool gen_is_snb(int devid) |