All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Ilia Mirkin <imirkin@alum.mit.edu>, Alex Deucher <alexdeucher@gmail.com>
Cc: "nouveau@lists.freedesktop.org" <nouveau@lists.freedesktop.org>,
	Ben Skeggs <bskeggs@redhat.com>,
	"mesa-dev@lists.freedesktop.org" <mesa-dev@lists.freedesktop.org>
Subject: nv3x libreoffice impress opengl animations not working
Date: Fri, 28 Aug 2015 10:54:01 +0200	[thread overview]
Message-ID: <55E021A9.7070700@redhat.com> (raw)
In-Reply-To: <CAKb7Uvg3WVzivjrvsMg2afQPvF4+4SK8AkqBa-5q0G2eRyfhVQ@mail.gmail.com>

Hi,

On 27-08-15 20:19, Ilia Mirkin wrote:
> On Thu, Aug 27, 2015 at 1:59 PM, Alex Deucher <alexdeucher@gmail.com> wrote:

<snip>

>>>>> 2) Since the glretrace does work outside of libreoffice impress, I think
>>>>> it may have something to do with the visual chosen by libreoffice
>>>>> impress,
>>>>> is there an easy way to find out what visual lo is choosing?
>>>>
>>>>
>>>> No, it's not because of the visual. It seems to me that libreoffice
>>>> changed the behavior of malloc and calloc.
>>>
>>>
>>> I'm pretty sure that this is not libreoffice changing malloc / calloc,
>>> it links normally to libc, and the same slide transition works fine
>>> with an nv84 card which also has a gallium based mesa driver.
>>>
>>> I really believe this is due to libreoffice doing something opengl
>>> related differently then glretrace, be it the visual or something else
>>> back buffer related ...
>>>
>>
>> Does libreoffice use llvm?  I have vague recollections of there being
>> issues with llvm and libreoffice in the past because radeonsi uses
>> llvm as well.
>
> FWIW the nv30 gallium driver will only use llvm as part of 'draw' when
> falling back to the swtnl path. This should be extremely rare. But
> easy enough to build mesa with --disable-gallium-llvm to double-check
> (or what was the env var? DRAW_USE_LLVM=0 or something along those
> lines).

I've tried building with --disable-gallium-llvm, this does not help,
this is not really surprising since on Fedora both libreoffice and
mesa use the system llvm, so there should be no problems with them
expecting different llvm versions.

I've done some further debugging adding some debug printf-s to the
texture creation paths for nv3x, this bit is interesting, glretrace
does:

nv30_miptree_from_handle 1350x863 uniform_pitch 6144 usage 0 flags 0
nv30_miptree_create 1350x863 uniform_pitch 5440 usage 0 flags 0 bind 1 target 2

So it gets a texture from a handle, which I believe is the child-window
in which the animation will be shown, and then create another texture
with the same dimensions to serve as back buffer I presume.

ooimpress however does this:

nv30_miptree_from_handle 1350x863 uniform_pitch 6144 usage 0 flags 0
nv30_miptree_create 2700x1726 uniform_pitch 10816 usage 0 flags 0 bind a target 2
nv30_miptree_create 2700x1726 uniform_pitch 10816 usage 0 flags 0 bind 1 target 2

Notice how it is creating 2 (back?) buffers and they are twice the size of
the "sheet" area of impress to which the animation gets rendered.

I believe this is a clue to the root cause of the problem, but after this
I'm sorta stuck. Anyone got any hints on how to debug this further / where
to look ?

Thanks & Regards,

Hans
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

  reply	other threads:[~2015-08-28  8:54 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           ` Hans de Goede [this message]
2015-08-28  9:02             ` nv3x libreoffice impress opengl animations not working 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
     [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=55E021A9.7070700@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=alexdeucher@gmail.com \
    --cc=bskeggs@redhat.com \
    --cc=imirkin@alum.mit.edu \
    --cc=mesa-dev@lists.freedesktop.org \
    --cc=nouveau@lists.freedesktop.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.