intel/eu: Use descriptor constructors for dataport untyped surface messages.
v2: Use SET_BITS macro instead of left shift (Ken). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -350,6 +350,20 @@ brw_dp_write_desc(const struct gen_device_info *devinfo,
|
||||
SET_BITS(send_commit_msg, 15, 15));
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
Reference in New Issue
Block a user