[PATCH xserver 02/12] glamor: Make sure that GLAMOR_MEMORY pixmaps don't retain an FBO.

2016-02-01 Thread Eric Anholt
glamor_composite_choose_shader() may upload our scratch pixmaps to get a Render operation completed. We don't want to hang onto GL memory for our scratch pixmaps, since we'll just have to reallocate them at a new w/h next time around, and the contents will be updated as well. Signed-off-by: Eric

[PATCH xserver 05/12] glamor: Merge the two GL-type-from-pictformat paths.

2016-02-01 Thread Eric Anholt
It clarifies what the difference is between the two paths, and would potentially encourage us to handle GLES extensions that expose additional types. Signed-off-by: Eric Anholt --- glamor/glamor_picture.c | 322 ++-- 1 file changed,

[PATCH xserver 04/12] glamor: Propagate that is_upload is always true.

2016-02-01 Thread Eric Anholt
Signed-off-by: Eric Anholt --- glamor/glamor_core.c| 18 ++ glamor/glamor_picture.c | 142 ++-- glamor/glamor_utils.h | 6 -- 3 files changed, 46 insertions(+), 120 deletions(-) diff --git a/glamor/glamor_core.c

[PATCH xserver 06/12] glamor: Drop the GLES2 REVERT_UPLOADING_2_10_10_10 paths.

2016-02-01 Thread Eric Anholt
These just smash your 2_10_10_10 data into , despite what the comments said. That's not valid rendering, so just ditch this path and fall back to software. One might also note in the code being removed here that the REVERT_UPLOADING_10_10_10_2 path wasn't even connected. Signed-off-by: Eric

[PATCH xserver 03/12] glamor: Drop dead fbo handling from GLAMORY_MEMORY pict uploads.

2016-02-01 Thread Eric Anholt
The previous commit asserts that we don't have one. Signed-off-by: Eric Anholt --- glamor/glamor_picture.c | 25 ++--- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/glamor/glamor_picture.c b/glamor/glamor_picture.c index 9bb2c74..a032ed0

[PATCH xserver 00/12] glamor_picture.c total rewrite

2016-02-01 Thread Eric Anholt
I started incrementally cleaning up glamor_picture.c after being surprised by its behavior during the last series, and ended up with a total rewrite. There will be some small losses in acceleration paths for GLES2, but since GLES2 hasn't worked in several releases (and a bunch of glamor_picture.c

[PATCH xserver 10/12] glamor: Drop dead large-pixmap handling code in temp picture uploads.

2016-02-01 Thread Eric Anholt
The glamor_pixmap_ensure_fbo() in glamor_pixmap_upload_prepare() will always fail on a large pixmap, so we can just be explicit about bailing out here and then dump the rest of this garbage. Signed-off-by: Eric Anholt --- glamor/glamor_picture.c | 127

[PATCH xserver 09/12] glamor: Drop unused PBO code in temporary picture uploading.

2016-02-01 Thread Eric Anholt
Signed-off-by: Eric Anholt --- glamor/glamor_picture.c | 30 +++--- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/glamor/glamor_picture.c b/glamor/glamor_picture.c index e0f5828..e0458a6 100644 --- a/glamor/glamor_picture.c +++

[PATCH xserver 07/12] glamor: Drop the REVERT_UPLOADING_1_5_5_5 path.

2016-02-01 Thread Eric Anholt
There was only a pretty special case that could have even worked -- you've got a GLES2 renderer, you've got a SHM pixmap, it's 1555 (not the usual 565 for 16-bit), and you're little endian (BE was broken, since GL's 5_5_5_1 picks the 1 bit from the lowest bit of the short, and on BE we weren't

[PATCH xserver 12/12] ephyr: Fix redisplay with glamor on GLES.

2016-02-01 Thread Eric Anholt
glamor_transfer.c is still totally broken, though. Signed-off-by: Eric Anholt --- hw/kdrive/ephyr/ephyr_glamor_glx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/kdrive/ephyr/ephyr_glamor_glx.c b/hw/kdrive/ephyr/ephyr_glamor_glx.c index

[PATCH xserver 01/12] glamor: Simplify temporary picture uploading call stack.

2016-02-01 Thread Eric Anholt
glamor_upload_sub_pixmap_to_texture() only had the one caller, so we can merge it in, fix its silly return value, and propagate a bunch of constants. Signed-off-by: Eric Anholt --- glamor/glamor_picture.c | 68 ++---

[PATCH xserver 11/12] glamor: Replace "finish access" shader with texture swizzling.

2016-02-01 Thread Eric Anholt
For pictures without alpha, and for most other formats for GLES2, we would make a temporary FBO, make another temporary texture, upload our GLAMORY_MEMORY pixmap to the texture, then run the "finish access" shader across it to swizzle its values around into the temporary FBO (which we would use

Re: [PATCH rendercheck 1/5] Start using stdbool.h instead of Xlib or custom bools.

2016-02-01 Thread Alex Deucher
On Mon, Feb 1, 2016 at 4:48 PM, Eric Anholt wrote: > I have a hard time typing anything else at this point. > > Signed-off-by: Eric Anholt > --- > main.c | 21 ++ > ops.c| 2 +- > rendercheck.h| 58

Re: [PATCH rendercheck 1/5] Start using stdbool.h instead of Xlib or custom bools.

2016-02-01 Thread Eric Anholt
Alex Deucher writes: > On Mon, Feb 1, 2016 at 4:48 PM, Eric Anholt wrote: >> I have a hard time typing anything else at this point. >> >> Signed-off-by: Eric Anholt >> --- >> main.c | 21 ++ >> ops.c

[PATCH rendercheck 2/5] Save the list of active formats in a global for use by tests.

2016-02-01 Thread Eric Anholt
I'd like to move driving of tests out of tests.c and into t_*.c, and part of that will be allowing tests to use the formats list. While I'm at it, save the name of the format in the array so it doesn't need to be recomputed. Signed-off-by: Eric Anholt --- rendercheck.h | 8

[PATCH rendercheck 4/5] shmblend: New test for XRenderComposite() from a pixmap in SHM.

2016-02-01 Thread Eric Anholt
There's a giant pile of code in glamor for uploading SHM pixmaps to temporary GL memory for accelerating a Composite operation, and most of its code is about how you convert formats. Add a test that runs through all the formats, to give us some coverage. Signed-off-by: Eric Anholt

[PATCH rendercheck 1/5] Start using stdbool.h instead of Xlib or custom bools.

2016-02-01 Thread Eric Anholt
I have a hard time typing anything else at this point. Signed-off-by: Eric Anholt --- main.c | 21 ++ ops.c| 2 +- rendercheck.h| 58 +++- t_blend.c| 8 +++

[PATCH rendercheck 3/5] Use ELF sections to make test setup easier.

2016-02-01 Thread Eric Anholt
Managing the group logic was really error-prone (forget to edit success_mask when copy and pasting? Forget to printf a description of the group?). Most new tests being written can be described as a single call that does a couple subtests. This doesn't convert all of the tests. Some of the

[PATCH rendercheck 5/5] autogen: Set a default prefix for patches if unset.

2016-02-01 Thread Eric Anholt
Signed-off-by: Eric Anholt --- autogen.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autogen.sh b/autogen.sh index 1b15e18..c262d6b 100755 --- a/autogen.sh +++ b/autogen.sh @@ -11,3 +11,6 @@ autoreconf -v --install || exit 1 cd $ORIGDIR || exit $?