Skip to content

mesa/main: fix artifacts with GL_EXT_multisampled_render_to_texture

Italo Nicola requested to merge italove/mesa:pan_fix_msaa_r2t into main

For EXT_multisampled_render_to_texture, we store the number of samples in Attachment->NumSamples instead of Renderbuffer->NumSamples. This meant that the previous code ignored that the framebuffer was multisampled, leading to visual artifacts for drivers that support that extension, such as panfrost.

cc @bbrezillon @alyssa

V2: removed the previously merged and NAK'd panfrost patches, so the only remaining thing is the mesa/main patch.

Edited by Italo Nicola

Merge request reports