From 2d1153088a9130a7f17e09ace3c15072017438fc Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Tue, 25 Sep 2012 11:35:35 +0200 Subject: [PATCH] exa: use CLAMP_TO_EDGE for RepeatPad This fixes border rendering in some gtk3 themes. https://bugs.freedesktop.org/show_bug.cgi?id=55310 --- src/nv40_exa.c | 6 +++--- src/nv50_exa.c | 6 +++--- 2 Dateien geändert, 6 Zeilen hinzugefügt(+), 6 Zeilen entfernt(-) diff --git a/src/nv40_exa.c b/src/nv40_exa.c index 87ed5b2..c9e99e0 100644 --- a/src/nv40_exa.c +++ b/src/nv40_exa.c @@ -260,9 +260,9 @@ NV40EXAPictTexture(NVPtr pNv, PixmapPtr pPix, PicturePtr pPict, int unit) if (pPict->repeat) { switch(pPict->repeatType) { case RepeatPad: - PUSH_DATA (push, NV30_3D_TEX_WRAP_S_CLAMP | - NV30_3D_TEX_WRAP_T_CLAMP | - NV30_3D_TEX_WRAP_R_CLAMP); + PUSH_DATA (push, NV30_3D_TEX_WRAP_S_CLAMP_TO_EDGE | + NV30_3D_TEX_WRAP_T_CLAMP_TO_EDGE | + NV30_3D_TEX_WRAP_R_CLAMP_TO_EDGE); break; case RepeatReflect: PUSH_DATA (push, NV30_3D_TEX_WRAP_S_MIRRORED_REPEAT | diff --git a/src/nv50_exa.c b/src/nv50_exa.c index d6f38eb..e70d92d 100644 --- a/src/nv50_exa.c +++ b/src/nv50_exa.c @@ -665,9 +665,9 @@ NV50EXAPictTexture(NVPtr pNv, PixmapPtr ppix, PicturePtr ppict, unsigned unit) if (ppict->repeat) { switch (ppict->repeatType) { case RepeatPad: - PUSH_DATA (push, NV50TSC_1_0_WRAPS_CLAMP | - NV50TSC_1_0_WRAPT_CLAMP | - NV50TSC_1_0_WRAPR_CLAMP | 0x00024000); + PUSH_DATA (push, NV50TSC_1_0_WRAPS_CLAMP_TO_EDGE | + NV50TSC_1_0_WRAPT_CLAMP_TO_EDGE | + NV50TSC_1_0_WRAPR_CLAMP_TO_EDGE | 0x00024000); break; case RepeatReflect: PUSH_DATA (push, NV50TSC_1_0_WRAPS_MIRROR_REPEAT | -- 1.7.12