From b0dee2f26c6d7d398a07c3af8c410a337b7825a4 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Mon, 6 Nov 2017 15:20:50 +0200 Subject: gpu: nvgpu: don't run cde shader for 0 ctaglines If the associated buffer is not compressed, it would be invalid to call the cde swizzler shader with zero lines. The fences in PREPARE_COMPRESSIBLE_READ still need to be managed, so just do a dummy submit with zero entries when lines is zero for the buffer. Bug 1856088 Change-Id: Ia68c2ffff21e5e8077d5c550b0ca44090f88bf80 Signed-off-by: Konsta Holtta Reviewed-on: https://git-master.nvidia.com/r/1590055 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/cde.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/common/linux/cde.h') diff --git a/drivers/gpu/nvgpu/common/linux/cde.h b/drivers/gpu/nvgpu/common/linux/cde.h index 5dd15c37..fe206401 100644 --- a/drivers/gpu/nvgpu/common/linux/cde.h +++ b/drivers/gpu/nvgpu/common/linux/cde.h @@ -160,7 +160,8 @@ struct gk20a_cde_hdr_command { enum { TYPE_BUF_COMMAND_INIT = 0, - TYPE_BUF_COMMAND_CONVERT + TYPE_BUF_COMMAND_CONVERT, + TYPE_BUF_COMMAND_NOOP }; /* -- cgit v1.2.2