mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 22:40:09 +01:00
iris: Set priority for replaced engine context
The replace_kernel_ctx() code path was not setting back the context
priority.
Fixes: 5c4c8bdc4c ("iris/batch: Add support for engines contexts")
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19687>
This commit is contained in:
parent
f7e7fa6e5f
commit
cd159c7d6c
1 changed files with 1 additions and 3 deletions
|
|
@ -305,6 +305,7 @@ iris_create_engines_context(struct iris_context *ice, int priority)
|
|||
|
||||
iris_hw_context_set_unrecoverable(screen->bufmgr, engines_ctx);
|
||||
iris_hw_context_set_vm_id(screen->bufmgr, engines_ctx);
|
||||
iris_hw_context_set_priority(screen->bufmgr, engines_ctx, priority);
|
||||
|
||||
free(engines_info);
|
||||
return engines_ctx;
|
||||
|
|
@ -317,9 +318,6 @@ iris_init_engines_context(struct iris_context *ice, int priority)
|
|||
if (engines_ctx < 0)
|
||||
return false;
|
||||
|
||||
struct iris_screen *screen = (void *) ice->ctx.screen;
|
||||
iris_hw_context_set_priority(screen->bufmgr, engines_ctx, priority);
|
||||
|
||||
iris_foreach_batch(ice, batch) {
|
||||
unsigned i = batch - &ice->batches[0];
|
||||
batch->ctx_id = engines_ctx;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue