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
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,
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
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
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
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
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
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
+++
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
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
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 ++---
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
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
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
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
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
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 +++
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
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 $?
19 matches
Mail list logo