diff options
author | Matt Turner <[email protected]> | 2016-04-29 16:07:44 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2016-05-03 22:33:42 -0700 |
commit | d01596613b6b7831a3c6a596108a83340f8bf657 (patch) | |
tree | 8558b08c704b6880cf337c1e2e916ca23bc59518 /src/mesa/drivers/dri/i965/brw_eu.h | |
parent | 1530e27534831a8d1c82e0a82fe15cd9c70e61e6 (diff) |
i965: Move inst_info from brw_eu_validate.c to brw_eu.c.
Drop the uses of 'enum gen' to a plain int, so that we don't have to
expose the bitfield definitions and GEN_GE/GEN_LE macros to other users
of brw_eu.h. As a result, s/.gen/.gens/ to avoid confusion with
devinfo->gen.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_eu.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu.h b/src/mesa/drivers/dri/i965/brw_eu.h index 563a105d9f0..a1434e4778a 100644 --- a/src/mesa/drivers/dri/i965/brw_eu.h +++ b/src/mesa/drivers/dri/i965/brw_eu.h @@ -545,6 +545,14 @@ next_offset(const struct brw_device_info *devinfo, void *store, int offset) return offset + 16; } +struct inst_info { + int gens; +}; + +extern const struct inst_info inst_info[128]; + +int gen_from_devinfo(const struct brw_device_info *devinfo); + const struct opcode_desc * brw_opcode_desc(const struct brw_device_info *devinfo, enum opcode opcode); |