summaryrefslogtreecommitdiffstats
path: root/src/intel/common/gen_decoder.h
diff options
context:
space:
mode:
authorToni Lönnberg <[email protected]>2018-10-29 13:56:44 +0200
committerLionel Landwerlin <[email protected]>2018-10-30 12:43:00 +0000
commitd5a938c58d058270990d5e077ed5b72384c001de (patch)
tree3eed44fba776089906f8f7891030bccab6748109 /src/intel/common/gen_decoder.h
parenta09cbaffbfb1dcf0b6ae41bbba21ae9bfdfb8a3b (diff)
intel/decoder: Use 'DWord Length' and 'bias' fields for packet length.
Use the 'DWord Length' and 'bias' fields from the instruction definition to parse the packet length from the command stream when possible. The hardcoded mechanism is used whenever an instruction doesn't have this field. Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/common/gen_decoder.h')
-rw-r--r--src/intel/common/gen_decoder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/common/gen_decoder.h b/src/intel/common/gen_decoder.h
index a80c50b6647..4beed22d729 100644
--- a/src/intel/common/gen_decoder.h
+++ b/src/intel/common/gen_decoder.h
@@ -99,8 +99,10 @@ struct gen_group {
char *name;
struct gen_field *fields; /* linked list of fields */
+ struct gen_field *dword_length_field; /* <instruction> specific */
uint32_t dw_length;
+ uint32_t bias; /* <instruction> specific */
uint32_t group_offset, group_count;
uint32_t group_size;
bool variable; /* <group> specific */