[Bf-blender-cvs] [6f7f80775d9] temp-lanpr-review: LANPR: Warning messages for gpu cache overflow.

YimingWu noreply at git.blender.org
Tue Dec 3 06:49:39 CET 2019


Commit: 6f7f80775d9a848820d58ae85096faddac3ec25b
Author: YimingWu
Date:   Tue Dec 3 13:48:48 2019 +0800
Branches: temp-lanpr-review
https://developer.blender.org/rB6f7f80775d9a848820d58ae85096faddac3ec25b

LANPR: Warning messages for gpu cache overflow.

===================================================================

M	source/blender/draw/engines/lanpr/lanpr_dpix.c

===================================================================

diff --git a/source/blender/draw/engines/lanpr/lanpr_dpix.c b/source/blender/draw/engines/lanpr/lanpr_dpix.c
index e3a0c800a6c..2de6438659f 100644
--- a/source/blender/draw/engines/lanpr/lanpr_dpix.c
+++ b/source/blender/draw/engines/lanpr/lanpr_dpix.c
@@ -199,6 +199,7 @@ int lanpr_feed_atlas_data_obj(void *UNUSED(vedata),
 
   /* Don't overflow the cache. */
   if ((edge_count + begin_index) > (cache_total - 1)) {
+    WM_report(RPT_WARNING, "LANPR: GPU Cache too small for displaying some of the objects.");
     return begin_index;
   }
 
@@ -311,6 +312,7 @@ int lanpr_feed_atlas_data_intersection_cache(void *UNUSED(vedata),
 
   /* Don't overflow the cache. */
   if ((rb->intersection_count + begin_index) > (cache_total - 1)) {
+    WM_report(RPT_WARNING, "LANPR: GPU Cache too small for displaying intersections.");
     return 0;
   }



More information about the Bf-blender-cvs mailing list