From: Jason Ekstrand Date: Thu, 12 Sep 2019 18:23:46 +0000 (-0500) Subject: intel/eu: Add a brw_urb_dest_msg_type helper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a0d772dca33b725e2f359813eed795563b1467e;p=mesa.git intel/eu: Add a brw_urb_dest_msg_type helper Reviewed-by: Kenneth Graunke Reviewed-by: Kristian H. Kristensen Part-of: --- 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.