• Home
  • Raw
  • Download

Lines Matching refs:num

966 static void gather_layer_statistics(omap4_hwc_device_t *hwc_dev, struct counts *num, hwc_display_co…  in gather_layer_statistics()  argument
978 num->possible_overlay_layers++; in gather_layer_statistics()
982 num->scaled_layers++; in gather_layer_statistics()
985 num->BGR++; in gather_layer_statistics()
987 num->RGB++; in gather_layer_statistics()
989 num->NV12++; in gather_layer_statistics()
992 num->dockable++; in gather_layer_statistics()
995 num->protected++; in gather_layer_statistics()
997 num->mem += mem1d(handle); in gather_layer_statistics()
1002 static void decide_supported_cloning(omap4_hwc_device_t *hwc_dev, struct counts *num) in decide_supported_cloning() argument
1006 num->max_hw_overlays = MAX_HW_OVERLAYS; in decide_supported_cloning()
1013 if (ext->dock.enabled && !(ext->mirror.enabled && !(num->dockable || ext->force_dock))) { in decide_supported_cloning()
1017 hwc_dev->ext_ovls = (num->dockable || ext->force_dock) ? 1 : 0; in decide_supported_cloning()
1018 num->max_hw_overlays -= max(hwc_dev->ext_ovls, hwc_dev->last_ext_ovls); in decide_supported_cloning()
1032 num->max_hw_overlays >>= 1; in decide_supported_cloning()
1034 hwc_dev->ext_ovls = MAX_HW_OVERLAYS - num->max_hw_overlays; in decide_supported_cloning()
1037 num->max_hw_overlays -= hwc_dev->last_ext_ovls; in decide_supported_cloning()
1053 num->max_hw_overlays = hwc_dev->ext_ovls; in decide_supported_cloning()
1055 num->max_scaling_overlays = num->max_hw_overlays - nonscaling_ovls; in decide_supported_cloning()
1058 static int can_dss_render_all(omap4_hwc_device_t *hwc_dev, struct counts *num) in can_dss_render_all() argument
1066 num->possible_overlay_layers && in can_dss_render_all()
1067 num->possible_overlay_layers <= num->max_hw_overlays && in can_dss_render_all()
1068 num->possible_overlay_layers == num->composited_layers && in can_dss_render_all()
1069 num->scaled_layers <= num->max_scaling_overlays && in can_dss_render_all()
1070 num->NV12 <= num->max_scaling_overlays && in can_dss_render_all()
1072 num->mem <= MAX_TILER_SLOT && in can_dss_render_all()
1074 (!tform || num->NV12 == num->possible_overlay_layers) && in can_dss_render_all()
1076 (num->BGR == 0 || (num->RGB == 0 && !on_tv) || !hwc_dev->flags_rgb_order); in can_dss_render_all()
1227 struct counts num = { .composited_layers = list ? list->numHwLayers : 0 }; in omap4_hwc_prepare() local
1234 gather_layer_statistics(hwc_dev, &num, list); in omap4_hwc_prepare()
1236 decide_supported_cloning(hwc_dev, &num); in omap4_hwc_prepare()
1239 if (hwc_dev->force_sgx && num.composited_layers <= 1) in omap4_hwc_prepare()
1243 if (can_dss_render_all(hwc_dev, &num)) { in omap4_hwc_prepare()
1246 hwc_dev->swap_rb = num.BGR != 0; in omap4_hwc_prepare()
1267 if (dsscomp->num_ovls < num.max_hw_overlays && in omap4_hwc_prepare()
1340 if (num.composited_layers) in omap4_hwc_prepare()
1423 num.composited_layers, in omap4_hwc_prepare()
1424 num.possible_overlay_layers, num.scaled_layers, in omap4_hwc_prepare()
1425 num.RGB, num.BGR, num.NV12, in omap4_hwc_prepare()
1430 … hwc_dev->ext_ovls, num.max_hw_overlays, hwc_dev->last_ext_ovls, hwc_dev->last_int_ovls); in omap4_hwc_prepare()