From: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
Cc: "nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
<nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>,
Ben Skeggs <bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
"mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
<mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: nv3x libreoffice impress opengl animations not working
Date: Wed, 2 Sep 2015 11:48:15 +0200 [thread overview]
Message-ID: <55E6C5DF.6010100@redhat.com> (raw)
In-Reply-To: <CAKb7UvihbT+Uf2h2wA=iLkhuYjmRWM6h+=sk-vagkL4mt7-5xg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi Ilia
On 31-08-15 18:30, Ilia Mirkin wrote:
> On Mon, Aug 31, 2015 at 8:58 AM, Hans de Goede <hdegoede@redhat.com> wrote:
<snip>
>> Interestingly enough nv30_screen_get_param returns 0 for
>> PIPE_CAP_TEXTURE_MULTISAMPLE and for PIPE_CAP_SAMPLER_VIEW_TARGET
>>
>> And this hack:
>>
>> --- a/src/gallium/drivers/nouveau/nv30/nv30_screen.c
>> +++ b/src/gallium/drivers/nouveau/nv30/nv30_screen.c
>> @@ -319,7 +319,7 @@ nv30_screen_is_format_supported(struct pipe_screen
>> *pscreen,
>> unsigned sample_count,
>> unsigned bindings)
>> {
>> - if (sample_count > 4)
>> + if (sample_count > 0)
>> return false;
>> if (!(0x00000017 & (1 << sample_count)))
>> return false;
>>
>> Fixes the slide animation misrendering (and sometimes crashing)
>> in libreoffice impress.
>>
>> As said I think this is a hack, I currently do not understand things
>> good enough to come up with a better fix.
>>
>> Hints how to further investigate this are appreciated.
>
> Not surprising that ms gets somehow messed up.
> PIPE_CAP_TEXTURE_MULTISAMPLE == ARB_texture_multisample, aka allowing
> the existence of MS textures (as opposed to just renderbuffers) as
> well as sampling from those textures. nv30 does not support the
> latter. The "other" way to do MS is to create a MS visual. You can run
> glretrace --samples=4 to get the same effect.
>
> Of course I don't really see how MS can work at all with nv30 since it
> doesn't support a resolve step:
>
> if (info.src.resource->nr_samples > 1 &&
> info.dst.resource->nr_samples <= 1 &&
> !util_format_is_depth_or_stencil(info.src.resource->format) &&
> !util_format_is_pure_integer(info.src.resource->format)) {
> debug_printf("nv30: color resolve unimplemented\n");
> return;
> }
>
> Perhaps there's (supposed to be) some magic with the MSAA visual? Do
> you see that print happening?
Yes I see that print happening and that explains the misrendering I'm
seeing pretty well, it is not misrendering at all, it is just random
data from the video mem.
I've had a quick talk about this with Ben, he suggested using
the SCALED_IMAGE_FROM_MEMORY object class, as that is what the blob
is doing.
I've done some digging through the code and this translates to the
"sfim" object in the gallium nv30 code. I was wondering if I cannot
just simple call nv30_transfer_rect with the right parameters and
let it sort the blit out ?
Regards,
Hans
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
next prev parent reply other threads:[~2015-09-02 9:48 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-27 13:09 gallium state tracker calls calloc for 0 sizes arrays ? Hans de Goede
2015-08-27 13:46 ` Marek Olšák
[not found] ` <CAAxE2A5GenNVbaFo9cV=U_FOkavpo=o5dHHQkqeBZpG0bqhggQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-27 17:55 ` [Mesa-dev] " Hans de Goede
2015-08-27 17:59 ` Alex Deucher
2015-08-27 18:19 ` [Nouveau] " Ilia Mirkin
2015-08-28 8:54 ` nv3x libreoffice impress opengl animations not working Hans de Goede
2015-08-28 9:02 ` Ilia Mirkin
[not found] ` <CAKb7UvjGWMSDc2fpHpXWw9F7uQabmh1trUQJSbG9JVQBKPSm4Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-31 12:58 ` Hans de Goede
[not found] ` <55E44F79.8000800-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-08-31 16:30 ` Ilia Mirkin
[not found] ` <CAKb7UvihbT+Uf2h2wA=iLkhuYjmRWM6h+=sk-vagkL4mt7-5xg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-02 9:48 ` Hans de Goede [this message]
[not found] ` <55E6C5DF.6010100-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-02 14:44 ` Ilia Mirkin
2015-09-03 11:09 ` Hans de Goede
[not found] ` <55E82A52.5040705-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-09-03 17:36 ` Ilia Mirkin
2015-09-04 12:37 ` Hans de Goede
[not found] ` <55E021A9.7070700-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-08-28 11:01 ` Marek Olšák
[not found] ` <CAAxE2A5EDWp9n_xmpMy8zF81yPgM1R409qNEWxek5N96RE05Bg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-28 11:04 ` Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55E6C5DF.6010100@redhat.com \
--to=hdegoede-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org \
--cc=mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.