<div dir="auto">What other single component formats are there that aren't covered by the earlier ifs?</div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 9, 2018, 07:49 Karol Herbst <<a href="mailto:kherbst@redhat.com">kherbst@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">just asking, because your commit message more or less hinted towards<br>
that being about r -> srgb conversions, but it makes sense that any<br>
single component blits wouldn't work.<br>
<br>
Reviewed-by: Karol Herbst <<a href="mailto:kherbst@redhat.com" target="_blank" rel="noreferrer">kherbst@redhat.com</a>><br>
<br>
On Tue, Oct 9, 2018 at 1:03 PM Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" target="_blank" rel="noreferrer">imirkin@alum.mit.edu</a>> wrote:<br>
><br>
> Ones that blit to srgb, yes. Couldn't get those to work with the 2d engine.<br>
><br>
> On Tue, Oct 9, 2018, 04:46 Karol Herbst <<a href="mailto:kherbst@redhat.com" target="_blank" rel="noreferrer">kherbst@redhat.com</a>> wrote:<br>
>><br>
>> but this movs all single color blits to the 3d blitter, right?<br>
>> On Sun, Oct 7, 2018 at 11:50 PM Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" target="_blank" rel="noreferrer">imirkin@alum.mit.edu</a>> wrote:<br>
>> ><br>
>> > For some reason the 2d engine can't handle this. Red formats get special<br>
>> > treatment there, so perhaps related.<br>
>> ><br>
>> > Fixes dEQP-GLES3 tests of the form:<br>
>> ><br>
>> > dEQP-GLES3.functional.fbo.blit.conversion.r{8,16f,32f}_to_srgb8_alpha8<br>
>> ><br>
>> > Signed-off-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" target="_blank" rel="noreferrer">imirkin@alum.mit.edu</a>><br>
>> > Cc: <a href="mailto:mesa-stable@lists.freedesktop.org" target="_blank" rel="noreferrer">mesa-stable@lists.freedesktop.org</a><br>
>> > ---<br>
>> > src/gallium/drivers/nouveau/nvc0/nvc0_surface.c | 4 ++++<br>
>> > 1 file changed, 4 insertions(+)<br>
>> ><br>
>> > diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c<br>
>> > index 120f9fe6ab9..03881c62785 100644<br>
>> > --- a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c<br>
>> > +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c<br>
>> > @@ -1617,6 +1617,10 @@ nvc0_blit(struct pipe_context *pipe, const struct pipe_blit_info *info)<br>
>> > else<br>
>> > if (util_format_is_alpha(info->src.format))<br>
>> > eng3d = info->src.format != PIPE_FORMAT_A8_UNORM;<br>
>> > + else<br>
>> > + if (util_format_is_srgb(info->dst.format) &&<br>
>> > + util_format_get_nr_components(info->src.format) == 1)<br>
>> > + eng3d = true;<br>
>> > else<br>
>> > eng3d = !nv50_2d_format_supported(info->src.format);<br>
>> > }<br>
>> > --<br>
>> > 2.16.4<br>
>> ><br>
>> > _______________________________________________<br>
>> > mesa-dev mailing list<br>
>> > <a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank" rel="noreferrer">mesa-dev@lists.freedesktop.org</a><br>
>> > <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>