diff options
author | Francisco Jerez <[email protected]> | 2018-06-07 15:22:58 -0700 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2018-07-09 23:46:58 -0700 |
commit | 2a9605d6106558f47e4bf69b68c2eef331fc2fa6 (patch) | |
tree | 432593b6d01693ba573ad5933d1c51620f6a108b /src/intel/compiler/brw_eu.h | |
parent | 8e707fc2af87d120f619d34d81bce9b0bf1d34b8 (diff) |
intel/eu: Use descriptor constructors for dataport untyped surface messages.
v2: Use SET_BITS macro instead of left shift (Ken).
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_eu.h')
-rw-r--r-- | src/intel/compiler/brw_eu.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h index 2ea9749070c..884f1fbaabe 100644 --- a/src/intel/compiler/brw_eu.h +++ b/src/intel/compiler/brw_eu.h @@ -351,6 +351,20 @@ brw_dp_write_desc(const struct gen_device_info *devinfo, } /** + * Construct a message descriptor immediate with the specified dataport + * surface function controls. + */ +static inline uint32_t +brw_dp_surface_desc(const struct gen_device_info *devinfo, + unsigned msg_type, + unsigned msg_control) +{ + assert(devinfo->gen >= 7); + return (SET_BITS(msg_control, 13, 8) | + SET_BITS(msg_type, 17, 14)); +} + +/** * Construct a message descriptor immediate with the specified pixel * interpolator function controls. */ |