Re: [PATCH xserver 2/2] glamor: Always purge the FBO cache in BlockHandler

2017-03-15 Thread Max Staudt
he FBO cache *iff* the driver supports this extension? Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH xserver 1/2] Revert "glamor: Remove the FBO cache."

2017-03-03 Thread Max Staudt
h look at my old series. There was a lot of broken, as well as dead (!) code that I had to fix to make this workable on VC4. If we reintroduce a FBO cache, at least let's do it right this time. Max ___ xorg-devel@lists.x.org: X.Org development Archives: ht

Re: [PATCH xserver] glamor: Declare "pos" in glamor_dash.c

2017-03-01 Thread Max Staudt
dering for now, at least as the default setting of an xorg.conf option... Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH xserver] glamor: Paint first and last pixel of lines

2017-02-14 Thread Max Staudt
- and making sure that everything behaves like mi? I'd even leave the existing GL lines code intact, as it's really cool to have. But disabled by default, so users get the precise experience first, and can decide to switch to a quick-but-imprecise OpenGL based experience if they wish to d

Re: [PATCH xserver] glamor: Paint first and last pixel of lines

2017-02-14 Thread Max Staudt
On 02/13/2017 11:53 PM, Keith Packard wrote: > afaict, GL suggests 'not > last' as the only option. It sounds like some drivers are doing both > 'not last' and 'not first' though? In the case that I reproduced, the 'not first' only happens occasionally, but reproducib

Re: [PATCH xserver] glamor: Paint first and last pixel of lines

2017-02-13 Thread Max Staudt
https://bugs.freedesktop.org/show_bug.cgi?id=99708 - should we fall back to mi until we have a better approximation in GLAMOR? It's sad to see acceleration go, but currently it seems to create a lot of confusion. And raw X11 ops are barely used (if at all) in average modern

Re: [PATCH xserver] glamor: Paint first and last pixel of lines

2017-02-08 Thread Max Staudt
On 02/07/2017 09:06 PM, Keith Packard wrote: > Max Staudt <msta...@suse.de> writes: > >> OpenGL implementations are allowed to be imprecise in drawing line caps. >> This patch expands on the original workaround in dc9fa908. > > Yeah, finding a way to work around GL

[PATCH xserver] glamor: Paint first and last pixel of lines

2017-02-07 Thread Max Staudt
OpenGL implementations are allowed to be imprecise in drawing line caps. This patch expands on the original workaround in dc9fa908. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=99705 Signed-off-by: Max Staudt <msta...@suse.de> --- glamor/glamor_lines.c | 21 +

Re: [PATCH xserver 0/4] glamor: Bugfixes in memory management

2016-07-18 Thread Max Staudt
On 07/18/2016 09:24 PM, Adam Jackson wrote: > On Mon, 2016-07-18 at 20:38 +0200, Max Staudt wrote: > >> What happened to this patch? I cannot find any discussion on it on >> [xorg-devel]. > > You have correctly identified what happened to this patch: it was sent, &

Re: [PATCH xserver 0/4] glamor: Bugfixes in memory management

2016-07-18 Thread Max Staudt
On 07/18/2016 07:10 PM, Eric Anholt wrote: > Adam Jackson <a...@nwnk.net> writes: > >> On Mon, 2016-07-18 at 14:36 +0200, Max Staudt wrote: >>> Shall I send a patch to delete GLAMOR's BO cache instead? >> >> Yes please, that would be lovely. > > http

Re: [PATCH xserver 0/4] glamor: Bugfixes in memory management

2016-07-18 Thread Max Staudt
leting it, too. Shall I send a patch to delete GLAMOR's BO cache instead? Comments? Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel

[PATCH xserver 4/4] glamor: Call glamor_block_handler() in _glamor_block_handler()

2016-07-15 Thread Max Staudt
Deduplify code and make sure glamor_priv->tick++ actually happens. This ensures that GLAMOR's BO cache is expunged every now and then even if it's not full yet. Note: glamor_block_handler() contains both lines removed in this change, so the old functionality persists. Signed-off-by: Max Sta

[PATCH xserver 1/4] glamor: Flush BO cache on GL_OUT_OF_MEMORY

2016-07-15 Thread Max Staudt
GL_APPLE_object_purgeable, as implemented by the i915/i965 driver. Signed-off-by: Max Staudt <msta...@suse.de> --- glamor/glamor_fbo.c | 36 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c index c

[PATCH xserver 2/4] glamor: Reduce BO cache size to 16 MB

2016-07-15 Thread Max Staudt
dragging may allocate megabytes of memory. Signed-off-by: Max Staudt <msta...@suse.de> --- glamor/glamor_fbo.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c index f80c20d..b27f652 100644 --- a/glamor/glamor_fbo.c +++ b/

[PATCH xserver 0/4] glamor: Bugfixes in memory management

2016-07-15 Thread Max Staudt
? Thanks, Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel

[PATCH xserver 3/4] glamor: Fix compilation with NO_FBO_CACHE

2016-07-15 Thread Max Staudt
Signed-off-by: Max Staudt <msta...@suse.de> --- glamor/glamor_fbo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c index b27f652..733c3a8 100644 --- a/glamor/glamor_fbo.c +++ b/glamor/glamor_fbo.c @@ -164,7

Re: [PATCH xserver] XDMCP: For IPv6 add IPv6 link local addresses to the end of the list

2016-06-22 Thread Reinhard Max
: From: Reinhard Max <m...@suse.de> For IPv6 add a link local addresses to the end of the list passed to the XDMCP servers. Reason: for link local addresses the XDMCP server would need to either know the interface thru a scope identifier or try all available interfaces. If they

[PATCH] xtensa: add support for xtensa architecture

2014-06-01 Thread Max Filippov
Signed-off-by: Max Filippov jcmvb...@gmail.com --- hw/xfree86/common/compiler.h|5 - hw/xfree86/os-support/linux/lnx_video.c |3 ++- include/servermd.h | 14 ++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/hw/xfree86

[PATCH] evdev: smooth scrolling support for wheel emulation

2014-01-11 Thread Max Schwarz
Disables the button click generation (EvdevWheelEmuInertia) and generates scroll valuator events directly. Signed-off-by: Max Schwarz max.schw...@online.de --- I tried to support turning wheel emulation on/off at runtime. This involves calling InitValuatorClassDeviceStruct() again to add the new

Re: ANN: xinput-ui: a simple GUI program to configure MPX

2013-07-04 Thread Max E
Hi Peter, On Thu, 2013-07-04 at 15:51 +1000, Peter Hutterer wrote: Hi Max, had a short play with it and it worked as expected. one thing I do have to caution you for is that the xinput commandline is not a stable API and may change at any time - breaking the script. You're much better off

ANN: xinput-ui: a simple GUI program to configure MPX

2013-07-03 Thread Max E
itself.) It works by emitting xinput commands. It is written for Python 2.7 and wxPython 2.8. It seems to work pretty well, although there may still be bugs. A more detailed README, source code, a screenshot are available on the GitHub page for the project: https://github.com/Max-E/xinput-ui

dvi to vga, resolution too small

2012-02-29 Thread max
Problem: I have dual head videocard nvidia 6200 (agp) with VGA and DVI. Resolution of monitor is 1600x1200 on VGA head. But maximum resolution of monitor on DVI head (through DVI to VGA) is only 640x480. How to set bigger resolution? P.S. Sorry for my english. My environment: Videocard: # lspci

Re: Re: Re: [PATCH evdev] type-safe inline functions for bitmask manipulation

2011-10-19 Thread Max Schwarz
is used everywhere. This wouldn't be a problem if we exclusively used SetBit/BitIsOn everywhere. But we get the bitmask from the kernel, which uses longs and uses correct byte order... Max ___ xorg-devel@lists.x.org: X.Org development Archives: http

[PATCH evdev] type-safe inline functions for bitmask manipulation

2011-10-17 Thread Max Schwarz
We can't use BitIsSet/SetBit from the server (inputstr.h) since they operate on byte arrays. EvdevSetBit is added in preparation for the smooth-scrolling on wheel emulation patch. Signed-off-by: Max Schwarz m...@x-quadraht.de --- src/evdev.c | 76

Re: Re: [PATCH evdev] type-safe inline functions for bitmask manipulation

2011-10-17 Thread Max Schwarz
as inline, that would need to be changed prior to merging. I'll try to send in a patch for byte-bitmasks sometime this week, so we can look how that looks. Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info

[PATCH evdev v2] type-safe inline functions for bitmask manipulation

2011-10-17 Thread Max Schwarz
We can't use BitIsSet/SetBit from the server (inputstr.h) since they operate on byte arrays. EvdevSetBit is added in preparation for the smooth-scrolling on wheel emulation patch. Signed-off-by: Max Schwarz m...@x-quadraht.de --- sorry, forgot to actually make EvdevBitIsSet/EvdevSetBit inline

[PATCH evdev v3] type-safe inline functions for bitmask manipulation

2011-10-17 Thread Max Schwarz
We can't use BitIsSet/SetBit from the server (inputstr.h) since they operate on byte arrays. EvdevSetBit is added in preparation for the smooth-scrolling on wheel emulation patch. Signed-off-by: Max Schwarz m...@x-quadraht.de --- make that static inline -.- src/evdev.c | 76

Re: [PATCH evdev v2] type-safe inline functions for bitmask manipulation

2011-10-17 Thread Max Schwarz
Why not have EvdevBitIsSet and EvdevSetBit use BitIsSet/SetBit with endianness-fu? What would you gain from that? I think my implementation is simple and straight, endianness-fu isn't going to make it nicer... Max ___ xorg-devel@lists.x.org: X.Org

Re: [PATCH evdev, v2] Support smooth scrolling on wheel emulation

2011-10-06 Thread Max Schwarz
that this bit looks bad, maybe we could rename TestBit to evdev_TestBit to match evdev_SetBit? Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

[PATCH evdev, v2] Support smooth scrolling on wheel emulation

2011-10-04 Thread Max Schwarz
a REL_DIAL axis present in hardware. Signed-off-by: Max Schwarz m...@x-quadraht.de --- Resend, my E-Mail client ate the patch... src/emuWheel.c | 19 ++- src/evdev.c| 34 +++--- src/evdev.h|4 +++- 3 files changed, 48 insertions(+), 9

[PATCH] dix: fix inverted handling of legacy scroll button events

2011-10-04 Thread Max Schwarz
This bug led to inverted scrolling axes with legacy drivers that do not support smooth scrolling classes. Signed-off-by: Max Schwarz m...@x-quadraht.de --- Applies on Peter's next branch. dix/getevents.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dix

Re: [PULL] XI 2.1 - raw events and smooth scrolling

2011-10-03 Thread Max Schwarz
scrolling up or left → button 4 or 6 */ Since incr 0 and delta 0, we get button 5. So either that condition needs to be changed, or the conversion in GetPointerEvents() needs to be flipped. Max ___ xorg-devel@lists.x.org: X.Org development Archives: http

[PATCH evdev] Support smooth scrolling on wheel emulation

2011-10-02 Thread Max Schwarz
a REL_DIAL axis present in hardware. Signed-off-by: Max Schwarz m...@x-quadraht.de --- Hi Peter, here's a tentative patch for evdev for smooth wheel emulation. It applies on your smooth-scrolling branch. Note: Without this patch (i.e. using the old button interface) wheel emulation direction

Re: Re: pscroll (high-resolution scrolling) update

2011-09-26 Thread Max Schwarz
an idea about how to proceed with GTK as well. Best regards, Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

[PATCH] Input: Fix frac calculation on [Raw]DeviceEvent conversion

2011-09-25 Thread Max Schwarz
(1UL 32) evaluates to 0 (at least here), so do the fraction calculation in two steps as in libXi. Fractions on xXIRawEvent were not multiplied at all, which also gave 0 as result. Signed-off-by: Max Schwarz m...@x-quadraht.de --- Hi, I noticed a problem (see patch) with Daniel Stone's patch

Re: pscroll (high-resolution scrolling) update

2011-09-22 Thread Max Schwarz
woha, I didn't notice someone else stepped up and did it even better (XIScrollClass co by Peter). I'll look into that now, sorry for the noise. Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info

Re: Smooth scrolling again

2010-11-17 Thread Max Schwarz
to call xf86SetValuatorAxisNoIntegration() after xf86InitValuatorAxisStruct() again... I would propose specific methods for changing the resolution, axes ranges, etc., and one final call to send out events. Max ___ xorg-devel@lists.x.org: X.Org

Re: Smooth scrolling again

2010-11-14 Thread Max Schwarz
(DeviceIntPtr dev, int axnum, int min, int max, int current)? This method could directly send out the DeviceChangedEvent. Would that still be a layer violation? I'll add that to my patch in the next days. But in general, I don't mind being pestered if something usable seems likely to emerge from

Re: Smooth scrolling again

2010-11-13 Thread Max Schwarz
pscrolltest.c). Are the drivers allowed to access the valuator structure (e.g. dev-valuator-axis[0].resolution = XY) or should I implement wrapper functions in the server to do that? Sorry for asking many questions, are there any specs/guidelines I could use instead of pestering you all? Max

Re: Smooth scrolling again

2010-11-08 Thread Max Schwarz
) if someone wants to change the evdev wheel resolution. I think the right solution would be to emit a XI event telling the client that the device has changed. Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel

Smooth scrolling again

2010-11-07 Thread Max Schwarz
? Another question: The output from the synaptics driver fluctuates quite a bit when one tries to stay at the current scrolling position. Do you think filtering would need to be implemented in the synaptics driver or globally in the server? Thanks, Max

Re: Smooth scrolling again

2010-11-07 Thread Max Schwarz
people can tune these settings. Okay, I will implement it in synaptics, we'll see if it is needed by other drivers. Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman

Re: Smooth scrolling again

2010-11-07 Thread Max Schwarz
the no_integration flag, which is not really the same). Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH] xephyr: Re-enabled Xnest fix for focus in + modifier bug.

2010-06-12 Thread Xiaoyang Yu (Max)
-Original Message- From: Mikhail Gusarov [mailto:dotted...@dottedmag.net] Sent: 2010年6月7日 14:55 To: Yu, Max A Cc: xorg-devel@lists.x.org Subject: Re: [PATCH] xephyr: Re-enabled Xnest fix for focus in + modifier bug. Twas brillig at 10:24:26 07.06.2010 UTC+08 when max.a

[PATCH] Re-enabled Xnest fix for focus in + modifier bug.

2010-06-12 Thread Xiaoyang Yu (Max)
Signed-off-by: Xiaoyang Yu (Max) max.a...@intel.com Reviewed-by: Mikhail Gusarov dotted...@dottedmag.net --- hw/kdrive/ephyr/ephyr.c | 107 --- 1 files changed, 45 insertions(+), 62 deletions(-) diff --git a/hw/kdrive/ephyr/ephyr.c b/hw/kdrive/ephyr

Re: Smooth scrolling - results!

2010-06-12 Thread Max Schwarz
be better to implement this in the input drivers or in the server itself? I'll experiment with cutting the events below a certain threshold to reduce/block the noise. Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives

Re: Smooth scrolling - results!

2010-06-11 Thread Max Schwarz
Hi, results! I'm finally content with how the code looks and feels :-) Comparison: before: http://c-palb.de/~max/before.ogg after: http://c-palb.de/~max/after.ogg The videos don't do the change justice, it feels _much_ more natural. I had to patch the respective input drivers, the server

Re: [PATCH] xephyr: Re-enabled Xnest fix for focus in + modifier bug.

2010-06-06 Thread Xiaoyang Yu (Max)
-Original Message- From: Mikhail Gusarov [mailto:dotted...@dottedmag.net] Sent: 2010年6月4日 17:32 To: Yu, Max A Cc: xorg-devel@lists.x.org Subject: Re: [PATCH] xephyr: Re-enabled Xnest fix for focus in + modifier bug. Twas brillig at 17:26:46 04.06.2010 UTC+08 when max.a

[PATCH] xephyr: Re-enabled Xnest fix for focus in + modifier bug.

2010-06-04 Thread Xiaoyang (Max) Yu
f9da417163b6b2d6234d2542c1f375e33db7159a. This patch is to re-enable it based on current Xnest code. From 8ae0e6bf48b731faf2d32a92837335a6b607723f Mon Sep 17 00:00:00 2001 From: Xiaoyang Yu (Max) max.a...@intel.com Date: Fri, 4 Jun 2010 12:04:40 +0800 Subject: [PATCH] Re-enabled Xnest fix for focus

[PATCH] xephyr: Re-enabled Xnest fix for focus in + modifier bug.

2010-06-04 Thread Xiaoyang Yu (Max)
/show_bug.cgi?id=3030 ). The patch has been disabled by commit f9da417163b6b2d6234d2542c1f375e33db7159a. This patch is to re-enable it based on current Xnest code. From 1f66f708da4fa3cd7b379d33b7ed227fb75750d1 Mon Sep 17 00:00:00 2001 From: Xiaoyang Yu (Max) max.a...@intel.com Date: Fri, 4 Jun 2010 17

Re: Smooth scrolling

2010-05-22 Thread Max Schwarz
scrolling, but perhaps it can be avoided. Anyway, my code is available for anyone interested at http://github.com/x-quadraht/pscroll Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org

Re: Smooth scrolling

2010-04-30 Thread Max Schwarz
on the client side? Overflow detection is possible, but not very nice as the values are doubles... Clearly, the right way would be to report relative events. I will start looking into Xorg where this addition of relative events takes place. Max ___ xorg-devel

Re: Smooth scrolling

2010-04-29 Thread Max Schwarz
the relative motions? Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: Smooth scrolling

2010-04-07 Thread Max Schwarz
. In that way the value is independant of screen resolution and font size, and toolkits can then decide how many pixels to scroll depending on those values. Max ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg

Re: Smooth scrolling

2010-04-07 Thread Max Schwarz
it is intended to be in units/m (XI2proto.h:184), while we want units/scrollclick or something like that. If we can use that field then it's not much more work. Toolkits can recognize the right valuator through the label and get the associated resolution, all via XI2. Max

Re: Smooth scrolling

2010-04-06 Thread Max Schwarz
such a feature. Thank you very much for the suggestion. I had thought of acceleration before, but as you said, I first have to get basic event reporting working. ptrveloc.h is a very good hint though, X.org is really a place to get lost in :-) Max ___ xorg

Re: Smooth scrolling

2010-03-31 Thread Max Schwarz
xf86PostMotionEvent or create a new xf86PostScrollEvent? 2) I really would like to extend the keyButtonPointer xEvent in Xproto.h to report the relative scrolling motions, but would that break compability? Should I use GenericEvent? Thank you, Max Schwarz

Smooth scrolling

2010-03-29 Thread Max Schwarz
This would break compability. Old software just expecting a few button ticks would suddenly scroll wildly. 2) Provide additional axis events with true resolution I realize that the GUI frameworks would also need work to make them use the new interface. Thank you, Max Schwarz

Re: ATI Mobility Radeon X1600 and OpenSUSE 11.2: experiencing difficulties with 3D

2009-12-16 Thread Max Di Cosimo
Confirmed: the radeon module was already in the system together with radeonhd; so I simply changed the Driver string in the xorg.conf and now everything works well. Thank you. Max - Original Message From: Vidar Haugsvær vidar.haugs...@gmail.com To: xorg-driver-ati@lists.x.org Sent

Re: ATI Mobility Radeon X1600 and OpenSUSE 11.2: experiencing difficulties with 3D

2009-12-15 Thread Max Di Cosimo
Yeah, I see. I was misleaded by someone who wrote that OpenSuse 11.2 installs radeon by default. I will have to install the radeon driver instead (even if actually I don't have the slightest idea how to do that: I need to study :) ) Thank you, Max - Original Message From: Michel

ATI Mobility Radeon X1600 and OpenSUSE 11.2: experiencing difficulties with 3D

2009-12-13 Thread Max Di Cosimo
in the interface (menus, toolbar); I'm available for some test, with your help, to understand if there is some way to improve situation. For example, adding some option to the Device section of Xorg.conf that I recreated with Sax2. Thank you for any suggestion Max

x1350, widerscreen and xorg 1.4

2008-04-26 Thread Max Russell
Hi - I am running a recently installed FreeBSD 7.0 system with the default xorg: X.Org X Server 1.4.0 Release Date: 5 September 2007 X Protocol Version 11, Revision 0 Build Operating System: FreeBSD 7.0-RELEASE i386 Current Operating System: FreeBSD ironteeth.home 7.0-RELEASE FreeBSD 7.0-RELEASE