Re: Enable OpenGL software rendering on macOS

2022-05-06 Thread Alyssa Rosenzweig
Having spent enough time wrangling Mesa/MacOS on Arm Macs the correct solution is to migrate to Linux. everything else is pain. On Wed, May 04, 2022 at 12:38:55AM +, Jose Fonseca wrote: >I'm not sure exactly what Homebrew provides, and I'm not able to >investigate it now. >Yes

Re: Moving amber into separate repo?

2022-09-23 Thread Alyssa Rosenzweig
> 2. repo is growing large. Amber kinda requires long history, modern > mesa not. This may be good spot to split if cleanup is required. mesa absolutely uses long history. there is nothing to clean up. those bytes of disk space are well worth it. (Neutral on the other points, I don

Re: Zink MR signoff tags

2022-10-05 Thread Alyssa Rosenzweig
+ for not requiring rb/ab tags ... I kinda like the s-o-b tags but those don't require fiddly rebases, just -s in the right place.. On Tue, Oct 04, 2022 at 10:44:31PM -0500, Mike Blumenkrantz wrote: >Hi, >After some vigorous and robust discussion with Erik, we've decided that >zink wil

Re: Zink MR signoff tags

2022-10-05 Thread Alyssa Rosenzweig
> > + for not requiring rb/ab tags ... > > I think it's time to think about making this change all over Mesa as > well. We're deeply in bed with GitLab by now, so I don't think there's > a realistic chance that this isn't going to just be duplicate info any > time soon... I agree, but I don't wan

Re: Retiring the GitHub mirrors

2023-01-20 Thread Alyssa Rosenzweig
> Among the people present in this discussion, the consensus was that we > should delete them. I wasn't present but +1 from me.

The post-nir_register future

2023-08-04 Thread Alyssa Rosenzweig
FYI for people who don't follow GitLab-- We've now removed the following deprecated functionality from NIR: * nir_register * ALU write masks * abs/neg/sat modifiers For background on how we did it and why, see the description of https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23089 and

[Mesa-dev] [PATCH] gallium: Correct minor typo in header comments

2018-03-26 Thread Alyssa Rosenzweig
Signed-off-by: Alyssa Rosenzweig --- src/gallium/include/state_tracker/graw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/include/state_tracker/graw.h b/src/gallium/include/state_tracker/graw.h index 217fa31ba1..78ddf0a87f 100644 --- a/src/gallium/include

Re: [Mesa-dev] [PATCH 1/2] panfrost: Kill the perf counters interface

2019-06-21 Thread Alyssa Rosenzweig
Both patches pushed :) ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 2/9] panfrost: Report UBO count

2019-06-21 Thread Alyssa Rosenzweig
We look at the highest set bit in the UBO enable mask to work out the maximum indexable UBO, i.e. the UBO count as we need to report to the hardware. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 17 +++-- 1 file changed, 15 insertions(+), 2

[Mesa-dev] [PATCH 1/9] panfrost: Constant buffer refactor

2019-06-21 Thread Alyssa Rosenzweig
We refactor panfrost_constant_buffer to mirror v3d's constant buffer handling, to enable UBOs as well as a single set of uniforms. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 66 ++ src/gallium/drivers/panfrost/pan_context.h | 6

[Mesa-dev] [PATCH 5/9] panfrost: Identify "uniform buffer count" bits

2019-06-21 Thread Alyssa Rosenzweig
We've known about this for a while, but it was never formally in the machine header files / decoder, so let's add them in. Signed-off-by: Alyssa Rosenzweig --- .../drivers/panfrost/include/panfrost-job.h| 15 +++ src/gallium/drivers/panfrost/pan_context.

[Mesa-dev] [PATCH 3/9] panfrost: Allow for dynamic UBO count

2019-06-21 Thread Alyssa Rosenzweig
We already uploaded UBOs, but only a fixed number (1) for uniforms; let's upload as many as we compute we need. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 27 +- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git

[Mesa-dev] [PATCH 6/9] panfrost: Handle disabled/empty UBOs

2019-06-21 Thread Alyssa Rosenzweig
Prevents an assert(0) later in this (not so edge) case. We still have to have a dummy there. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost

[Mesa-dev] [PATCH 0/9] panfrost: Initial UBO implementation

2019-06-21 Thread Alyssa Rosenzweig
This implements loads from direct vec4-aligned fields in UBOs. More future work is needed for indirect or unaligned loads (just compiler changes), but the core command stream work is handled here. Alyssa Rosenzweig (9): panfrost: Constant buffer refactor panfrost: Report UBO count panfrost

[Mesa-dev] [PATCH 4/9] panfrost: Upload UBOs

2019-06-21 Thread Alyssa Rosenzweig
Now that all the counting is sorted, it's a matter of passing along a GPU address and going. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 31 ++ 1 file changed, 31 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_context

[Mesa-dev] [PATCH 8/9] panfrost: DRY between shader stage setup

2019-06-21 Thread Alyssa Rosenzweig
Just a little spring cleanup, extending UBOs to vertex shaders in the process. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 55 ++ 1 file changed, 36 insertions(+), 19 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_context.c

[Mesa-dev] [PATCH 7/9] panfrost/midgard: Implement UBO reads

2019-06-21 Thread Alyssa Rosenzweig
UBOs and uniforms now use a common code path with an explicit `index` argument passed, enabling UBO reads. Signed-off-by: Alyssa Rosenzweig --- .../panfrost/midgard/midgard_compile.c| 65 +++ 1 file changed, 51 insertions(+), 14 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 9/9] panfrost: Allow up to 16 UBOs

2019-06-21 Thread Alyssa Rosenzweig
This is the hardware max, as far as I can tell. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index

Re: [Mesa-dev] [PATCH] panfrost: Maintain a whitelist of supported GPU's

2019-06-24 Thread Alyssa Rosenzweig
> +if (!supported_gpu) { > +fprintf(stderr, "Unsupported GPU\n"); > +free(screen); > +return NULL; > +} End users may see this. Is it better to silently fail or to print a message that Panfrost isn't loaded (either way, the swrast wou

[Mesa-dev] [PATCH 00/20] panfrost: Mipmapping! (and other goodies)

2019-06-24 Thread Alyssa Rosenzweig
Texturing is very broken, especially anywhere mipmapping is involved, revolving around issues blitting and bugs with AFBC. Let's fix this :) Several hundred dEQP-GLES2 tests are now passing; see the updated failures list at the end of the series. Alyssa Rosenzweig (20): panfrost: Di

[Mesa-dev] [PATCH 01/20] panfrost: Disable mipmapping if necessary

2019-06-24 Thread Alyssa Rosenzweig
If a mipfilter is not set, it's legal to have an incomplete mipmap; we should handle this accordingly. An "easy way out" is to rig the LOD clamps. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 16 1 file changed, 16 insertions

[Mesa-dev] [PATCH 06/20] panfrost: Enable blitting

2019-06-24 Thread Alyssa Rosenzweig
Now that all the prerequisites breaking u_blitter are fixed, we can finally hook up panfrost_blit. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_blit.c | 4 1 file changed, 4 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_blit.c b/src/gallium/drivers

[Mesa-dev] [PATCH 04/20] panfrost/midgard: Implement texelFetch (2D only)

2019-06-24 Thread Alyssa Rosenzweig
txf instructions can result from blits, so handle them rather than crash. Only works for 2D textures (not even 2D array texture) due to a register allocation constraint that may not be sorted for a while. Signed-off-by: Alyssa Rosenzweig --- .../panfrost/midgard/midgard_compile.c| 41

[Mesa-dev] [PATCH 07/20] panfrost: Enable mipmapping

2019-06-24 Thread Alyssa Rosenzweig
Now the autogeneration of mipmaps is working (via u_blitter), we can finally enable mipmaps! Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src

[Mesa-dev] [PATCH 03/20] panfrost: Skip flushes only for wallpapers, not any blit

2019-06-24 Thread Alyssa Rosenzweig
We need the flush from u_blitter for a normal blit (e.g. for mipmaps); it's only wallpaper-related blits that are special-cased. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ga

[Mesa-dev] [PATCH 08/20] panfrost: Z/S can't be tiled

2019-06-24 Thread Alyssa Rosenzweig
As far as we know, Utgard-style tiling only works for color render targets, not depth/stencil, so ensure we don't try to tile it (rather than compress or plain old linear) and drive ourselves into a corner. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_resource.

[Mesa-dev] [PATCH 02/20] panfrost: Handle generate_mipmap ourselves

2019-06-24 Thread Alyssa Rosenzweig
both before and after generating a mipmap since our usual set_framebuffer_state flushing isn't quite there yet. Ideally better optimizations would save the flush but I digress. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_resource.c | 52 + src/galli

[Mesa-dev] [PATCH 05/20] panfrost: Allow texelFetch for wallpaper blits

2019-06-24 Thread Alyssa Rosenzweig
We just implemented the routine; we may as well use it. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_blit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_blit.c b/src/gallium/drivers/panfrost/pan_blit.c index

[Mesa-dev] [PATCH 12/20] panfrost: Sanity check layer

2019-06-24 Thread Alyssa Rosenzweig
It doesn't make sense to try to render to multiple array elements at once. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_mfbd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/panfrost/pan_mfbd.c b/src/gallium/drivers/panfrost/pan_mfbd.c

[Mesa-dev] [PATCH 10/20] panfrost: Use get_texture_address for framebuffer computations

2019-06-24 Thread Alyssa Rosenzweig
Allows for sharing some code as well as theoretically allowing cubemap rendering. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 19 --- src/gallium/drivers/panfrost/pan_mfbd.c | 11 +-- src/gallium/drivers/panfrost/pan_resource.c

[Mesa-dev] [PATCH 14/20] panfrost: Clamp tile coordinates before job submission

2019-06-24 Thread Alyssa Rosenzweig
Fixes TILE_RANGE_FAULT raised on some tests in dEQP-GLES3.functional.fbo.blit.* Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_fragment.c | 20 1 file changed, 20 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_fragment.c b/src/gallium

[Mesa-dev] [PATCH 16/20] panfrost: Merge checksum buffer with main BO

2019-06-24 Thread Alyssa Rosenzweig
This is similar to the AFBC merge; now all (non-imported) buffers use a common backing buffer. Reenables checksumming, eliminating a performance regression. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 16 -- src/gallium/drivers/panfrost/pan_drm.c

[Mesa-dev] [PATCH 13/20] panfrost: Use dedicated u_blitter context for wallpapers

2019-06-24 Thread Alyssa Rosenzweig
off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_blit.c| 40 -- src/gallium/drivers/panfrost/pan_context.c | 6 src/gallium/drivers/panfrost/pan_context.h | 8 + 3 files changed, 35 insertions(+), 19 deletions(-) diff --git a/src/gallium/driv

[Mesa-dev] [PATCH 15/20] panfrost/decode: Limit MRT blend count

2019-06-24 Thread Alyssa Rosenzweig
I thought I already fixed this. Maybe that was a dream...? Then again, I might be dreaming now. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pandecode/decode.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/panfrost

[Mesa-dev] [PATCH 09/20] panfrost: Merge AFBC slab with BO backing

2019-06-24 Thread Alyssa Rosenzweig
AFBC (and checksumming) in the meantime to avoid functional regressions, as we don't know _a priori_ if we'll need to access a resource from software (which is not yet hooked up with AFBC) and we don't yet have routines to switch the layout of a BO at runtime. Signed-off-by: Alyssa Rosenzweig

[Mesa-dev] [PATCH 20/20] panfrost/midgard: Fixup NIR texture op

2019-06-24 Thread Alyssa Rosenzweig
In a vertex shader, a tex op should map to txl, as there *must* be a LOD given to the hardware (implicitly or explicitly). Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/midgard/midgard_compile.c | 8 1 file changed, 8 insertions(+) diff --git a/src/gallium/drivers

[Mesa-dev] [PATCH 11/20] panfrost: Divide array_size by 6 for cubemaps

2019-06-24 Thread Alyssa Rosenzweig
Addresses the disparity between Mali and Gallium definitions of array_size. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost

[Mesa-dev] [PATCH 17/20] panfrost: Support (non-)seamless cube maps

2019-06-24 Thread Alyssa Rosenzweig
Identify the seamless cubemap bit and passthrough the Gallium state rather than setting unconditionally. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/include/panfrost-job.h | 5 +++-- src/gallium/drivers/panfrost/pan_context.c | 2 +- src/gallium/drivers/panfrost

[Mesa-dev] [PATCH 19/20] panfrost/ci: Update failures list

2019-06-24 Thread Alyssa Rosenzweig
A ton of tests were fixed by this series. A few were incorrectly passing before (QualityError, for instance) and now are explicitly failing. A few legitimate regressions but overwhelmingly positive. Signed-off-by: Alyssa Rosenzweig --- .../drivers/panfrost/ci/expected-failures.txt | 304

[Mesa-dev] [PATCH 18/20] panfrost/midgard: Set magic flag for vertex textures

2019-06-24 Thread Alyssa Rosenzweig
Let's match the blob. It's not clear what exactly this controls yet, though. Signed-off-by: Alyssa Rosenzweig --- .../drivers/panfrost/midgard/midgard_compile.c | 13 + 1 file changed, 13 insertions(+) diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compil

[Mesa-dev] [PATCH 2/2] panfrost: Replace varyings for point sprites

2019-06-24 Thread Alyssa Rosenzweig
This doesn't handle Y-flipping, but it's good enough to render the stars in Neverball. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 28 +- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/gallium/driver

[Mesa-dev] [PATCH 0/2] panfrost: Point sprites

2019-06-24 Thread Alyssa Rosenzweig
A pretty basic implementation of half of point sprites. No coordinate flipping (either from the FB transform or from the sprite coord key). Probably room for optimizations. Just enough to make the stars show up in neverball, basically. Alyssa Rosenzweig (2): panfrost: Track point sprites in

[Mesa-dev] [PATCH 1/2] panfrost: Track point sprites in fragment shader key

2019-06-24 Thread Alyssa Rosenzweig
In preparation for lowering point sprites, track them like we track alpha testing state. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 39 -- src/gallium/drivers/panfrost/pan_context.h | 3 ++ 2 files changed, 39 insertions(+), 3

Re: [Mesa-dev] [PATCH 1/4] panfrost/decode: Print AFBC struct when appropriate

2019-06-25 Thread Alyssa Rosenzweig
This series is: Reviewed-by: Alyssa Rosenzweig --- I will caution you about the fault_pointer -- it doesn't do what you think it does. I once spent about a week chasing a bug in the FBD, since that's what the fault_pointer said. It was in the mali_viewport. It was the right *job* --

[Mesa-dev] [PATCH] panfrost: Rewrite u-interleaving code

2019-06-25 Thread Alyssa Rosenzweig
Rather than using a magic lookup table with no explanations, let's add liberal comments to the code to explain what this tiling scheme is and how to encode/decode it efficiently. It's not so mysterious after all -- just reordering bits with some XORs thrown in. Signed-off-by: Alyssa

[Mesa-dev] [PATCH] panfrost: Rewrite u-interleaving code

2019-06-25 Thread Alyssa Rosenzweig
identifier. Fix spelling error. Switch space_4 to a LUT. Fix comment typo. Use LUT instead of space_x tricks. Fallback on generic rather than split up unaligned writes. Signed-off-by: Alyssa Rosenzweig Cc: Vasily Khoruzhick --- src/panfrost/shared/pan_tiling.c | 290 -

[Mesa-dev] [PATCH] panfrost: Update copyright identifiers

2019-06-25 Thread Alyssa Rosenzweig
"Collabora, Ltd." should be listed in lieu of simply "Collabora" Signed-off-by: Alyssa Rosenzweig Suggested-by: Daniel Stone --- src/gallium/drivers/panfrost/include/panfrost-job.h| 2 +- src/gallium/drivers/panfrost/midgard/midgard_ra.c | 2 +- src/gall

Re: [Mesa-dev] [PATCH] panfrost: Remove unneeded check in panfrost_scissor_culls_everything()

2019-06-26 Thread Alyssa Rosenzweig
R-b, thank you signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v4 1/5] egl/android: Delete set_damage_region from egl dri vtbl

2019-06-26 Thread Alyssa Rosenzweig
Acked-by: Alyssa Rosenzweig signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v4 3/5] egl/dri: Use __DRI2_DAMAGE extension for KHR_partial_update

2019-06-26 Thread Alyssa Rosenzweig
Also A-b, should have batched these, heh. signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v4 2/5] dri_interface: add DRI2_BufferDamage interface

2019-06-26 Thread Alyssa Rosenzweig
Also A-b :) signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v4 4/5] st/dri2: Implement DRI2bufferDamageExtension

2019-06-26 Thread Alyssa Rosenzweig
Ah-ha, now we're into parts of the stack I can claim to understand! >:) Reviewed-by: Alyssa Rosenzweig On Tue, Jun 25, 2019 at 06:37:48PM +0200, Boris Brezillon wrote: > From: Daniel Stone > > Add a pipe_screen->set_damage_region() hook to propagate > set-damage-region

Re: [Mesa-dev] [PATCH v4 5/5] panfrost: Add support for KHR_partial_update()

2019-06-26 Thread Alyssa Rosenzweig
Overall, I'm quite happy with how this turns out; I was fearful it would be a lot more complicated, though there's always time for that ;) Some specific comments follow: (mostly minor): --- > +panfrost_blit_wallpaper(struct panfrost_context *ctx, struct

Re: [Mesa-dev] [PATCH v4 5/5] panfrost: Add support for KHR_partial_update()

2019-06-26 Thread Alyssa Rosenzweig
> There's no need to intersect the partial_update region with the > scissor, since rendering outside of the partial_update area is > explicitly undefined. I think the idea is less about need and more about an extra optimization. *Because* that outside rendering is explicitly undefined, it's valid

Re: [Mesa-dev] [PATCH v4 5/5] panfrost: Add support for KHR_partial_update()

2019-06-26 Thread Alyssa Rosenzweig
> > > +/* We set the damage extent to the full resource size but keep > > > the > > > + * damage box empty so that the FB content is reloaded by > > > default. > > > + */ > > > > English, please? Francais, s'il te plait? I'm not too familiar with > > winsys or the e

Re: [Mesa-dev] [PATCH v4 5/5] panfrost: Add support for KHR_partial_update()

2019-06-26 Thread Alyssa Rosenzweig
> The symptom is, black areas around the damage rect when the rendering > area (the area you define in mali_payload_fragment) is not > 32x32-aligned. If you want to test it, remove the "* 2" in the code and > run weston+desktop-shell (the partial_update() logic has been merged > earlier today, so y

Re: [Mesa-dev] [PATCH 1/3] panfrost/ci: Remove batching

2019-06-27 Thread Alyssa Rosenzweig
This series is: Reviewed-by: Alyssa Rosenzweig On Thu, Jun 27, 2019 at 09:10:33AM +0200, Tomeu Vizoso wrote: > Panfrost has grown and doesn't leak as much as before. > > Signed-off-by: Tomeu Vizoso > --- > src/gallium/drivers/panfrost/ci/deqp-runner.sh | 9 ++---

[Mesa-dev] [PATCH 2/7] panfrost: Remove dubious assert

2019-06-27 Thread Alyssa Rosenzweig
We already *can* support texture formats with bpp > 4, so.. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c in

[Mesa-dev] [PATCH 7/7] panfrost: Disable DXT-style texture compression

2019-06-27 Thread Alyssa Rosenzweig
Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_screen.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 17e9287b537..ddb0b7f75fd 100644 --- a/src/gallium

[Mesa-dev] [PATCH 1/7] panfrost: Implement primitive restart

2019-06-27 Thread Alyssa Rosenzweig
For GLES3, just pass the flag through. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 13 + 1 file changed, 13 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 967d7116c24

[Mesa-dev] [PATCH 3/7] panfrost/midgard: Implement integer sampler

2019-06-27 Thread Alyssa Rosenzweig
Turns out one of the magic bits in the texture instruction meant 'float'. Different magic bits mean int and uint then :) Signed-off-by: Alyssa Rosenzweig --- .../drivers/panfrost/midgard/disassemble.c| 22 +++ .../drivers/panfrost/midgard/midgard.h

[Mesa-dev] [PATCH 0/7] panfrost: GLES3 textures (and primitive restart)

2019-06-27 Thread Alyssa Rosenzweig
Just a bit of potpourrie of low-hanging fruit for GLES3 features, e.g. floating-point textures and ES-class primitive restart. Alyssa Rosenzweig (7): panfrost: Implement primitive restart panfrost: Remove dubious assert panfrost/midgard: Implement integer sampler panfrost: Add some

[Mesa-dev] [PATCH 4/7] panfrost: Add some special formats

2019-06-27 Thread Alyssa Rosenzweig
Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/include/panfrost-job.h | 1 + src/gallium/drivers/panfrost/pan_format.c | 5 + 2 files changed, 6 insertions(+) diff --git a/src/gallium/drivers/panfrost/include/panfrost-job.h b/src/gallium/drivers/panfrost

[Mesa-dev] [PATCH 5/7] panfrost/midgard: Fix 3D texture regression

2019-06-27 Thread Alyssa Rosenzweig
Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/midgard/midgard_compile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c index da01c9d6780

[Mesa-dev] [PATCH 6/7] panfrost: Dump unknown formats before aborting

2019-06-27 Thread Alyssa Rosenzweig
Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_format.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/panfrost/pan_format.c b/src/gallium/drivers/panfrost/pan_format.c index 3ab39ed3069..563b381574b 100644 --- a/src/gallium/drivers/panfrost

Re: [Mesa-dev] [PATCH 0/7] panfrost: GLES3 textures (and primitive restart)

2019-06-27 Thread Alyssa Rosenzweig
Maybe at some point? I don't think we support enough yet. signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] panfrost: Only tag AFBC addresses when sampling

2019-06-28 Thread Alyssa Rosenzweig
R-b, *blush* On Fri, Jun 28, 2019 at 09:27:34AM +0200, Tomeu Vizoso wrote: > Rendering to AFBC was broken, as the HW will complaint loudly if we pass > a tagged pointer in bifrost_render_target. > > Signed-off-by: Tomeu Vizoso > Fixes: 3609b50a6443 ("panfrost: Merge AFBC slab with BO backing") >

Re: [Mesa-dev] [PATCH] panfrost: Rewrite u-interleaving code

2019-06-28 Thread Alyssa Rosenzweig
shared/pan_tiling.c > > @@ -2,6 +2,7 @@ > > * Copyright (c) 2011-2013 Luc Verhaegen > > * Copyright (c) 2018 Alyssa Rosenzweig > > * Copyright (c) 2018 Vasily Khoruzhick > > + * Copyright (c) 2019 Collabora, Ltd. > > * > > * Permission

[Mesa-dev] [PATCH v3] panfrost: Rewrite u-interleaving code

2019-06-28 Thread Alyssa Rosenzweig
identifier. Fix spelling error. Switch space_4 to a LUT. Fix comment typo. Use LUT instead of space_x tricks. Fallback on generic rather than split up unaligned writes. v3: Correct stride order (fixes crash loading). Correct coordinate system mishap. Signed-off-by: Alyssa Rosenzweig Reviewed-

[Mesa-dev] [PATCH 1/7] panfrost: Remove ancient comment

2019-07-01 Thread Alyssa Rosenzweig
Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/include/panfrost-job.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/drivers/panfrost/include/panfrost-job.h b/src/gallium/drivers/panfrost/include/panfrost-job.h index 4abff22f33c..444e5ad9e69 100644 --- a

[Mesa-dev] [PATCH 5/7] panfrost/midgard: Emit type appropriate ld_vary

2019-07-01 Thread Alyssa Rosenzweig
Signed-off-by: Alyssa Rosenzweig --- .../panfrost/midgard/midgard_compile.c| 21 +-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c index

[Mesa-dev] [PATCH 7/7] panfrost: Implement instanced rendering

2019-07-01 Thread Alyssa Rosenzweig
simplify instancing code paths dramatically. This might be a performance regression, but this remains to be seen; if so, we can always deduplicate later with some added logic in pan_instancing.c Signed-off-by: Alyssa Rosenzweig --- .../drivers/panfrost/include/panfrost-job.h | 16 +- src

[Mesa-dev] [PATCH 4/7] panfrost/midgard: Add unsigned ld/st ops

2019-07-01 Thread Alyssa Rosenzweig
Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/midgard/midgard.h | 4 src/gallium/drivers/panfrost/midgard/midgard_compile.c | 4 +++- src/gallium/drivers/panfrost/midgard/midgard_ops.c | 4 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a

[Mesa-dev] [PATCH 6/7] panfrost/decode: Compute padded_num_vertices for MODULO

2019-07-01 Thread Alyssa Rosenzweig
Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pandecode/decode.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/panfrost/pandecode/decode.c b/src/gallium/drivers/panfrost/pandecode/decode.c index 129e769cace

[Mesa-dev] [PATCH 3/7] panfrost/midgard: Use the appropriate ld_attr type

2019-07-01 Thread Alyssa Rosenzweig
Signed-off-by: Alyssa Rosenzweig --- .../panfrost/midgard/midgard_compile.c| 20 +++ 1 file changed, 20 insertions(+) diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c index 13f4ed9e283

[Mesa-dev] [PATCH 2/7] panfrost: Implement dispatch helpers

2019-07-01 Thread Alyssa Rosenzweig
Rather than open-coding workgroups_shift_* type fields, we include a general routine for packing the vertex/tiler/compute descriptor based on the provided dispatch parameters. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/meson.build | 1 + src/gallium/drivers

Re: [Mesa-dev] [PATCH 7/7] panfrost: Implement instanced rendering

2019-07-01 Thread Alyssa Rosenzweig
> If you're interested, nouveau has logic to optionally go the shared > (1:N) or non-shared (1:1) way of doing it. Have a look at nvc0_vbo.c > if you're curious -- look for mentions of "shared". Hmm, I see. A bit more complex than I was hoping for the moment. signature.asc Description: PGP signa

Re: [Mesa-dev] [PATCH] panfrost: Add the sampled texture BO to the job

2019-07-01 Thread Alyssa Rosenzweig
> > @@ -848,6 +850,7 @@ panfrost_upload_tex( > for (unsigned l = first_level; l <= last_level; ++l) { > for (unsigned f = first_layer; f <= last_layer; ++f) { > > +panfrost_job_add_bo(job, rsrc->bo); > view->hw.payload[i

Re: [Mesa-dev] [PATCH v2] panfrost: Add the sampled texture BO to the job

2019-07-01 Thread Alyssa Rosenzweig
R-b, thank you! :) On Mon, Jul 01, 2019 at 07:04:44PM +0200, Boris Brezillon wrote: > Otherwise we get random use-after-{free,unmap} errors. > > Signed-off-by: Boris Brezillon > --- > Changes in v2: > - Move the panfrost_job_add_bo() call out of the loop > --- > src/gallium/drivers/panfrost/pan

Re: [Mesa-dev] [PATCH 05/10] panfrost: Move BO meta-data out of panfrost_bo

2019-07-02 Thread Alyssa Rosenzweig
Oh, not controversial at all, I'm quite happy with this! Just a question -- I remember some panfrost_resources didn't have a bo but had a winsys thingy instead. How does that interact? On Tue, Jul 02, 2019 at 03:23:48PM +0200, Boris Brezillon wrote: > That's what most (all?) implementation seem to

Re: [Mesa-dev] [PATCH 00/10] panfrost: Try to make BO handling more consistent

2019-07-02 Thread Alyssa Rosenzweig
I haven't checked the logic extensively, but provided CI/Tomeu is happy, oatches 1-4 are: Reviewed-by: Alyssa Rosenzweig On Tue, Jul 02, 2019 at 03:23:43PM +0200, Boris Brezillon wrote: > Hello, > > This patch series is an attempt at making memory allocation more &

Re: [Mesa-dev] [PATCH 06/10] panfrost: Avoid passing winsys handles to import/export BO funcs

2019-07-02 Thread Alyssa Rosenzweig
Question: Does this allow us to map arbitrary CPU buffers into GPU space? Stuff with no relation to the winsys, just... arbitrary user memory? That might be useful for index/vertex buffers (which we currently are forced to memcpy() into a BO we create if given a user pointer rather than a resource)

Re: [Mesa-dev] [PATCH 07/10] panfrost: Move the mmap BO logic out of panfrost_drm_import_bo()

2019-07-02 Thread Alyssa Rosenzweig
A-b, let's wait for Tomeu on these few signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 08/10] panfrost: Add the panfrost_drm_{create, release}_bo() helpers

2019-07-02 Thread Alyssa Rosenzweig
A-b signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 09/10] panfrost: Make SLAB pool creation rely on BO helpers

2019-07-02 Thread Alyssa Rosenzweig
R-b, thank you! On Tue, Jul 02, 2019 at 03:23:52PM +0200, Boris Brezillon wrote: > There's no point duplicating the code, and it will help us simplify > the bo_handles[] filling logic in panfrost_drm_submit_job(). > > Signed-off-by: Boris Brezillon > --- > src/gallium/drivers/panfrost/pan_alloc

Re: [Mesa-dev] [PATCH 10/10] panfrost: Pass referenced BOs to the SUBMIT ioctls

2019-07-02 Thread Alyssa Rosenzweig
R-b with pleasure! I'm not sure why we didn't get around to this earlier, but this is awesome. Thank you! :) On Tue, Jul 02, 2019 at 03:23:53PM +0200, Boris Brezillon wrote: > Instead of manually adding the BOs from the various SLAB pools plus > the one backing the color FB, we insert them in the B

Re: [Mesa-dev] [PATCH 06/10] panfrost: Avoid passing winsys handles to import/export BO funcs

2019-07-02 Thread Alyssa Rosenzweig
> > Stuff with no relation to the winsys, just... arbitrary user > > memory? > > Nope, I don't think so. That might work if you allocate things through > udmabuf, but then you're better off allocating a BO directly. Alright, no worries, I was just curious. signature.asc Description: PGP signat

Re: [Mesa-dev] [PATCH 05/10] panfrost: Move BO meta-data out of panfrost_bo

2019-07-02 Thread Alyssa Rosenzweig
:+1:, A-b signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 09/10] panfrost: Make SLAB pool creation rely on BO helpers

2019-07-02 Thread Alyssa Rosenzweig
> We need a wrapper that contains a BO plus a pb_slab object for > SLAB-based allocations (allocation of sub-page-size objects), that's > exactly what panfrost_memory is right now. We can rename it if you > like, but I don't think we can get rid of it. Eventually I do think we'll want to toss thes

Re: [Mesa-dev] [PATCH v5 5/5] panfrost: Add support for KHR_partial_update()

2019-07-02 Thread Alyssa Rosenzweig
Very nice work! Reviewed-by: Alyssa Rosenzweig On Tue, Jul 02, 2019 at 03:50:02PM +0200, Boris Brezillon wrote: > Implement ->set_damage_region() region to support partial updates. > > This is a dummy implementation in that it does not try to merge > damage rects. It also doe

Re: [Mesa-dev] [RFC PATCH] mesa: Export BOs in RW mode

2019-07-03 Thread Alyssa Rosenzweig
> Since the same discussion is happening with etnaviv: Why exactly does mesa > need to mmap imported buffers? The golden question! Seemingly, (one of the) reasons is that the state tracker does colourspace conversion in software if the winsys wants a format that the driver doesn't advertise. Unre

Re: [Mesa-dev] [PATCH 1/3] panfrost: Cache BO imports

2019-07-05 Thread Alyssa Rosenzweig
> struct panfrost_bo { > -struct pipe_reference reference; > +int refcnt; > > /* Mapping for the entire object (all levels) */ Why are we open-coding this instead of using pipe_reference? > +pthread_mutex_lock(&screen->handle_table_lock); > +_mesa_hash_

Re: [Mesa-dev] [PATCH 2/3] panfrost: Allocate scanout BOs in panfrost device

2019-07-05 Thread Alyssa Rosenzweig
> +bool should_tile = !is_streaming && is_texture && is_2d && > !is_scanout; I'm not opposed, but why can't we tile PIPE_BIND_SHARED textures? lima does exactly that. If we can't tile them, we certainly can't AFBC them. signature.asc Description: PGP signature __

Re: [Mesa-dev] [PATCH 3/3] panfrost: Add support for modifiers

2019-07-05 Thread Alyssa Rosenzweig
> + switch(whandle->modifier) { > + case DRM_FORMAT_MOD_ARM_AFBC(AFBC_FORMAT_MOD_ROCKCHIP): > + rsc->layout = PAN_AFBC; > + break; Why ROCKCHIP in particular? AFBC fourcc codes are based on modifiers, and there are a *lot* of them. We need to figure out which upstre

Re: [Mesa-dev] [PATCH 3/3] panfrost: Add support for modifiers

2019-07-05 Thread Alyssa Rosenzweig
> Again, the winsys just pulls the list of acceptable format/modifier > pairs from the EGL format query. If Panfrost declares 1555+AFBC to be > a supported combination, then the winsys will pass that on for clients > to use. If it isn't working, my suggestion is to just never advertise > it in the

Re: [Mesa-dev] [PATCH 2/3] panfrost: Allocate scanout BOs in panfrost device

2019-07-05 Thread Alyssa Rosenzweig
Ah, sure. Thank you for clarifying! signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] panfrost: Use standard ALIGN_POT/INFINITY macros

2019-07-05 Thread Alyssa Rosenzweig
We had vendored duplicates from pre-Mesa days; clean that up. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_afbc.c | 6 +++--- src/gallium/drivers/panfrost/pan_allocate.c | 4 ++-- src/gallium/drivers/panfrost/pan_allocate.h | 6 -- src/gallium/drivers

[Mesa-dev] [PATCH 03/42] panfrost: Extend clear colour packing

2019-07-08 Thread Alyssa Rosenzweig
for the hardware, but works for many formats and is a sane default for the moment.) Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_job.c | 86 + src/gallium/drivers/panfrost/pan_job.h | 8 ++- src/gallium/drivers/panfrost/pan_mfbd.c | 18

[Mesa-dev] [PATCH 01/42] panfrost: Prepare some code for MRT

2019-07-08 Thread Alyssa Rosenzweig
Full MRT support is a while away, but in the mean time, we can remove code that explicitly assumes nr_cbufs <= 0, to minimize the obstacles we'll face later when we add the whole thing. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_contex

[Mesa-dev] [PATCH 09/42] panfrost/midgard: Move blend type conversion into NIR

2019-07-08 Thread Alyssa Rosenzweig
Now that we have u2u8 implemented, we can move everything up into NIR and eliminate the silly "blend epilogue" (no such thing; it's just a fragment epilogue). Signed-off-by: Alyssa Rosenzweig --- .../panfrost/midgard/midgard_compile.c| 63 +-- .../p

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