radeon_kms.c: do not flush glamor operations for a closed screen

The function radeon_cs_flus_indirect() attempts to flush radeon
operations, which have already been flushed by glamor_close_screen().
This results in a segfault.

Signed-off-by: Oleh Nykyforchyn <oleh.nyk@gmail.com>
This commit is contained in:
Oleh Nykyforchyn
2025-07-15 14:59:03 +03:00
committed by Enrico Weigelt
parent 1fa0787cd4
commit aefc66b389

View File

@@ -107,7 +107,7 @@ void radeon_cs_flush_indirect(ScrnInfoPtr pScrn)
#ifdef USE_GLAMOR
if (info->use_glamor) {
glamor_block_handler(pScrn->pScreen);
/* Pending operations have already been flushed in glamor_close_screen() */
return;
}
#endif