diff options
author | Ian Romanick <[email protected]> | 2018-04-18 14:02:33 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2018-08-22 20:31:32 -0700 |
commit | f347348f8af80a0fd79c4271affc8e374c4ea4ec (patch) | |
tree | c94a86a082f18aaf8e4d413b3da88f28c9c07127 /src/intel/compiler/brw_eu.h | |
parent | d628642a3469b94538c6eed1230d3345a74d19de (diff) |
intel/compiler: Expand untyped atomic message type field by a bit
This is necessary for a new Gen9 message type that will be added in the
next patch. There are also Gen8 message types that need the extra bit
(mostly for bindless).
v2: Split off from the next patch. Suggested by Caio.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_eu.h')
-rw-r--r-- | src/intel/compiler/brw_eu.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h index 3824ab2ec6a..196ba96c77e 100644 --- a/src/intel/compiler/brw_eu.h +++ b/src/intel/compiler/brw_eu.h @@ -360,8 +360,13 @@ brw_dp_surface_desc(const struct gen_device_info *devinfo, unsigned msg_control) { assert(devinfo->gen >= 7); - return (SET_BITS(msg_control, 13, 8) | - SET_BITS(msg_type, 17, 14)); + if (devinfo->gen >= 8) { + return (SET_BITS(msg_control, 13, 8) | + SET_BITS(msg_type, 18, 14)); + } else { + return (SET_BITS(msg_control, 13, 8) | + SET_BITS(msg_type, 17, 14)); + } } /** |