aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/common/gen_decoder.h
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2018-08-26 13:52:47 +0100
committerLionel Landwerlin <[email protected]>2019-03-07 15:08:31 +0000
commitec526d6ba0bdb996416b7479330a424ff737df81 (patch)
tree6b8787d8b6a816dfc818228b40128b316457ddb6 /src/intel/common/gen_decoder.h
parent3e8d5b5ed48aaa37d8b83c2203f45ce55d557351 (diff)
intel/decoders: add address space indicator to get BOs
Some commands like MI_BATCH_BUFFER_START have this indicator. Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Rafael Antognolli <[email protected]>
Diffstat (limited to 'src/intel/common/gen_decoder.h')
-rw-r--r--src/intel/common/gen_decoder.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/common/gen_decoder.h b/src/intel/common/gen_decoder.h
index ae624c6054d..6ab0b66aca3 100644
--- a/src/intel/common/gen_decoder.h
+++ b/src/intel/common/gen_decoder.h
@@ -219,7 +219,7 @@ struct gen_batch_decode_ctx {
* If the given address is inside a buffer, the map pointer should be
* offset accordingly so it points at the data corresponding to address.
*/
- struct gen_batch_decode_bo (*get_bo)(void *user_data, uint64_t address);
+ struct gen_batch_decode_bo (*get_bo)(void *user_data, bool ppgtt, uint64_t address);
unsigned (*get_state_size)(void *user_data,
uint32_t offset_from_dynamic_state_base_addr);
void *user_data;
@@ -244,6 +244,7 @@ void gen_batch_decode_ctx_init(struct gen_batch_decode_ctx *ctx,
FILE *fp, enum gen_batch_decode_flags flags,
const char *xml_path,
struct gen_batch_decode_bo (*get_bo)(void *,
+ bool,
uint64_t),
unsigned (*get_state_size)(void *, uint32_t),