Skip to contentSkip to conversation

glamor: Don't flush in BlockHandler with Xorg >= 1.19

PATCH In review Michel Dänzer 2 participants 2 messages Mar 6, 2017 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 glamor: Don't flush in BlockHandler with Xorg >= 1.19

From: Michel Dänzer <[email protected]>

This was only necessary with older versions for driving the FBO cache expiry mechanism.

---
 src/amdgpu_kms.c | 2 ++
 1 file changed, 2 insertions(+)
src/amdgpu_kms.c +2 -0
index d48ad480a..31c2e86f2 100644
@@ -1035,8 +1035,10 @@ static void AMDGPUBlockHandler_KMS(BLOCKHANDLER_ARGS_DECL)
 		}
 	}
 
+#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,19,0,0,0)
 	if (info->use_glamor)
 		amdgpu_glamor_flush(pScrn);
+#endif
 
 #ifdef AMDGPU_PIXMAP_SHARING
 	amdgpu_dirty_update(pScrn);
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20170306094950.992-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org

Reviewed-by
#2 lore raw
Quoted 6 lines · Michel Dänzer

From: Michel Dänzer <[email protected]>

This was only necessary with older versions for driving the FBO cache expiry mechanism.

Quoted 22 lines
---
 src/amdgpu_kms.c | 2 ++
 1 file changed, 2 insertions(+)
src/amdgpu_kms.c +2 -1
index d48ad480a..31c2e86f2 100644
@@ -1035,8 +1035,10 @@ static void AMDGPUBlockHandler_KMS(BLOCKHANDLER_ARGS_DECL)
                }
        }
 
+#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,19,0,0,0)
        if (info->use_glamor)
                amdgpu_glamor_flush(pScrn);
+#endif
 
 #ifdef AMDGPU_PIXMAP_SHARING
        amdgpu_dirty_update(pScrn);
--

2.11.0

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx