Skip to content

gallium/u_blitter: fix refcnt imbalance related to saved_fs_constant_buffer

Indeed, if saved_fs_constant_buffer is not processed by util_blitter_restore_constant_buffer_state(), saved_fs_constant_buffer should be properly freed.

For instance, this issue is triggered with the r600 driver when using: "piglit/bin/arb_shader_storage_buffer_object-max-ssbo-size fs -auto -fbo" while setting GALLIUM_REFCNT_LOG=refcnt.log.

Fixes: 2b2f436c ("gallium/u_blitter: add helper to save FS const buffer state") Signed-off-by: Patrick Lerda patrick9876@free.fr

Merge request reports