[PATCH] dix: fix up coordinate scaling when external monitors are present

2014-06-15 Thread Peter Hutterer
The goal of all this is to get an x/y motion reflecting the motion on the device, i.e. a circle on the device is a circle on the screen. This is currently done by scaling the y coordinate depending on the screen ratio vs device ratio. Depending on that ratio the movement on the y axis may be

[PATCH] glamor: Remove always-true yInverted flag.

2014-06-15 Thread Eric Anholt
All users of glamor had the same value set, and it complicated things for no reason. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor.c | 5 -- glamor/glamor.h | 8 +- glamor/glamor_gradient.c | 19 ++-- glamor/glamor_pixmap.c| 77 -

[PATCH 3/4] glamor: Drop unnecessary glTexParameteri() in upload of texture data.

2014-06-15 Thread Eric Anholt
We're not drawing, and we're not initially setting up the texture for later drawing. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_transfer.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/glamor/glamor_transfer.c b/glamor/glamor_transfer.c index 4eea902..8914155 100644 ---

[PATCH 4/4] glamor: Drop constant arguments to glamor_solid().

2014-06-15 Thread Eric Anholt
After keithp's change to drop the old glamor_fill() code, nothing ever changed these values. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_glyphs.c| 4 ++-- glamor/glamor_priv.h | 1 - glamor/glamor_trapezoid.c | 3 +-- glamor/glamor_utils.c | 9 +++-- 4 files

[PATCH 2/4] glamor: Use MIN/MAX macros to clean up glamor_transfer.c

2014-06-15 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_transfer.c | 45 ++--- 1 file changed, 10 insertions(+), 35 deletions(-) diff --git a/glamor/glamor_transfer.c b/glamor/glamor_transfer.c index ad875c9..4eea902 100644 ---

[PATCH 1/4] glamor: Drop unnecessary glTexParameteri() in SetSpans().

2014-06-15 Thread Eric Anholt
If this path needed the filters set, so would all the other glDrawArrays() callers. But they don't. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_spans.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/glamor/glamor_spans.c b/glamor/glamor_spans.c index 46ba6c3..582d11d