diff options
author | Toni Lönnberg <[email protected]> | 2018-11-08 14:41:01 +0200 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2018-11-13 15:10:12 +0000 |
commit | a6aab7e4364709778652f11586607dfac7284c4e (patch) | |
tree | 206459c5f3455166c44f2b5b33d188a1c6c1bbc0 /src/intel/tools/aub_read.h | |
parent | b00bccd01201b4673ffd1414eb80bdc63d46105f (diff) |
intel/decoder: tools: gen_engine to drm_i915_gem_engine_class
Removed the gen_engine enum and changed the involved functions to use the
drm_i915_gem_engine_class enum from UAPI instead.
v3: Wrong engine was being used for blocks in video ring
v4: Fixed aubinator_viewer.cpp
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/tools/aub_read.h')
-rw-r--r-- | src/intel/tools/aub_read.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/intel/tools/aub_read.h b/src/intel/tools/aub_read.h index e48ac3164bc..1e788332dcb 100644 --- a/src/intel/tools/aub_read.h +++ b/src/intel/tools/aub_read.h @@ -28,17 +28,12 @@ #include <stdint.h> #include "dev/gen_device_info.h" +#include "drm-uapi/i915_drm.h" #ifdef __cplusplus extern "C" { #endif -enum gen_engine { - GEN_ENGINE_RENDER = 1, - GEN_ENGINE_VIDEO = 2, - GEN_ENGINE_BLITTER = 3, -}; - struct aub_read { /* Caller's data */ void *user_data; @@ -55,9 +50,9 @@ struct aub_read { void (*reg_write)(void *user_data, uint32_t reg_offset, uint32_t reg_value); - void (*ring_write)(void *user_data, enum gen_engine engine, + void (*ring_write)(void *user_data, enum drm_i915_gem_engine_class engine, const void *data, uint32_t data_len); - void (*execlist_write)(void *user_data, enum gen_engine engine, + void (*execlist_write)(void *user_data, enum drm_i915_gem_engine_class engine, uint64_t context_descriptor); /* Reader's data */ |