anv: Use correct engine class for companion RCS

Fixes: 6f138fe723 ("anv: avoid null pointer access in utrace copies on CCS")
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
(cherry picked from commit 43d98a3f1a)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38432>
This commit is contained in:
Sagar Ghuge 2025-11-04 12:14:36 -08:00 committed by Dylan Baker
parent 4f5c1c6c75
commit e9f677dff9
2 changed files with 4 additions and 2 deletions

View file

@ -1794,7 +1794,7 @@
"description": "anv: Use correct engine class for companion RCS",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "6f138fe723506a41519ec3956a89488893114705",
"notes": null

View file

@ -1712,7 +1712,9 @@ anv_async_submit_init(struct anv_async_submit *submit,
.relocs = &submit->relocs,
.user_data = submit,
.extend_cb = anv_async_submit_extend_batch,
.engine_class = queue->family->engine_class,
.engine_class = use_companion_rcs ?
INTEL_ENGINE_CLASS_RENDER :
queue->family->engine_class,
};
util_dynarray_init(&submit->batch_bos, NULL);