[PATCH 07/12] drm/amd/display: Fix warning. Set MAX_SURFACES to 3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently we never use more than 2 surfaces in all use cases.
This avoids pushing dc_commit_surfaces_to_target beyond a
stacksize of 1024.

Change-Id: I3db9562a99057810c5fda5c388ce83f6e5a899ed
Signed-off-by: Harry Wentland <harry.wentland at amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng at amd.com>
Acked-by: Harry Wentland <Harry.Wentland at amd.com>
---
 drivers/gpu/drm/amd/display/dc/dc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
index 6bb3aeb53261..5f608009b794 100644
--- a/drivers/gpu/drm/amd/display/dc/dc.h
+++ b/drivers/gpu/drm/amd/display/dc/dc.h
@@ -34,7 +34,7 @@
 #include "link_service_types.h"
 
 #define MAX_TARGETS 6
-#define MAX_SURFACES 6
+#define MAX_SURFACES 3
 #define MAX_SINKS_PER_LINK 4
 
 /*******************************************************************************
-- 
2.9.3



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux