diff options
author | Christoph Manszewski <christoph.manszewski@intel.com> | 2023-05-29 17:17:54 +0200 |
---|---|---|
committer | Kamil Konieczny <kamil.konieczny@linux.intel.com> | 2023-05-31 12:52:14 +0200 |
commit | 256f1d6523461307fe60f033f205a2cea8037f1d (patch) | |
tree | abe28f3c0838b10e3c4767c3e93f45de694e883f /lib/igt_draw.c | |
parent | 3ccfbbad3376fbad9243820d8dc87e15ea5b7b75 (diff) |
lib/intel_bb: Enable custom engine support for xe
Currently the 'ctx' field in batch buffer creation is interpreted as
a vm id for xe. In i915 it is interpreted as a context id. Since a xe
engine more closely resembles an i915 context, change the current
behaviour and interpret the 'ctx' fied as an xe engine id. This also
allows us to use the compute engine on xe, which currently is not
possible, due to reliance on legacy i915 flags.
v2:
- don't destroy user provided engine in 'intel_bb_destroy' (Zbigniew)
- destroy internally created engine before creating a new one
v3:
- introduce 'vm' parameter to be able to provide probler vm_id for
custom xe engine (Dominik, Zbigniew)
Signed-off-by: Christoph Manszewski <christoph.manszewski@intel.com>
Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Diffstat (limited to 'lib/igt_draw.c')
-rw-r--r-- | lib/igt_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_draw.c b/lib/igt_draw.c index d719b2400..a5c0cbbf6 100644 --- a/lib/igt_draw.c +++ b/lib/igt_draw.c @@ -807,7 +807,7 @@ static void draw_rect_render(int fd, struct cmd_data *cmd_data, src = create_buf(fd, cmd_data->bops, &tmp, I915_TILING_NONE); dst = create_buf(fd, cmd_data->bops, buf, tiling); - ibb = intel_bb_create_with_context(fd, cmd_data->ctx, NULL, PAGE_SIZE); + ibb = intel_bb_create_with_context(fd, cmd_data->ctx, 0, NULL, PAGE_SIZE); rendercopy(ibb, src, 0, 0, rect->w, rect->h, dst, rect->x, rect->y); |