[Mesa-dev] [PATCH 11/11] nvc0: fix dri3 prime buffer creation

Ilia Mirkin imirkin at alum.mit.edu
Wed Jun 18 21:06:02 PDT 2014


At the very least, there are Apple MacBooks with NVAC (IGP) and NV96
chips, not sure if there are any intel + nv50 optimus setups. Of
course those laptops actually aren't particularly well-supported by
nouveau atm.

On Wed, Jun 18, 2014 at 11:45 PM, Axel Davy <axel.davy at ens.fr> wrote:
> Is there any non-nvc0 Nvidia cards in hybrid graphics laptops ?
>
> If the answer is yes, then we probably need the same fix for nv50.
>
> On 18/06/2014 23:34, Ilia Mirkin wrote :
>
>> Does nv50 need a similar fix? [BTW note that nv50 the chipset (not the
>> family), is unable to place memtype != 0 buffers into gart. nv84+ are
>> all fine.]
>>
>> On Wed, Jun 18, 2014 at 11:27 PM, Axel Davy <axel.davy at ens.fr> wrote:
>>>
>>> From: Dave Airlie <airlied at gmail.com>
>>>
>>> We need to place shared buffers into GART.
>>>
>>> Signed-off-by: Dave Airlie <airlied at redhat.com>
>>> Reviewed-by: Axel Davy <axel.davy at ens.fr>
>>> ---
>>>   src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c | 2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c
>>> b/src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c
>>> index 79c9390..2f3cba8 100644
>>> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c
>>> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c
>>> @@ -296,7 +296,7 @@ nvc0_miptree_create(struct pipe_screen *pscreen,
>>>      }
>>>      bo_config.nvc0.tile_mode = mt->level[0].tile_mode;
>>>
>>> -   if (!bo_config.nvc0.memtype && pt->usage == PIPE_USAGE_STAGING)
>>> +   if (!bo_config.nvc0.memtype && (pt->usage == PIPE_USAGE_STAGING ||
>>> pt->bind & PIPE_BIND_SHARED))
>>>         mt->base.domain = NOUVEAU_BO_GART;
>>>      else
>>>         mt->base.domain = NOUVEAU_BO_VRAM;
>>> --
>>> 1.9.1
>>>
>>> _______________________________________________
>>> mesa-dev mailing list
>>> mesa-dev at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
>


More information about the mesa-dev mailing list