Commit 437f6b3d authored by Jonas Ådahl's avatar Jonas Ådahl

renderer-native: Actually use shadow fb when using software rendering

The commit 'renderer/native: Use shadow fb on software GL if preferred'
attempted to force using a shadow fb when using llvmpipe in order to
speed up blending, but instead only did so when llvmpipe AND the drm
device explicityl asked for it.

Now instead always force it for llvmpipe and other software rendering
backends, and otherwise just query the drm device (i.e.
DRM_CAP_DUMB_PREFER_SHADOW).

!807
parent 05e1a6c2
Pipeline #118830 passed with stages
in 5 minutes and 43 seconds
......@@ -3213,11 +3213,11 @@ should_force_shadow_fb (MetaRendererNative *renderer_native,
case COGL_GPU_INFO_ARCHITECTURE_SANDYBRIDGE:
case COGL_GPU_INFO_ARCHITECTURE_SGX:
case COGL_GPU_INFO_ARCHITECTURE_MALI:
return FALSE;
break;
case COGL_GPU_INFO_ARCHITECTURE_LLVMPIPE:
case COGL_GPU_INFO_ARCHITECTURE_SOFTPIPE:
case COGL_GPU_INFO_ARCHITECTURE_SWRAST:
break;
return TRUE;
}
kms_fd = meta_gpu_kms_get_fd (primary_gpu);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment