File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -170,10 +170,11 @@ function process_golden_img
170170 fi
171171 done
172172
173- skip_test=0
173+ local skip_test=0
174+ local non_separable_progs=0
174175 if [[ " $backend_name " == " gl" ]]; then
176+ non_separable_progs=$( get_argument_value " --non_separable_progs" " 0" " ${args[@]} " )
175177 if [[ " $app_name " == " Tutorial07_GeometryShader" || " $app_name " == " Tutorial08_Tessellation" ]]; then
176- local non_separable_progs=$( get_argument_value " --non_separable_progs" " 0" " ${args[@]} " )
177178 if [[ " $non_separable_progs " != " 0" ]]; then
178179 skip_test=1
179180 fi
@@ -186,6 +187,11 @@ function process_golden_img
186187 local capture_name=" $app_name " " _" " $backend_name "
187188
188189 local cmd=" $app_path $mode --width $GOLDEN_IMAGE_WIDTH --height $GOLDEN_IMAGE_HEIGHT --golden_image_mode $golden_img_mode --capture_path $golden_img_dir --capture_name $capture_name --capture_format png --adapters_dialog 0 --break_on_error 0 $extra_args "
190+ if [[ " $non_separable_progs " != " 0" ]]; then
191+ # Images generated with non-separable programs may differ slightly.
192+ cmd=" $cmd --golden_image_tolerance 1"
193+ fi
194+
189195 echo $cmd
190196 echo " "
191197 bash -c " $cmd "
You can’t perform that action at this time.
0 commit comments