Hi all,

On 25 April 2016 at 13:46, Daniel Stone <dan...@fooishbar.org> wrote:
> Hi,
>
> On 23 April 2016 at 03:08, Rob Herring <r...@kernel.org> wrote:
>> On Fri, Apr 22, 2016 at 6:32 PM, Emil Velikov <emil.l.veli...@gmail.com> 
>> wrote:
>>> Can we take a look at the GBM gralloc as well. One thing that worries
>>> me is that (most likely) you are requesting/creating a bo without
>>> GBM_BO_USE_WRITE whist using MAP + CPU write UNMAP. If you do set the
>>> USE_WRITE flag, you're getting a dumb buffer, which I'm not sure how
>>> well is going to work.
>>
>> I'm not using GBM_BO_USE_WRITE and that is not a condition for mapping
>> given that flag is tied to cursors (according to comments) and gives
>> dumb buffers. Also of note, if gralloc flags are set for r/w often,
>> then I request a linear buffer. Here's the gralloc side:
>
> Right, I wouldn't take GBM_BO_USE_WRITE to have much of an effect on
> mappings, as it pessimises allocation like you say.
>
Ftr, I'm not objecting as to how things are done. Just saying that
things should be blindly obvious as one reads the documentation alone.
I'm assuming that most people involved are "tainted" (the know to a
level how things are implemented) thus things are clearer for them.

-Emil
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to