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>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38247>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
submit->batch_bos = UTIL_DYNARRAY_INIT;
|
||||
|
||||
Reference in New Issue
Block a user