From 92e64f4b41ed0ab0b9291d1de0b285733fd92307 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Fri, 28 Feb 2020 11:54:41 +0100 Subject: amdgpu: use AMDGPU_IB_FLAGS_SECURE when requested MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Part-of: --- src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/winsys') diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c index ea2e372ceb8..fa74aad394a 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c @@ -1594,6 +1594,11 @@ void amdgpu_cs_submit_ib(void *job, int thread_index) chunks[num_chunks].chunk_data = (uintptr_t)&cs->ib[IB_MAIN]; num_chunks++; + if (ws->secure && cs->secure) + cs->ib[IB_MAIN].flags |= AMDGPU_IB_FLAGS_SECURE; + else + cs->ib[IB_MAIN].flags &= ~AMDGPU_IB_FLAGS_SECURE; + assert(num_chunks <= ARRAY_SIZE(chunks)); r = amdgpu_cs_submit_raw2(ws->dev, acs->ctx->ctx, bo_list, -- cgit v1.2.3