mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
winsys/amdgpu: Add assert for secure submissions on compute ring
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33601>
This commit is contained in:
parent
57228c12d5
commit
d8b91b72b9
1 changed files with 3 additions and 0 deletions
|
|
@ -1361,6 +1361,9 @@ static int amdgpu_cs_submit_ib_kernelq(struct amdgpu_cs *acs,
|
|||
num_chunks++;
|
||||
|
||||
if (cs->secure) {
|
||||
/* Secure submissions not supported for compute. */
|
||||
assert(acs->ip_type != AMD_IP_COMPUTE);
|
||||
|
||||
cs->chunk_ib[IB_PREAMBLE].flags |= AMDGPU_IB_FLAGS_SECURE;
|
||||
cs->chunk_ib[IB_MAIN].flags |= AMDGPU_IB_FLAGS_SECURE;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue