Skip to content

panfrost: fix GL_EXT_multisampled_render_to_texture

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

What does this MR do and why?

panfrost: fix multisample state when emitting fs descriptor

Currently we use pipe_rasterizer_state->multisample to decide whether to enable multisampling, but this doesn't work for GL_EXT_multisampled_render_to_texture, since rast->multisample is zero in this case.

Instead, switch to using pipe_framebuffer_state, which gives us the correct sampling information. And move the multisampling state setting from rasterizer creation to prepare_fs_state, which happens later in the pipeline and has up-to-date information on whether ms-rtt is being used.

Signed-off-by: Italo Nicola italonicola@collabora.com

Merge request reports