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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user