diff options
author | Jason Ekstrand <[email protected]> | 2019-09-12 13:23:46 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-23 17:43:54 +0000 |
commit | 8a0d772dca33b725e2f359813eed795563b1467e (patch) | |
tree | 152b72a552600a9e5e1855cb64ea2a45d67aa24f /src/intel/compiler/brw_eu.h | |
parent | 2c762955d4157041f0624b8e485e822af1695c2a (diff) |
intel/eu: Add a brw_urb_dest_msg_type helper
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5596>
Diffstat (limited to 'src/intel/compiler/brw_eu.h')
-rw-r--r-- | src/intel/compiler/brw_eu.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h index 1d509eb026c..98de5153525 100644 --- a/src/intel/compiler/brw_eu.h +++ b/src/intel/compiler/brw_eu.h @@ -333,6 +333,14 @@ brw_urb_desc(const struct gen_device_info *devinfo, } } +static inline uint32_t +brw_urb_desc_msg_type(ASSERTED const struct gen_device_info *devinfo, + uint32_t desc) +{ + assert(devinfo->gen >= 7); + return GET_BITS(desc, 3, 0); +} + /** * Construct a message descriptor immediate with the specified sampler * function controls. |