[PATCH 11/12] glamor: Move cache_format to glamor_fbo.c, where it's used.

2015-07-08 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_fbo.c | 15 +++ glamor/glamor_utils.h | 15 --- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c index 1eee304..262033f 100644 --- a/glamor/glamor_fbo.c

[PATCH 06/12] glamor: Use the actual picture's format when uploading memory pixmaps.

2015-07-08 Thread Eric Anholt
the source and mask using different formats, where we smash the source's format to a new value so that the mask can use the same uploaded bits. Dropping most of that should be safe, since it will be uploaded as the source first, so the smashed format will still be used. Signed-off-by: Eric Anholt e

[PATCH 10/12] glamor: Drop another dead function.

2015-07-08 Thread Eric Anholt
This hasn't been used since the format swap/revert stuff for pictures was added back in 2012. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_utils.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h index 59e6b64..e22bbc1 100644

[PATCH 04/12] glamor: Drop dead glamor_upload_bits_to_pixmap_texture() proto.

2015-07-08 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_priv.h | 9 - 1 file changed, 9 deletions(-) diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h index 1614b6f..508433a 100644 --- a/glamor/glamor_priv.h +++ b/glamor/glamor_priv.h @@ -741,15 +741,6 @@ Bool

[PATCH 03/12] glamor: Use the new upload/download interface for XV uploads.

2015-07-08 Thread Eric Anholt
We don't need any of its weird handling of picture formats, since our XV pixmaps don't have any pictures attached. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_pixmap.c | 2 +- glamor/glamor_priv.h | 4 glamor/glamor_xv.c | 38

glamor: rendercheck fixes and picture handling simplification

2015-07-08 Thread Eric Anholt
This series came out of the process of trying to figure out if I could safely store a8 pixmaps in an a8r8g8b8 FBO, to improve glamor performance on VC4 (which doesn't support 8-bit FBOs). It turns out the answer is not quite, but the Render code had a lot of bugs obscuring that fact.

[PATCH 02/12] glamor: Ignore picture formats when choosing color for core rendering.

2015-07-08 Thread Eric Anholt
be wrong). Fixes all failures in rendercheck -t fill and, as a result, the remaining failures in rendercheck -t blend -o src -f a8r8g8b8,x2r10g10b10 Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_utils.h | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git

[PATCH 12/12] glamor: Drop unused box translation/bounds code.

2015-07-08 Thread Eric Anholt
These are dead since the glamor_copy.c replacement. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_utils.h | 39 --- 1 file changed, 39 deletions(-) diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h index 8a96c61..e648af2 100644

[PATCH 4/4] glamor: Drop a bunch of glamor_priv == NULL checks.

2015-07-07 Thread Eric Anholt
Now that it's always non-null when the pixmap is non-null, we don't need so much of this. glamor_get_pixmap_private() itself still accepts a NULL pixmap and returns NULL, because of glamor_render.c Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor.c | 17

[PATCH 2/4] glamor: Drop dead glamor_is_large_picture().

2015-07-07 Thread Eric Anholt
It died as of keithp's new glyphs code. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_utils.h | 12 1 file changed, 12 deletions(-) diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h index cef62c5..0a7de82 100644 --- a/glamor/glamor_utils.h +++ b/glamor

[PATCH 3/4] glamor: Ask the server to always allocate our private.

2015-07-07 Thread Eric Anholt
start out zero-filled, which matches the callocs we were doing when making our own privates, and in the case of an fb pixmap that has a priv where it didn't before, the type ends up being GLAMOR_MEMORY as we would want. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor.c | 43

[PATCH 1/4] glamor: Reuse the glamor_is_memory helper.

2015-07-07 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_composite_glyphs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/glamor/glamor_composite_glyphs.c b/glamor/glamor_composite_glyphs.c index cd88524..389c8f4 100644 --- a/glamor/glamor_composite_glyphs.c +++ b

glamor: Always allocate pixmap privates

2015-07-07 Thread Eric Anholt
The commit message in #3 has the meat of the series, but for further explanation, note that this reduces the glamor library by 8588 bytes (4.8%) on my x86-64 build, and I've only got 94 client-allocated pixmaps on my desktop at the moment according to xrestop.

[git pull v2] glamor: gles2 text improvements + regression fix + cleanups

2015-07-06 Thread Eric Anholt
Airlie (1): xserver: fix build with glamor disabled. Eric Anholt (23): glamor: Fix text rendering on GLES2. glamor: Drop CloseScreen-time GL resource cleanup code. glamor: Use the normal GL_QUADS drawing helper in the render code. glamor: Use GL_EXT_map_buffer_range

Re: [PATCH 1/7] glamor: Propagate the fact that pbo_valid is never set.

2015-07-03 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Eric Anholt e...@anholt.net writes: The code to set it was deleted in keithp's big rewrite. Looks like you can now remove the 'pbo' parameter to upload_sub_pixmap_to_texture as it's always 0 now? Sure, but I've got another big cleanup queued

[git pull] glamor: gles2 text improvements + regression fix + cleanups

2015-07-02 Thread Eric Anholt
to b6a814630e48c76c8682432bf9d74b271840da9e: xserver: fix build with glamor disabled. (2015-07-02 10:07:02 -0700) Dave Airlie (1): xserver: fix build with glamor disabled. Eric Anholt (24): glamor: Fix text rendering on GLES2

Re: [git pull] glamor code cleanups

2015-07-02 Thread Eric Anholt
Eric Anholt e...@anholt.net writes: As I was getting ready to send out another cleanups series, I found this old one laying around, reviewed by Ken back in April. It merges cleanly with the performance series I sent yesterday, and xtests successfully, too. The following changes since

[PATCH 1/2] glamor: Fix bad rendering of glyphs after an a1 glyph upload.

2015-07-01 Thread Eric Anholt
-by: Eric Anholt e...@anholt.net --- glamor/glamor_composite_glyphs.c | 67 ++-- 1 file changed, 37 insertions(+), 30 deletions(-) diff --git a/glamor/glamor_composite_glyphs.c b/glamor/glamor_composite_glyphs.c index 1f0d75e..f5a54c9 100644 --- a/glamor

[PATCH 2/2] glamor: Add an assert to catch the previous bug.

2015-07-01 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_transfer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glamor/glamor_transfer.c b/glamor/glamor_transfer.c index aa5e861..155d7e0 100644 --- a/glamor/glamor_transfer.c +++ b/glamor/glamor_transfer.c @@ -186,6 +186,8

[PATCH] glamor: Use GL_ARB_debug_output to log GL errors.

2015-07-01 Thread Eric Anholt
This should help people debugging when glamor does something stupid on their driver. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor.c | 41 + 1 file changed, 41 insertions(+) diff --git a/glamor/glamor.c b/glamor/glamor.c index 295f415

[git pull] glamor code cleanups

2015-06-30 Thread Eric Anholt
pixmap extents calculations. (2015-06-30 15:32:13 -0700) Eric Anholt (7): glamor: Propagate the fact that pbo_valid is never set. glamor: Remove dead gl_tex flag in the fbo struct. glamor: Drop the dead PBO field

[PATCH 7/7] glamor: Use ARRAY_SIZE in a couple more places for consistency.

2015-06-30 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_program.c | 6 ++ glamor/glamor_render.c | 5 + 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/glamor/glamor_program.c b/glamor/glamor_program.c index 5619216..416c54a 100644 --- a/glamor/glamor_program.c +++ b

[PATCH 4/7] glamor: Drop dead glamor_es2_pixmap_read_prepare().

2015-06-30 Thread Eric Anholt
It's been unused since I killed glamor_download_pixmap_to_cpu(). Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_pixmap.c | 70 -- glamor/glamor_priv.h | 6 - 2 files changed, 76 deletions(-) diff --git a/glamor/glamor_pixmap.c

[PATCH 2/7] glamor: Fix up some weird formatting in _glamor_create_fbo_array().

2015-06-30 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_fbo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c index cab2ff9..acb5d0d 100644 --- a/glamor/glamor_fbo.c +++ b/glamor/glamor_fbo.c @@ -424,8 +424,8

[PATCH 5/7] glamor: Make a bunch of single-file glamor functions static.

2015-06-30 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_largepixmap.c | 10 +++--- glamor/glamor_priv.h| 22 -- glamor/glamor_render.c | 4 ++-- 3 files changed, 9 insertions(+), 27 deletions(-) diff --git a/glamor/glamor_largepixmap.c b/glamor

[PATCH 6/7] glamor: Mark a bunch of single-file data static.

2015-06-30 Thread Eric Anholt
This gives the compiler a chance to optimize when the data is never changed -- for example, with pict_format_combine_tab, the compiler ends up inlining the 24 bytes of data into just 10 more bytes of code. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_core.c| 2 +- glamor

[PATCH 1/7] glamor: Drop a redundant check.

2015-06-30 Thread Eric Anholt
Above, we've already checked for -fbo -fbo-fb and returned. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_pixmap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/glamor/glamor_pixmap.c b/glamor/glamor_pixmap.c index f2bf223..0e51550 100644 --- a/glamor

[PATCH 3/7] glamor: Restore the hook to glamor_composite_rectangles().

2015-06-30 Thread Eric Anholt
It was apparently accidentally dropped in keithp's removal of _nf functions in 90d326fcc687e6d6d4b308f6272ededcf8145a17. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glamor/glamor.c b/glamor/glamor.c index

Re: glamor regression caused by 9c679d06 (Re: xserver: Branch 'master' - 5 commits)

2015-06-30 Thread Eric Anholt
Michel Dänzer mic...@daenzer.net writes: On 30.06.2015 13:02, Keith Packard wrote: commit 9c679d06055cc62aa9209318705e87dc33fba4c8 Author: Eric Anholt e...@anholt.net Date: Sun May 31 16:07:01 2015 -0700 glamor: Skip actual FBO setup in our glyph atlas. VC4 (and many

Re: [PATCH 07/16] modesetting: reverse prime support (v1.1)

2015-06-29 Thread Eric Anholt
modesetting to support this scenario while still supporting the USB offload one. v1.1: fix comment + ret = bits (Eric) Looks nicer, thanks! This and patch 11-15 are: Reviewed-by: Eric Anholt e...@anholt.net Patch 16 is: Acked-by: Eric Anholt e...@anholt.net (I don't think I'll get around to doing

[git pull] GLES2/VC4 text performance series

2015-06-29 Thread Eric Anholt
://people.freedesktop.org/~anholt/xserver glamor-next for you to fetch changes up to 0e3f1252dacdc3194a99a2d090b5c13f070f8799: glamor: Avoid using GL_QUADS on VC4. (2015-06-29 21:43:36 -0700) Eric Anholt (7): glamor: Fix text rendering

Re: [PATCH 5/7] glamor: Provide a fallback path for using an index buffer to do quads.

2015-06-27 Thread Eric Anholt
Dave Airlie airl...@gmail.com writes: On 20 June 2015 at 12:09, Eric Anholt e...@anholt.net wrote: Improves x11perf -aa10text performance by 1377.59% +/- 23.8198% (n=93) on Intel with GLES2. Do we destroy glamor_priv-ib anywhere? Other than that, this seems sane, it might be nice to have

[PULL] glamor VC4 crash fixes

2015-06-19 Thread Eric Anholt
to 790311cec30ac3d35e580b9f1266236f558033d4: glamor: Don't try to disable attrib divisors without the extension. (2015-06-19 19:11:05 -0700) Eric Anholt (4): glamor: Actually allow glyphs of dimension 65 to 128 in the cache

[PATCH] modesetting: Fix a compiler warning about CARD32 vs uint32_t.

2015-06-19 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- hw/xfree86/drivers/modesetting/dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/drivers/modesetting/dri2.c b/hw/xfree86/drivers/modesetting/dri2.c index 63cb065..8dc12b7 100644 --- a/hw/xfree86/drivers

[PATCH 4/7] glamor: Use GL_EXT_map_buffer_range if present.

2015-06-19 Thread Eric Anholt
We were only looking for the desktop GL version of the extension, so GLES2 missed out. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glamor/glamor.c b/glamor/glamor.c index 0378388..935fb74 100644 --- a/glamor

[PATCH 2/7] glamor: Drop CloseScreen-time GL resource cleanup code.

2015-06-19 Thread Eric Anholt
These will all be freed when the context is freed. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor.c | 5 - glamor/glamor_core.c | 11 --- glamor/glamor_gradient.c | 21 - glamor/glamor_priv.h | 3 --- glamor/glamor_render.c | 21

[PATCH 3/7] Use the normal GL_QUADS drawing helper in the render code.

2015-06-19 Thread Eric Anholt
We use this for all of our other performance-sensitive rendering, too. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor.c| 1 - glamor/glamor_priv.h | 7 +++ glamor/glamor_render.c | 50 -- 3 files changed, 7 insertions

[PATCH 1/7] glamor: Fix text rendering on GLES2.

2015-06-19 Thread Eric Anholt
The GL_QUADS helper takes a number of quads, not a number of vertices. --- glamor/glamor_composite_glyphs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glamor/glamor_composite_glyphs.c b/glamor/glamor_composite_glyphs.c index 1f0d75e..e92f1d9 100644 ---

[PATCH 6/7] glamor: Use proper Bools for some boolean values.

2015-06-19 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_priv.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h index 17f8253..681895f 100644 --- a/glamor/glamor_priv.h +++ b/glamor/glamor_priv.h @@ -194,16

[PATCH 5/7] glamor: Provide a fallback path for using an index buffer to do quads.

2015-06-19 Thread Eric Anholt
Improves x11perf -aa10text performance by 1377.59% +/- 23.8198% (n=93) on Intel with GLES2. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor.c | 62 +++ glamor/glamor_priv.h | 11 + glamor/glamor_utils.h | 4 +--- 3

[PATCH 7/7] glamor: Avoid using GL_QUADS on VC4.

2015-06-19 Thread Eric Anholt
Improves text rendering from about 284k glyphs per second to 320k glyphs per second. There's no GL extension for probing this, because of the philosophy of Don't expose whether things are really in hardware or not. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor.c | 9

Re: [PATCH 2/6] modesetting: add output master support

2015-06-19 Thread Eric Anholt
the slave stuff really, but it seems reasonable. Acked-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

Re: [PATCH 5/6] cursor: add hw cursor support for prime

2015-06-19 Thread Eric Anholt
) { xf86CursorScreenPtr ScreenPriv = -- Dropping the list_is_empty checks is the only thing I feel strongly about here, everything else is take it or leave it, then: Reviewed-by: Eric Anholt e...@anholt.net signature.asc Description: PGP signature

Re: [PATCH 1/6] glamor: add support for allocating linear buffers (v1.1)

2015-06-19 Thread Eric Anholt
into the FBO cache. Other than that, 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

Re: [PATCH 3/6] glamor: egl: add function to back a pixmap with a dma-buf.

2015-06-19 Thread Eric Anholt
screen = pixmap-drawable.pScreen, but either way: Reviewed-by: Eric Anholt e...@annholt.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

Re: [PATCH 4/6] modesetting: reverse prime support

2015-06-19 Thread Eric Anholt
Dave Airlie airl...@gmail.com writes: This adds support for reverse prime to the modesetting driver. Reverse prime is where we have two GPUs in the display chain, but the second GPU can't scanout from the shared pixmap, so needs an extra copy to the on screen pixmap. This allows

[PATCH 4/4] glamor: Don't try to disable attrib divisors without the extension.

2015-05-31 Thread Eric Anholt
Fixes epoxy assertion failures on vc4. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_composite_glyphs.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/glamor/glamor_composite_glyphs.c b/glamor/glamor_composite_glyphs.c index c30cbed..1f0d75e 100644

[PATCH 1/4] glamor: Actually allow glyphs of dimension 65 to 128 in the cache.

2015-05-31 Thread Eric Anholt
The cache was trying to allow glyph_max_dim in, but since we were putting over 64x64 into HW memory, it would end up in the single-glyph-per-render bail_one path. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH 3/4] glamor: Skip actual FBO setup in our glyph atlas.

2015-05-31 Thread Eric Anholt
software fallback for a1 (since the glyph is also in system memory). Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_composite_glyphs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glamor/glamor_composite_glyphs.c b/glamor/glamor_composite_glyphs.c index 47bf647

composite_glyphs on vc4

2015-05-31 Thread Eric Anholt
After this series, I'm at 143000 glyphs/sec, up from 2640 glyphs/sec with the old always-fallbacks path. ___ 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 2/4] glamor: Clean up some declarations in glyph rendering.

2015-05-31 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_composite_glyphs.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/glamor/glamor_composite_glyphs.c b/glamor/glamor_composite_glyphs.c index 39ed854..47bf647 100644 --- a/glamor/glamor_composite_glyphs.c

Re: [PATCH] glamor: don't do render ops with matching source/dest (v3)

2015-05-28 Thread Eric Anholt
, and check it earlier. (I assume the was for this case.) v3: add same code to largepixmap paths (Keith) Reviewed-by: Eric Anholt e...@anholt.net signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http

Re: [PATCH 1/7] render: Inline common FindGlyph case

2015-05-14 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Provide the common path for FindGlyph as an inline function, falling back to a function for the slow case. From the end of your current branch, reverting this commit gives me this on aa10text: x glamor-new-glyphs + revert

Re: [PATCH 4/7] glamor: Remove destination drawable argument from glamor_set_texture

2015-05-12 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: This argument wasn't used at all. Signed-off-by: Keith Packard kei...@keithp.com Reviewed-by: Eric Anholt e...@anholt.net signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org

Re: [PATCH 3/7] glamor: Pass depth to glamor_pm_is_solid and glamor_set_planemask

2015-05-12 Thread Eric Anholt
keeps a copy of the depth of the drawable? Is it always the same? If so, 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

Re: [PATCH 7/7] glamor: Replace CompositeGlyphs code

2015-05-12 Thread Eric Anholt
. With however much of it you want to take, 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

Re: [PATCH 6/7] glamor: Adapt glamor_program API to handle render acceleration

2015-05-12 Thread Eric Anholt
Summary: Tiny nitpicks, one functional concern. Keith Packard kei...@keithp.com writes: This extends the existing API to support options needed for render accleratoin, including an additional fragment, 'combine', (which acceleration provides a place to perform the source IN mask operation

Re: [PULL] glamor-next

2015-03-26 Thread Eric Anholt
Markus Wick mar...@selfnet.de writes: Am 2015-03-26 03:33, schrieb Eric Anholt: The only reason _nf is useful is if you need to implement faster software fallbacks -- otherwise, you should wrap above glamor, since _nf would have been equivalent to calling down. For faster fallbacks, we

RE: [PATCH] glamor: add fallback if NULL EGLConfig is not supported

2015-03-25 Thread Eric Anholt
Zhou, Jammy jammy.z...@amd.com writes: Hi Eric, Thanks for your response. I think some binary blobs don't support EGL_MESA_configless extension. We can argue that they should add this support, but it will be good if we can also have some fallback there. You wrote the patch, so presumably

Re: [PULL] glamor-next

2015-03-25 Thread Eric Anholt
Michel Dänzer mic...@daenzer.net writes: On 26.03.2015 04:14, Eric Anholt wrote: Michel Dänzer mic...@daenzer.net writes: On 25.03.2015 05:21, Eric Anholt wrote: Keith Packard (13): [...] glamor: Eliminate GLAMOR_USE_SCREEN and GLAMOR_USE_PICTURE_SCREEN glamor: Remove _nf

Re: [PULL] glamor-next

2015-03-25 Thread Eric Anholt
Michel Dänzer mic...@daenzer.net writes: On 26.03.2015 04:14, Eric Anholt wrote: Michel Dänzer mic...@daenzer.net writes: On 25.03.2015 05:21, Eric Anholt wrote: Keith Packard (13): [...] glamor: Eliminate GLAMOR_USE_SCREEN and GLAMOR_USE_PICTURE_SCREEN glamor: Remove _nf

Re: [PATCH] glamor: Perform texture2D() separately from swizzle.

2015-03-24 Thread Eric Anholt
Matt Turner matts...@gmail.com writes: The texture2D() happens in each branch, so we may as well do it as early as possible and hide some of its latency in the branching instructions. Moving it outside the (uniform) control flow reduces the number of instructions in the fs_source shader from

Re: [PATCH] glamor: Fix up indentation

2015-03-24 Thread Eric Anholt
Adam Jackson a...@redhat.com writes: Signed-off-by: Adam Jackson a...@redhat.com Reviewed and applied to -next. signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel

Re: [PATCH] glamor: add fallback if NULL EGLConfig is not supported

2015-03-24 Thread Eric Anholt
Jammy Zhou jammy.z...@amd.com writes: Signed-off-by: Kai Guo kai@amd.com Signed-off-by: Jammy Zhou jammy.z...@amd.com What driver does this apply to? Is there a good reason for that driver not supporting EGL_MESA_configless context? It's a very nice extension, and trivial to implement.

Re: [PATCH] ephyr: Avoid a segfault with 'DISPLAY= Xephy -glamor'

2015-03-24 Thread Eric Anholt
Daniel Martin consume.no...@gmail.com writes: On 9 February 2015 at 15:09, Jon TURNEY jon.tur...@dronecode.org.uk wrote: On 09/02/2015 14:03, Daniel Martin wrote: On 9 February 2015 at 14:45, Jon TURNEY jon.tur...@dronecode.org.uk wrote: ephyr_glamor_connect() returns NULL if we failed,

glamor cleanups

2015-03-24 Thread Eric Anholt
Here are some documentation fixes and dead code removal from glamor, as well as a tiny patch from trying to figure out how some of the large pixmap code works. This can be found on the glamor-cleanups branch of my tree. ___ xorg-devel@lists.x.org:

[PULL] glamor-next

2015-03-24 Thread Eric Anholt
indentation Eric Anholt (3): glamor: Just set the logic op to what we want at the start of all rendering. glamor: Don't optimize out scissor updates in CopyArea. glamor: Add a helper function for the common GL_QUADS fallback pattern. Jon TURNEY (2): glamor: Fix build when

[PATCH 4/7] glamor: Move doxygen for private structs into the structs.

2015-03-24 Thread Eric Anholt
This should hopefully keep the comments more up to date with the structure comments. While I'm here, I've reworded a few of them to be more accurate, and dropped a bunch of stale comments. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_priv.h | 149

[PATCH 7/7] glamor: Simplify some temp pixmap extents calculations.

2015-03-24 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_largepixmap.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/glamor/glamor_largepixmap.c b/glamor/glamor_largepixmap.c index 391f376..4c2534d 100644 --- a/glamor/glamor_largepixmap.c +++ b/glamor

[PATCH 6/7] glamor: Drop a dead flag to glamor_create_fbo_array().

2015-03-24 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_fbo.c | 35 +++ 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c index 5d59913..ffe8ef9 100644 --- a/glamor/glamor_fbo.c +++ b/glamor/glamor_fbo.c

[PATCH 3/7] glamor: Drop the dead PBO field in an FBO cache struct.

2015-03-24 Thread Eric Anholt
PBOs are only used at the whole pixmap level. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_fbo.c | 2 -- glamor/glamor_priv.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c index aedc804..5d59913 100644 --- a/glamor/glamor_fbo.c

[PATCH 5/7] glamor: Drop dead GLAMOR_FBO_DOWNLOADED flag.

2015-03-24 Thread Eric Anholt
Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_priv.h | 5 - glamor/glamor_utils.h | 1 - 2 files changed, 6 deletions(-) diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h index 0960055..b9bd1ba 100644 --- a/glamor/glamor_priv.h +++ b/glamor/glamor_priv.h @@ -334,11

[PATCH 1/7] glamor: Propagate the fact that pbo_valid is never set.

2015-03-24 Thread Eric Anholt
The code to set it was deleted in keithp's big rewrite. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_pixmap.c | 18 ++ glamor/glamor_priv.h | 2 -- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/glamor/glamor_pixmap.c b/glamor/glamor_pixmap.c

[PATCH 2/7] glamor: Remove dead gl_tex flag in the fbo struct.

2015-03-24 Thread Eric Anholt
This used to be used in the old copy_area path. --- glamor/glamor_fbo.c | 6 -- glamor/glamor_priv.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c index ea0e801..aedc804 100644 --- a/glamor/glamor_fbo.c +++ b/glamor/glamor_fbo.c @@ -476,12

Re: [PATCH] configure.ac: remove remaining TLS references

2015-03-19 Thread Eric Anholt
Emil Velikov emil.l.veli...@gmail.com writes: No longer used with the removal of the GL dispatch (glapi) from libglx a few releases ago. Reviewed-by: Eric Anholt e...@anholt.net signature.asc Description: PGP signature ___ xorg-devel@lists.x.org

Re: [PATCH] glamor: Fix build when configured --enable-glamor --disable-xshmfence

2015-02-06 Thread Eric Anholt
Jon TURNEY jon.tur...@dronecode.org.uk writes: On 05/02/2015 19:10, Eric Anholt wrote: Jon TURNEY jon.tur...@dronecode.org.uk writes: Signed-off-by: Jon TURNEY jon.tur...@dronecode.org.uk --- glamor/glamor_sync.c | 2 ++ 1 file changed, 2 insertions(+) [...] Reviewed and applied

Re: [PATCH v3] glamor: check max native ALU instructions

2015-02-05 Thread Eric Anholt
Olivier Fourdan ofour...@redhat.com writes: When using glamor (either in Xephyr or Xwayland) on hardware with too low instructions limit, glamor fallbacks to sw due to large shaders. This makes glamor unbearably slow on such hardware. Check reported value for

Re: [PATCH] glamor: Fix build when configured --enable-glamor --disable-xshmfence

2015-02-05 Thread Eric Anholt
Jon TURNEY jon.tur...@dronecode.org.uk writes: Signed-off-by: Jon TURNEY jon.tur...@dronecode.org.uk --- glamor/glamor_sync.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glamor/glamor_sync.c b/glamor/glamor_sync.c index 5e158c3..fbc47d4 100644 --- a/glamor/glamor_sync.c +++

Re: [PATCH 2/3] glamor: Don't optimize out scissor updates in CopyArea.

2015-02-05 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Eric Anholt e...@anholt.net writes: This possibly is a minor hit for immediate mode renderers (no difference on copypixin100 on my hsw, n=12), but it gives important information about drawing bounds to a deferred renderer (3.1x improvement

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

2015-02-05 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Eric Anholt e...@anholt.net writes: By dropping the unconditional logic op disable at the end of rendering, this fixes GL errors being thrown in GLES2 contexts (which don't have logic ops). On desktop, this also means a little less overhead per draw

Re: [PATCH v2] glamor: check max native ALU instructions

2015-02-04 Thread Eric Anholt
Olivier Fourdan ofour...@redhat.com writes: When using glamor (either in Xephyr or Xwayland) on hardware with too low instructions limit, glamor fallbacks to sw due to large shaders. This makes glamor unbearably slow on such hardware. Check reported value for

Re: [PATCH] xwayland: Add dependency on glamor libs

2015-02-04 Thread Eric Anholt
Olivier Fourdan ofour...@redhat.com writes: So that Xwayland gets re-linked each time glamor is modified. Signed-off-by: Olivier Fourdan ofour...@redhat.com Reviewed and merged for -next. signature.asc Description: PGP signature ___

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

2015-02-04 Thread Eric Anholt
Kenneth Graunke kenn...@whitecape.org writes: On Tuesday 30 December 2014 14:54:27 Eric Anholt wrote: By dropping the unconditional logic op disable at the end of rendering, this fixes GL errors being thrown in GLES2 contexts (which don't have logic ops). On desktop, this also means a little

Re: [PATCH v2] ephyr: Fail if glamor is requested but not usable

2015-02-04 Thread Eric Anholt
Olivier Fourdan ofour...@redhat.com writes: Signed-off-by: Olivier Fourdan ofour...@redhat.com Reviewed and picked it up for my -next branch. signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives:

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

2015-02-04 Thread Eric Anholt
), glamor_get_vbo_space() accounted for 4.24% of the CPU instructions in each glamor_copy_fbo_fbo_draw() operation. With this patch, it became only 0.87%. Signed-off-by: Kenneth Graunke kenn...@whitecape.org Cc: Eric Anholt e...@anholt.net --- glamor/glamor_vbo.c | 2 -- 1 file changed, 2 deletions

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

2015-02-04 Thread Eric Anholt
as the caller caching it would be. v2: Don't forget to set the logic op in Xephyr's drawing. Signed-off-by: Eric Anholt e...@anholt.net --- This is 2/3 a resend of patches that got swamped by a discussion that wasn't related to the patches themselves. The only feedback there that I see missing

[PATCH 2/3] glamor: Don't optimize out scissor updates in CopyArea.

2015-02-04 Thread Eric Anholt
This possibly is a minor hit for immediate mode renderers (no difference on copypixin100 on my hsw, n=12), but it gives important information about drawing bounds to a deferred renderer (3.1x improvement in copypixwin100 on vc4). Signed-off-by: Eric Anholt e...@anholt.net --- glamor

[PATCH 3/3] glamor: Add a helper function for the common GL_QUADS fallback pattern.

2015-02-04 Thread Eric Anholt
We should do better than this with an index buffer, but for now at least make it so that we don't have to copy the same code to new places. Signed-off-by: Eric Anholt e...@anholt.net --- glamor/glamor_copy.c | 8 +--- glamor/glamor_rects.c | 9 + glamor/glamor_spans.c | 9

Re: [PATCH] xwayland: Set glamor filter to nearest

2015-01-16 Thread Eric Anholt
...@selfnet.de 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 6/7] glamor: Re-enable a8 textures for GLES2

2015-01-15 Thread Eric Anholt
Maarten Lankhorst maarten.lankho...@ubuntu.com writes: Hey, Op 13-01-15 om 03:48 schreef Eric Anholt: Maarten Lankhorst maarten.lankho...@ubuntu.com writes: This will probably break PVR, but fixes other implementations. GL ES 2.0.25 spec says: Formats not listed in table 4.5, including

Re: [PATCH 4/7] glamor: Use GL_FRAMEBUFFER instead of GL_READ_FRAMEBUFFER

2015-01-12 Thread Eric Anholt
Maarten Lankhorst maarten.lankho...@ubuntu.com writes: The latter might not be available on GLES2. Signed-off-by: Maarten Lankhorst maarten.lankho...@ubuntu.com Reviewed-by: Eric Anholt e...@anholt.net signature.asc Description: PGP signature

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

2015-01-12 Thread Eric Anholt
Maarten Lankhorst maarten.lankho...@canonical.com writes: Hey, Op 30-12-14 om 23:54 schreef 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

Re: [PATCH 5/7] glamor: GL_TEXTURE_MAX_LEVEL is not available on GLES2

2015-01-12 Thread Eric Anholt
Maarten Lankhorst maarten.lankho...@ubuntu.com writes: Signed-off-by: Maarten Lankhorst maarten.lankho...@ubuntu.com I'd rather just delete the MAX_LEVEL setting, since it's unnecessary, and setting the filtering is a sufficient hint to the driver about texture mipmap allocation.

Re: [PATCH 2/7] glamor: glObjectLabel is not defined in GLES2

2015-01-12 Thread Eric Anholt
Maarten Lankhorst maarten.lankho...@ubuntu.com writes: Signed-off-by: Maarten Lankhorst maarten.lankho...@ubuntu.com --- glamor/glamor_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glamor/glamor_core.c b/glamor/glamor_core.c index 737b274..4eaf8ac 100644 ---

Re: [PATCH 6/7] glamor: Re-enable a8 textures for GLES2

2015-01-12 Thread Eric Anholt
Maarten Lankhorst maarten.lankho...@ubuntu.com writes: This will probably break PVR, but fixes other implementations. GL ES 2.0.25 spec says: Formats not listed in table 4.5, including compressed internal formats. are not color-, depth-, or stencil-renderable, no matter which components they

Re: [PATCH 7/7] XXX glamor: Only use supported tex formats

2015-01-12 Thread Eric Anholt
Maarten Lankhorst maarten.lankho...@ubuntu.com writes: Some GLES2 implementations don't support GL_UNSIGNED__REV and only guarantee less fancy things to work. I'm only certain it fixes the GLES2 errors, but is this a sane way to handle things? Or am I just shutting up the errors? I

Re: [PATCH 3/7] glamor: swallow gl errors before compiling programs

2015-01-12 Thread Eric Anholt
Maarten Lankhorst maarten.lankho...@ubuntu.com writes: In case the glamor implementation is buggy a error might be set before compiling, which causes glamor_build_program to enter the failure path even though shader compilation succeeded. Eat all errors before running glamor_build_program.

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

2015-01-05 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Kenneth Graunke kenn...@whitecape.org writes: That's true. I should probably just resurrect your Xephyr VAO patch, and extend it for the rest of Glamor as well. Yeah, would be good as that's required for 3.0 core context support. Note that most of

Re: 1.17 status and schedule

2015-01-05 Thread Eric Anholt
Keith Packard kei...@keithp.com writes: Ok, it's (almost) the first working day of the year, and we're supposed to be shipping 1.17. I think we're quite close, but I want to make sure everyone is ready for the release before it happens. From my list of pending patches, we've got: glamor:

Re: [PATCH] mi: fix accidental x/y coordinate swap

2015-01-05 Thread Eric Anholt
Peter Hutterer peter.hutte...@who-t.net writes: Reported-by: Adam Greenblatt adam.greenbl...@gmail.com Signed-off-by: Peter Hutterer peter.hutte...@who-t.net Seems pretty obvious. Reviewed-by: Eric Anholt e...@anholt.net signature.asc Description: PGP signature

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