Skip to content

i965: Create internal front buffer if dri doesn't supply one

On some platforms e.g. gbm the concept of front buffer does not really exist, in such case dri_screen->image.loader->getBuffers would return us only __DRI_IMAGE_BUFFER_BACK when we request both.

Fix this by creating internal front buffer if we requested front buffer but didn't get one. Gallium has on demand front buffer creating so it doesn't have such issue.

Current implementation handles:

  • Resizes
  • Multisampling

Closes: #1641 Closes: #1731

In the CI several tests start passing and several tests start failing instead of crashing https://mesa-ci.01.org/global_logic/builds/236/group/63a9f0ea7bb98050796b649e85481845

Merge request reports

Loading