Skip to content

d3d10umd: Use flush_frontbuffer for Present

Max R requested to merge max8rr8/mesa:d3d10umd_flush_fb into main

This virgl patches split from !24223. read more about split

This MR replaces old software only Present path of d3d10umd with new one that uses flush_frontbuffer. This allows gallium drivers to implement presentation themselves. Mainly "hardware" drivers (like virgl) will be able to call pfnPresentCb to present without CPU copy. Software drivers like llvmpipe/softpipe will use gdi_sw_winsys. To facilitate that customizable functions that acquire and release HDC from context_priv were added to allow passing D3DKMT_PRESENT as context_priv. Additionally R8G8B8 formats were added as they are used quite often in d3d11 apps.

Merge request reports