mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 07:50:11 +01:00
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 commit43d98a3f1a) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38432>
This commit is contained in:
parent
4f5c1c6c75
commit
e9f677dff9
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue