Re: [PATCH] glamor: Don't unbind the GL_ARRAY_BUFFER in glamor_put_vbo_space().

2015-01-03 Thread Eric Anholt
Kenneth Graunke kenn...@whitecape.org writes: Mesa's implementation of glBindBuffer() checks to see if the supplied buffer name happens to be already bound. If so, it returns immediately, skipping the hash table lookup (mapping the GLuint buffer handle to the actual struct), the associated

Re: misc fixes for VC4

2014-12-31 Thread Eric Anholt
Rob Clark robdcl...@gmail.com writes: On Tue, Dec 30, 2014 at 5:54 PM, Eric Anholt e...@anholt.net wrote: I've been looking into X performance on VC4 recently. The first obvious thing happening was that we're hitting some fallbacks in the driver for things like GL_QUADS, so I thought what

misc fixes for VC4

2014-12-30 Thread Eric Anholt
I've been looking into X performance on VC4 recently. The first obvious thing happening was that we're hitting some fallbacks in the driver for things like GL_QUADS, so I thought what if I use the GLES2 paths instead? Turns out the GLES2 paths are thoroughly broken now. I wrote two quick patches

[PATCH 1/3] glamor: Just set the logic op to what we want at the start of all rendering.

2014-12-30 Thread Eric Anholt
as the caller caching it would be. Signed-off-by: Eric Anholt e...@anholt.net --- In some of these cases, we've now got gotos to just a return FALSE in the error case. Do we want to just dump the gotos in this patch? Or leave them in for consistency and in case we end up adding some sort of other

[PATCH 2/3] glamor: Don't use PACK/UNPACK_SKIP_ROWS/PIXELS.

2014-12-30 Thread Eric Anholt
It's not available in GLES2 (though it's in GLES3). It's trivial to do the math, and avoids going through more switch statements in the GL on desktop. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_transfer.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions

Re: [PATCH] modesetting: Fix build with --disable-glamor.

2014-12-30 Thread Eric Anholt
Kenneth Graunke kenn...@whitecape.org writes: present.c: In function 'ms_present_flush': present.c:204:9: error: implicit declaration of function 'glamor_block_handler' Reviewed-by: Eric Anholt e...@anholt.net signature.asc Description: PGP signature

Re: Skype bi-directional video call crashes X server (xserver, mesa, drm, kernel from git, r600g+glamor)

2014-12-28 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Eric Anholt e...@anholt.net writes: --- a/glamor/glamor_xv.c +++ b/glamor/glamor_xv.c @@ -435,7 +435,7 @@ glamor_xv_put_image(glamor_port_private *port_priv, } top = (src_y) ~1; -nlines = (src_y + height) - top; +nlines

Re: Skype bi-directional video call crashes X server (xserver, mesa, drm, kernel from git, r600g+glamor)

2014-12-28 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Eric Anholt e...@anholt.net writes: --- a/glamor/glamor_xv.c +++ b/glamor/glamor_xv.c @@ -435,7 +435,7 @@ glamor_xv_put_image(glamor_port_private *port_priv, } top = (src_y) ~1; -nlines = (src_y + height) - top; +nlines

Re: Skype bi-directional video call crashes X server (xserver, mesa, drm, kernel from git, r600g+glamor)

2014-12-27 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Kertesz Laszlo laszlo.kert...@gmail.com writes: Ok, rebuilt the xserver package with debugging symbols (seems that checkinstall strips stuff by default). I got a bigger gdb.txt. See if it helps. I found a bug -- glamor_xv_put_image was mis-computing

Re: [PULL] GLX and Xephyr fixes

2014-12-11 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Adam Jackson a...@nwnk.net writes: Adam Jackson (2): glx: Dynamically compute attribute slot in GetDrawableAttributes glx: Add hack for GLX-1.2-style naked windows to GetDrawableAttributes This one is a bug fix, but the other two look

Re: [PATCH 1/2] glx: Dynamically compute attribute slot in GetDrawableAttributes

2014-12-04 Thread Eric Anholt
this code a lot nicer to read, but it's still better than hand-written constants. These two patches are: Reviewed-by: Eric Anholt e...@anholt.net signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http

Re: [PATCH] ephyr: Implement per-screen colormaps

2014-12-04 Thread Eric Anholt
mich...@redhat.com Reviewed-by: Eric Anholt e...@anholt.net signature.asc Description: PGP signature ___ 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 2/2] present: Fix use of vsynced pageflips and honor PresentOptionAsync. (v3)

2014-12-04 Thread Eric Anholt
-sync_flip, valid, x_off, y_off)) { Seem reasonable? If you wanted to squash this in, then this is: Reviewed-by: Eric Anholt e...@anholt.net (So's patch 1/2, regardless). signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org

Re: Modesetting - crash, boom, bang

2014-11-30 Thread Eric Anholt
to be pimped. I don't know about the output hotplug stuff, so I skipped reviewing that. Patches 1-5 are: Reviewed-by: Eric Anholt e...@anholt.net I think the repeated create_textured_screen_ext()s are leaking an EGL image, but that's a fix in glamor_egl.c we should do independently

Re: [PATCH] os: Server terminated successfully is not an error

2014-11-24 Thread Eric Anholt
: Reviewed-by: Keith Packard kei...@keithp.com With X_INFO, Reviewed-by: Eric Anholt e...@anholt.net pgp5eco4yj70a.pgp Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http

[PULL] modesetting DRI2 support

2014-10-27 Thread Eric Anholt
to cac4b064f9f66435430f61568c6a516c54bf3c40: modesetting: Add support for DRI2 with glamor. (2014-10-27 13:16:43 -0700) Eric Anholt ( dri2: Import a copy of Mesa's PCI ID - driver name mappings. dri2: Automatically fill

[PATCH 3/4] modesetting: Export two functions I want to reuse from DRI2/Present.

2014-10-24 Thread Eric Anholt
This renames dumb_get_bo_from_handle(), since it wasn't using a handle (GEM terminology) but a dmabuf fd. Signed-off-by: Eric Anholt e...@anholt.net --- hw/xfree86/drivers/modesetting/drmmode_display.c | 8 hw/xfree86/drivers/modesetting/drmmode_display.h | 3 +++ 2 files changed, 7

Re: [PATCH 1/4] dri2: Import a copy of Mesa's PCI ID - driver name mappings.

2014-10-19 Thread Eric Anholt
Alex Deucher alexdeuc...@gmail.com writes: On Fri, Oct 17, 2014 at 12:08 PM, Eric Anholt e...@anholt.net wrote: Adam Jackson a...@nwnk.net writes: On Fri, 2014-10-10 at 11:09 +0200, Eric Anholt wrote: +CHIPSET(0xA011, IGD_GM, Intel(R) IGD) +CHIPSET(0xA001, IGD_G,Intel(R) IGD) Can

Re: [PATCH 1/4] dri2: Import a copy of Mesa's PCI ID - driver name mappings.

2014-10-17 Thread Eric Anholt
Adam Jackson a...@nwnk.net writes: On Fri, 2014-10-10 at 11:09 +0200, Eric Anholt wrote: +CHIPSET(0xA011, IGD_GM, Intel(R) IGD) +CHIPSET(0xA001, IGD_G,Intel(R) IGD) Can we not? Pineview, right? Or Atom D4xx/D5xx/N4xx/N5xx, or whatever, but IGD is worse than useless. +CHIPSET

[PATCH 4/4 v3] modesetting: Add support for DRI2 with glamor.

2014-10-15 Thread Eric Anholt
(not that the normal 2D driver is stable with pageflipping for me), and I won't get it fixed before the merge window. It now passes all of the OML_sync_control tests from Jamey and Theo (except for occasional warns in timing -fullscreen -divisor 2). Signed-off-by: Eric Anholt e

Re: [PATCH] Xephyr: option to disable grabbing the host

2014-10-11 Thread Eric Anholt
William ML Leslie william.leslie@gmail.com writes: This patch makes it possible to use C-S key combinations within Xephyr without losing access to the host window manager's commands. Reviewed-by: Eric Anholt e...@anholt.net pgpaBuaCz4BPX.pgp Description: PGP signature

Re: [PATCH 2/4] dri2: Automatically fill in the driver name if the DDX doesn't provide it.

2014-10-11 Thread Eric Anholt
Mark Marshall markmarshal...@gmail.com writes: Just a minor thing On 10 October 2014 11:09, Eric Anholt e...@anholt.net wrote: This will be used by the modesetting driver to support DRI2 across all hardware that can support glamor, and could potentially be used by other drivers that have

[PATCH 2/4] dri2: Automatically fill in the driver name if the DDX doesn't provide it.

2014-10-10 Thread Eric Anholt
, except for the lack of nouveau_vieux support (which requires a predicate on the device). Signed-off-by: Eric Anholt e...@anholt.net --- hw/xfree86/dri2/dri2.c | 61 ++ 1 file changed, 61 insertions(+) diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86

[PATCH 4/4] modesetting: Add support for DRI2 with glamor.

2014-10-10 Thread Eric Anholt
-rendering that require presence in GLX (which aren't supported in glxdriswrast.c). Signed-off-by: Eric Anholt e...@anholt.net --- hw/xfree86/drivers/modesetting/Makefile.am |6 +- hw/xfree86/drivers/modesetting/dri2.c| 1122 ++ hw/xfree86/drivers/modesetting

[PATCH 1/4] dri2: Import a copy of Mesa's PCI ID - driver name mappings.

2014-10-10 Thread Eric Anholt
. (Some day, when AIGLX transitions to EGL, we can drop the DRI2 filename setup entirely). Signed-off-by: Eric Anholt e...@anholt.net --- hw/xfree86/dri2/pci_ids/i810_pci_ids.h | 4 + hw/xfree86/dri2/pci_ids/i915_pci_ids.h | 15 ++ hw/xfree86/dri2/pci_ids/i965_pci_ids.h | 115

Re: [PATCH 1/4] dri2: Import a copy of Mesa's PCI ID - driver name mappings.

2014-10-10 Thread Eric Anholt
Eric Anholt e...@anholt.net writes: This comes from Mesa commit acdcef6788beaa2a1532e13ff84c3e246b8025ed I forgot to mention, this series is on the modesetting-dri2 branch of my tree. I've done minor cleanups on 4/4 as I started looking into Present. pgpi3bhmRt3Jz.pgp Description: PGP

[PATCH 2/4] modesetting: Fix some weird formatting after x-indent-all.sh.

2014-10-08 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- hw/xfree86/drivers/modesetting/drmmode_display.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c b/hw/xfree86/drivers/modesetting/drmmode_display.c index ca02a4d..d959837

[PATCH 4/4] modesetting: Add support for rendering using glamor.

2014-10-08 Thread Eric Anholt
By default modesetting now tries to enable X acceleration using glamor, but falls back to normal shadowfb if GL fails to initialize. Signed-off-by: Eric Anholt e...@anholt.net --- hw/xfree86/drivers/modesetting/Makefile.am | 1 + hw/xfree86/drivers/modesetting/driver.c| 101

[PATCH 3/4] modesetting: Deduplicate some scrn setup.

2014-10-08 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- hw/xfree86/drivers/modesetting/driver.c | 55 + 1 file changed, 22 insertions(+), 33 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c index f509a19..c713746

[PATCH 1/4] modesetting: Run x-indent-all.sh.

2014-10-08 Thread Eric Anholt
As I was editing code, the top-level .dir-locals.el was making my new stuff conflict with the existing style. Make it consistently use the xorg style, instead. Signed-off-by: Eric Anholt e...@anholt.net --- hw/xfree86/drivers/modesetting/driver.c | 579 ++--- hw/xfree86/drivers

Re: [PATCH 3/3] xfree86: Delete file modinit.h

2014-10-01 Thread Eric Anholt
Daniel Martin consume.no...@gmail.com writes: All references to modinit.h have been remove with: a1d41e3 Move extension initialisation prototypes into extinit.h Signed-off-by: Daniel Martin consume.no...@gmail.com Reviewed-by: Eric Anholt e...@anholt.net pgpby1o6A9iXE.pgp Description

Re: [PATCH] glamor: Use GL_STREAM_READ also for read/write access to a PBO

2014-09-25 Thread Eric Anholt
-by: Eric Anholt e...@anholt.net pgpzIWcuXJomm.pgp Description: PGP signature ___ 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 06/19] mi: Remove Windows 8-bpp colormap compatibility

2014-09-25 Thread Eric Anholt
Adam Jackson a...@redhat.com writes: Nice, but not something our Windows servers build, and not something that belongs in mi anyway. Signed-off-by: Adam Jackson a...@redhat.com Reviewed-by: Eric Anholt e...@anholt.net pgpWCyQiIDjh_.pgp Description: PGP signature

Re: [PATCH 08/19] xfree86: Remove xv clip notify driver hook

2014-09-25 Thread Eric Anholt
Adam Jackson a...@redhat.com writes: Nothing's using it. Reviewed-by: Eric Anholt e...@anholt.net pgpV7slCH8rim.pgp Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http

Re: [PATCH 10/19] xfree86: Remove Option TextClockFreq

2014-09-25 Thread Eric Anholt
Adam Jackson a...@redhat.com writes: No modern driver pays attention to this. Presumably there existed hardware once where you couldn't just read the right values out of the CRTC. Reviewed-by: Eric Anholt e...@anholt.net pgpNUpue8mlHq.pgp Description: PGP signature

Re: [PATCH 11/19] xfree86: Remove spurious xf86ConfigError

2014-09-25 Thread Eric Anholt
(\nConfig Error:\n); -va_start(ap, msg); -VErrorF(msg, ap); -va_end(ap); -ErrorF(\n); -return; -} Yeah, doesn't seem useful, really. (also, the return; as the last statement is just the best) Reviewed-by: Eric Anholt e...@anholt.net pgpHykxJBKd1a.pgp Description: PGP

Re: [PATCH 12/19] xfree86: Remove useless back-pointer to pScrn from colormap code

2014-09-25 Thread Eric Anholt
Adam Jackson a...@redhat.com writes: Signed-off-by: Adam Jackson a...@redhat.com --- hw/xfree86/common/xf86cmap.c | 46 +++- 1 file changed, 20 insertions(+), 26 deletions(-) Looks nicer to me. Reviewed-by: Eric Anholt e...@anholt.net

Re: [PATCH 13/19] xfree86: Remove DisplayID support

2014-09-25 Thread Eric Anholt
Adam Jackson a...@redhat.com writes: Not actually wired up so it's fairly useless. Reviewed-by: Eric Anholt e...@anholt.net pgpyp44Uj2jSa.pgp Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org

Re: [PATCH 14/19] xfree86: Remove xf86Info.log

2014-09-25 Thread Eric Anholt
Adam Jackson a...@redhat.com writes: SUBCLASS ALL THE THINGS Isn't the Log enum dead now? Other than that, Reviewed-by: Eric Anholt e...@anholt.net pgp4QRTLe7D2i.pgp Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives

Re: [PATCH 15/19] xfree86: Remove unused xf86Info.useDefaultFontPathFrom

2014-09-25 Thread Eric Anholt
Adam Jackson a...@redhat.com writes: Signed-off-by: Adam Jackson a...@redhat.com Reviewed-by: Eric Anholt e...@anholt.net pgpNeLTmeBy5p.pgp Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org

Re: [PATCH 16/19] xfree86: configServerFlags never fails, make it return void

2014-09-25 Thread Eric Anholt
Adam Jackson a...@redhat.com writes: Signed-off-by: Adam Jackson a...@redhat.com Patches 16, 17, and 19 are also: Reviewed-by: Eric Anholt e...@anholt.net pgpwWyi_3X7og.pgp Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development

Re: [PATCH] glamor: Fix leak of converted_bits in _glamor_upload_bits_to_pixmap_texture

2014-09-24 Thread Eric Anholt
Reviewed-by: Eric Anholt e...@anholt.net pgpmY55z0hNnW.pgp Description: PGP signature ___ 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] loader: Remove compatibility with ancient XFree86 version numbering

2014-09-17 Thread Eric Anholt
... Reviewed-by: Eric Anholt e...@anholt.net pgpL3b41X5ymY.pgp Description: PGP signature ___ 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

[PULL] modesetting driver import

2014-09-17 Thread Eric Anholt
after free. modesetting: fix build regression against older servers. Eric Anholt (9): Merge branch 'modesetting-import' into master modesetting: Merge modesetting's COPYING into the xserver's. modesetting: unifdef MODESETTING_OUTPUT_SLAVE_SUPPORT modesetting: xserver

[PATCH] Update help text since -iglx is now the default

2014-09-17 Thread Eric Anholt
From: Jon TURNEY jon.tur...@dronecode.org.uk This should have been part of d0da0e9c3bb8fe0cd4879ecb24d21715bfaa209b Signed-off-by: Jon TURNEY jon.tur...@dronecode.org.uk Signed-off-by: Eric Anholt e...@anholt.net Reviewed-by: Eric Anholt e...@anholt.net --- os/utils.c | 4 ++-- 1 file changed

[PATCH 6/8 v2] modesetting: Connect the driver to the build.

2014-09-15 Thread Eric Anholt
v2: Fix libdrm version check, and use XORG_VERSION_* instead of a static 1.0.0 version for the driver module. Signed-off-by: Eric Anholt e...@anholt.net --- Thanks for the review! I've added my s-o-bs (oops), and added your review to the rest of the patches. modesetting-import branch

Re: [PATCH] glx/present: Only send GLX_BufferSwapComplete for PresentCompleteKindPixmap

2014-09-04 Thread Eric Anholt
GLX_BufferSwapComplete events and crashes in clutter. Reviewed-by: Eric Anholt e...@anholt.net pgpgYegXXYAJU.pgp Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman

[PATCH] glx: Disable indirect GLX contexts by default.

2014-09-04 Thread Eric Anholt
+iglx on the command line). Signed-off-by: Eric Anholt e...@anholt.net --- I kept saying I as going to send out this patch, and since I just crashed my server a few times from trying to run Xephyr -glamor with a broken driver, it's probably time. os/utils.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH 04/18] Three minor warning and whitespace fixes

2014-08-26 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Eric Anholt e...@anholt.net writes: So there's a bunch of disagreement between this new code and existing practice about whitespace, and still misc unrelated whitespace changes sprinkled into the remaining patches. That makes me grumpy when reviewing

Merging the modesetting driver to the X Server

2014-08-26 Thread Eric Anholt
it's big: commit 35dc7c75150733dbcef8a18b6796f49a7c48ebee Merge: 3a51418 5f3485b Author: Eric Anholt e...@anholt.net Date: Mon Aug 25 15:52:58 2014 -0700 Merge branch 'modesetting-import' into master This reintroduces a hardware driver to the xfree86 directory. Unlike the drivers

[PATCH 3/8] modesetting: xserver already checks XEXTPROTO = 7.2.99.901.

2014-08-26 Thread Eric Anholt
--- hw/xfree86/drivers/modesetting/drmmode_display.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c b/hw/xfree86/drivers/modesetting/drmmode_display.c index 6964e93..31c39a2 100644 --- a/hw/xfree86/drivers/modesetting/drmmode_display.c

[PATCH 8/8] modesetting: Drop remaining old-xserver compatibility.

2014-08-26 Thread Eric Anholt
--- hw/xfree86/drivers/modesetting/driver.c | 6 ++ hw/xfree86/drivers/modesetting/drmmode_display.c | 15 +-- hw/xfree86/drivers/modesetting/drmmode_display.h | 6 -- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git

[PATCH 6/8] modesetting: Connect the driver to the build.

2014-08-26 Thread Eric Anholt
--- configure.ac | 10 + hw/xfree86/Makefile.am | 2 +- hw/xfree86/drivers/Makefile.am | 5 + hw/xfree86/drivers/modesetting/Makefile.am | 27 ++--

[PATCH 1/8] modesetting: Merge modesetting's COPYING into the xserver's.

2014-08-26 Thread Eric Anholt
--- COPYING| 24 +++ hw/xfree86/drivers/modesetting/COPYING | 44 -- 2 files changed, 24 insertions(+), 44 deletions(-) delete mode 100644 hw/xfree86/drivers/modesetting/COPYING diff --git a/COPYING b/COPYING index

[PATCH 2/8] modesetting: unifdef MODESETTING_OUTPUT_SLAVE_SUPPORT

2014-08-26 Thread Eric Anholt
The server will always have it. --- hw/xfree86/drivers/modesetting/driver.c | 12 hw/xfree86/drivers/modesetting/drmmode_display.c | 17 + hw/xfree86/drivers/modesetting/drmmode_display.h | 7 --- 3 files changed, 1 insertion(+), 35 deletions(-) diff

[PATCH 7/8] modesetting: Drop use of compat-api.h

2014-08-26 Thread Eric Anholt
--- hw/xfree86/drivers/modesetting/Makefile.am | 1 - hw/xfree86/drivers/modesetting/compat-api.h | 94 hw/xfree86/drivers/modesetting/driver.c | 50 ++--- hw/xfree86/drivers/modesetting/drmmode_display.c | 1 - 4 files changed, 21

[PATCH 4/8] modesetting: Drop use of pointer for void *

2014-08-26 Thread Eric Anholt
The xserver doesn't have that typedef. --- hw/xfree86/drivers/modesetting/compat-api.h | 4 ++-- hw/xfree86/drivers/modesetting/driver.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/compat-api.h

[PATCH 5/8] modesetting: Update for the platform device API change.

2014-08-26 Thread Eric Anholt
--- hw/xfree86/drivers/modesetting/driver.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c index bf5a9a4..9384f88 100644 --- a/hw/xfree86/drivers/modesetting/driver.c +++

Re: [PATCH 04/18] Three minor warning and whitespace fixes

2014-08-25 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Declare a constant string 'const', clean up some indentation whitespace I'm confused about these whitespace fixes -- the lines surrounding those two are also tabs. pgptDagCNSkq3.pgp Description: PGP signature

Re: [PATCH 07/18] Delay initial modeset until root window contents are prepared

2014-08-25 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Wait until the root window has been painted for the first time before doing the modeset. This avoids flashing black while the root window gets set up. Signed-off-by: Keith Packard kei...@keithp.com --- src/uxa/intel.h | 2 ++

Re: [PATCH 04/18] Three minor warning and whitespace fixes

2014-08-25 Thread Eric Anholt
, but I don't actually care to block things due to that. This driver is enough of a disaster already that whitespace inconsistency isn't its main problem. Patches 1-3, 5-6, 8, 12-15 are: Reviewed-by: Eric Anholt e...@anholt.net 16-18: I'm still looking at them. pgpq5xGBPwgTJ.pgp Description

Re: [PATCH] glx: Fix 'y ' value in swrastGetDrawableInfo()

2014-08-23 Thread Eric Anholt
Maks Naumov maksq...@ukr.net writes: Signed-off-by: Maks Naumov maksq...@ukr.net Reviewed-by: Eric Anholt e...@anholt.net pgpC0wqlLs2Ls.pgp Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org

Re: [PATCH] glamor: Free Xv put image data immediately after use

2014-08-14 Thread Eric Anholt
visible performance impact. Signed-off-by: Keith Packard kei...@keithp.com Reviewed-by: Eric Anholt e...@anholt.net pgpdOF3gDKYJ_.pgp Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg

Re: [PATCH] glamor: Don't call glamor_copy_fbo_cpu() for GLAMOR_DRM_ONLY pixmaps

2014-08-14 Thread Eric Anholt
Michel Dänzer mic...@daenzer.net writes: From: Michel Dänzer michel.daen...@amd.com It results in a crash. Signed-off-by: Michel Dänzer michel.daen...@amd.com We really need to figure out how to make GLAMOR_DRM_ONLY go away. Reviewed-by: Eric Anholt e...@anholt.net pgp07AyI2W2b9.pgp

[PATCH] glamor: Don't try to set up core fonts textures when we won't use them.

2014-08-11 Thread Eric Anholt
This happens to avoid GL errors on hardware without EXT_texture_integer (which implies GLSL 130, and thus glamor_text.c programs not compiling anyway). Signed-off-by: Eric Anholt e...@anholt.net --- With this, glamor on simulated RPi gets to the point of showing my xterm on my gray background

[PULL] xv cleanups

2014-08-07 Thread Eric Anholt
to 3714f5401690b288045090c4bcd9cb01c6e4860e: kdrive: Remove a dead struct. (2014-08-07 12:39:53 -0700) Eric Anholt (15): xv: Remove dead VIDEO_INVERT_CLIPLIST from the xorg and kdrive DDXes. xv: Remove dead

Re: [PATCH v2] glamor: Add glamor_copy_fbo_cpu() for CopyArea to non-GPU destination

2014-08-06 Thread Eric Anholt
unnecessary use of GLAMOR_ACCESS_WO, thanks Eric for pointing that out. Disregard the GLAMOR_ACCESS_WO patch for now. Nice. We may end up pulling the other patch some day, but it seemed separate from what this one needed. Reviewed-by: Eric Anholt e...@anholt.net (My guess is keithp will pull

Re: [PATCH synaptics] conf: increase top software button area to 15%

2014-08-06 Thread Eric Anholt
Peter Hutterer peter.hutte...@who-t.net writes: We had reports that the top software button area is hard to hit for those using the trackpoint and clicking the buttons with their thumb. Analysis of event recordings (3 different people) for left, right and middle clicks shows that there is a

Re: [PATCH 0/3] glamor: Disable shader-based trapezoids. Bug 76213.

2014-08-06 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: The shader-based trapezoid drawing code in glamor draws incorrectly and doesn't appear to offer any performance benefits. This series fixes a couple of compiler warning problems and then disables the shader based trapezoid code. This fixes the bottom

Re: [PATCH 2/2] glamor: Add glamor_copy_fbo_cpu() for CopyArea to non-GPU destination

2014-08-05 Thread Eric Anholt
Michel Dänzer mic...@daenzer.net writes: From: Michel Dänzer michel.daen...@amd.com This provides a speedup e.g. when the destination is an SHM pixmap. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76285 Signed-off-by: Michel Dänzer michel.daen...@amd.com +

Re: [PATCH 03/12] Don't use GetScratchPixmapHeader for shadow pixmaps

2014-08-04 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Eric Anholt e...@anholt.net writes: This change appears to be unrelated, and possibly harmful (if X has dropped the last ref to the BO, but it's still the scanout buffer, a new allocation would now reuse the BO and scribble on scanout until the next

Re: [PATCH 01/12] Stop trying to out-guess mesa for BO allocation

2014-08-04 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Eric Anholt e...@anholt.net writes: Keith Packard kei...@keithp.com writes: I don't see anything indicating that this code path is only used by glamor. True. It's a fix for DRI3 for either UXA or none. Mesa allocates a single page for a 1x1 texture

Re: [PATCH 4/4] xfree86/modes: rotation damage is automatically destroyed on close

2014-07-30 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Don't try to destroy rotation_damage in the xf86RotateCloseScreen; it will have been destroyed when the screen pixmap was destroyed. This series is: Reviewed-by: Eric Anholt e...@anholt.net pgpT9MLZTtTDC.pgp Description: PGP signature

Re: [PATCH 08/12] xfree86: Clean up some more alpha awareness

2014-07-30 Thread Eric Anholt
Adam Jackson a...@redhat.com writes: Since the sparse stuff is gone none of these variables get used for anything, they're just dead side-effect-less execution. Patches 1-8 are: Reviewed-by: Eric Anholt e...@anholt.net It sounds like #9 could work around OpenBSD being weird by just deleting

Re: [PATCH 01/12] Stop trying to out-guess mesa for BO allocation

2014-07-30 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: I don't see anything indicating that this code path is only used by glamor. --- src/uxa/intel_uxa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uxa/intel_uxa.c b/src/uxa/intel_uxa.c index b396188..717754f 100644 ---

Re: [PATCH 03/12] Don't use GetScratchPixmapHeader for shadow pixmaps

2014-07-30 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: GetScratchPixmapHeader should only be used for local memory pixmaps, as used by PutImage and friends. That's because when you free the scratch pixmap header, it doesn't actually free the pixmap; instead, it gets stuffed in pScreen-pScratchPixmap and any

Re: [PATCH 06/12] Remove glamor support from UXA acceleration

2014-07-30 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Makes UXA no longer include calls to glamor acceleration functions. Signed-off-by: Keith Packard kei...@keithp.com --- src/uxa/Makefile.am| 9 -- src/uxa/intel_dri.c| 60 + src/uxa/intel_driver.c | 1 - src/uxa/intel_uxa.c

Re: [PATCH 07/12] Add intel_flush to abstract flushing pending acceleration operations

2014-07-30 Thread Eric Anholt
as long as it still calls intel_glamor_flush(). If it did, it gets: Reviewed-by: Eric Anholt e...@anholt.net even before we sort out the rest of the series. pgpsmzwOsTzDK.pgp Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development

Re: [PATCH 08/12] Get rid of glamor stubs in intel_glamor.h

2014-07-30 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: This eliminates the stubs in intel_glamor.h and replaces them with ifdefs instead. I don't feel strongly about this either way -- ifdefs are more traditional userland style, while stubs are more kernel style. Acked-by: Eric Anholt e...@anholt.net

Re: [PATCH 09/12] Do more checks for proposed flip pixmaps

2014-07-30 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Make sure the pitch and tiling are correct. Make sure there's a BO we can get at. I thought we couldn't change these parameters, but now I can't find what prevents them from changing. Can you cite sources? pgp_XyaN_u7LY.pgp Description: PGP signature

Re: [PATCH 10/12] Add glamor back into the driver

2014-07-30 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: This adds glamor support back into the driver, but instad of going through UXA, this uses it directly instead. This is hard to read with the conditionalizing all of the UXA code in the same commit as adding the glamor code. Then there are a bunch of

Re: [PATCH 00/12] Rework intel 2D driver glamor support

2014-07-30 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: I spent the day just cleaning up this patch series and testing. I think it's ready for others to use and review. I've been running it on two machines for a couple of days now and it's been solid. Patches 2, 4 are: Reviewed-by: Eric Anholt e

Re: [PATCH 14/16] xv: Drop the ClientPtr from the interface to the DDX.

2014-07-30 Thread Eric Anholt
Chris Wilson ch...@chris-wilson.co.uk writes: On Fri, Jul 18, 2014 at 10:32:31AM -0700, Eric Anholt wrote: Nobody was using it. The ClientPtr gets used to send events back to the Client from various implementations of Xv. I've modified the in-tree code, which didn't use it, so I'd like

Re: [PATCH 16/16] xv: Remove the pScreen from the XV encodings.

2014-07-30 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Eric Anholt e...@anholt.net writes: It was never used, and it meant a bunch of pointless frobbing of structure members between the DDX and DIX. This will generate warnings when initializing the (char *) name field From a constant string. One option

Re: [PATCH] dri2proto: Fix fields in SwapBuffers

2014-07-30 Thread Eric Anholt
Robert Ancell robert.anc...@canonical.com writes: Fix errors in SwapBuffers: - The section in 8. Extension Requests was missing the target_msc, divisor and remainder fields - The section in A.2 Protocol Requests had two entries for SwapBuffers, both incorrect Reviewed-by: Eric Anholt e

Re: [PATCH 09/16] xv: Move xf86 XV color key helper to core.

2014-07-28 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Eric Anholt e...@anholt.net writes: Color key overlay implementations want to reuse this code, and XF86's had bugs. It might be helpful to describe which bugs were in the xf86 code so that these two implementations could be compared. Just the ones

[PATCH 09/16] xv: Move xf86 XV color key helper to core.

2014-07-18 Thread Eric Anholt
Color key overlay implementations want to reuse this code, and XF86's had bugs. Signed-off-by: Eric Anholt e...@anholt.net --- Xext/xvdix.h | 2 ++ Xext/xvmain.c | 31 +++ hw/xfree86/common/xf86xv.c | 25 + 3 files

[PATCH 12/16] kdrive: Don't bother explicitly clearing new window privates to NULL.

2014-07-18 Thread Eric Anholt
Privates are initially cleared to zero by dixInitPrivates(). Signed-off-by: Eric Anholt e...@anholt.net --- hw/kdrive/src/kxv.c | 21 - hw/kdrive/src/kxv.h | 1 - 2 files changed, 22 deletions(-) diff --git a/hw/kdrive/src/kxv.c b/hw/kdrive/src/kxv.c index c916af4..0b4335a

[PATCH 16/16] xv: Remove the pScreen from the XV encodings.

2014-07-18 Thread Eric Anholt
It was never used, and it meant a bunch of pointless frobbing of structure members between the DDX and DIX. Signed-off-by: Eric Anholt e...@anholt.net --- Xext/xvdix.h | 1 - hw/kdrive/ephyr/ephyr_glamor_xv.c | 2 +- hw/kdrive/ephyr/ephyrvideo.c | 2 +- hw/kdrive/src

[PATCH 04/16] xv: Drop the ddQueryAdaptors() interface.

2014-07-18 Thread Eric Anholt
The core was passing pointers to pxvs's nAdaptors and pAdaptors, and the two hardware implementations were copying pxvs's nAdaptors and pAdaptors into those pointers. Signed-off-by: Eric Anholt e...@anholt.net --- Xext/xvdisp.c | 2 -- Xext/xvdix.h | 1 - hw/kdrive

[PATCH 15/16] kdrive: Remove a dead struct.

2014-07-18 Thread Eric Anholt
It's never been used in the history of the tree. Signed-off-by: Eric Anholt e...@anholt.net --- hw/kdrive/src/kxv.h | 9 - 1 file changed, 9 deletions(-) diff --git a/hw/kdrive/src/kxv.h b/hw/kdrive/src/kxv.h index 4eb4054..b997299 100644 --- a/hw/kdrive/src/kxv.h +++ b/hw/kdrive/src

XV cleanup series

2014-07-18 Thread Eric Anholt
Here's a pile of stuff I wrote when I was working on Xephyr XV with glamor. I wanted glamor to be able to create adaptors on its own without needing cooperation from the DDX, and I didn't want to build a third copy of DDX XV, so I was trying to clean up and share common code. I eventually backed

[PATCH 02/16] xv: Remove dead VIDEO_NO_CLIPPING from the xorg and kdrive DDXes.

2014-07-18 Thread Eric Anholt
As far as I can see, nothing has ever used this flag except possibly the i.mx6 xorg ddx debug during bringup. Signed-off-by: Eric Anholt e...@anholt.net --- hw/kdrive/src/kxv.c | 46 hw/kdrive/src/kxv.h | 1 - hw/xfree86/common

[PATCH 07/16] xv: Drop unused XvdiVideoStopped().

2014-07-18 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- Xext/xvdix.h | 1 - Xext/xvmain.c | 24 2 files changed, 25 deletions(-) diff --git a/Xext/xvdix.h b/Xext/xvdix.h index ddd8abb..b61659c 100644 --- a/Xext/xvdix.h +++ b/Xext/xvdix.h @@ -235,7 +235,6 @@ extern _X_EXPORT

[PATCH 14/16] xv: Drop the ClientPtr from the interface to the DDX.

2014-07-18 Thread Eric Anholt
Nobody was using it. Signed-off-by: Eric Anholt e...@anholt.net --- Xext/xvdisp.c | 8 +++- Xext/xvdix.h | 20 +-- Xext/xvmain.c | 20 +-- hw/kdrive/src/kxv.c| 49

[PATCH 03/16] xv: Move common code for adaptor cleanup to xvmain.c

2014-07-18 Thread Eric Anholt
Since any DDX XV screen cleanup would need this same code for freeing the tree of pointers for xv adaptors, move it to the dix. Signed-off-by: Eric Anholt e...@anholt.net --- Xext/xvdix.h | 1 + Xext/xvmain.c | 41 + hw/kdrive

[PATCH 11/16] kdrive: Remove dead KXVPaintRegion().

2014-07-18 Thread Eric Anholt
It's been unused since mach64 was deleted, and now there's a helper in core XV. Signed-off-by: Eric Anholt e...@anholt.net --- hw/kdrive/src/kxv.c | 41 - hw/kdrive/src/kxv.h | 3 --- 2 files changed, 44 deletions(-) diff --git a/hw/kdrive/src/kxv.c b/hw

[PATCH 01/16] xv: Remove dead VIDEO_INVERT_CLIPLIST from the xorg and kdrive DDXes.

2014-07-18 Thread Eric Anholt
As far as I can see (looking at trees on my disk, plus googling for the term), nothing has ever used this flag Signed-off-by: Eric Anholt e...@anholt.net --- hw/kdrive/src/kxv.c | 24 hw/kdrive/src/kxv.h | 1 - hw/xfree86/common/xf86xv.c | 24

[PATCH 13/16] xv: Remove the no-op AllocatePort/FreePort interfaces.

2014-07-18 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- Xext/xvdisp.c | 88 ++ Xext/xvdix.h | 3 -- Xext/xvmain.c | 2 +- hw/kdrive/src/kxv.c| 17 - hw/xfree86/common/xf86xv.c | 17 - 5 files

[PATCH 10/16] xv: Fix malloc-failure cases in the fill color key helper.

2014-07-18 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- Xext/xvmain.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Xext/xvmain.c b/Xext/xvmain.c index a3fb711..d84708b 100644 --- a/Xext/xvmain.c +++ b/Xext/xvmain.c @@ -1096,22 +1096,26 @@ XvFillColorKey

<    2   3   4   5   6   7   8   9   10   11   >