[Mesa-dev] [PATCH 0/2] nouveau: Add support for EXT_external_objects

Miguel A. Vico mvicomoya at nvidia.com
Fri Jun 22 02:01:44 UTC 2018


Hi,

These patches have been sitting in my local tree for some time now. They
are kind of related to the Generic Allocator work, but not specific to it.

James Jones's original kmscube port
(https://gitlab.freedesktop.org/allocator/kmscube) relies on the
EXT_external_objects extension to import allocator allocations to OpenGL as a
texture object. However, the Nouveau implementation of these mechanisms is
missing in Mesa.

These two patches will implement and enable the extension on both nv50 and nvc0.

Hoping to get them merged as I believe they might be useful regardless.

You can also check these changes on Gitlab here:

  https://gitlab.freedesktop.org/mvicomoya/mesa/tree/wip/EXT_external_objects-nouveau

Thanks,
Miguel.


Miguel A. Vico (2):
      nouveau: Add basic memory object support
      nouveau: Enable support for EXT_external_objects

 src/gallium/drivers/nouveau/nv50/nv50_miptree.c  | 49 +++++++++++++++++++++++++++++++++++++++----------
 src/gallium/drivers/nouveau/nv50/nv50_resource.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/gallium/drivers/nouveau/nv50/nv50_resource.h | 33 +++++++++++++++++++++++++++++++++
 src/gallium/drivers/nouveau/nv50/nv50_screen.c   |  2 +-
 src/gallium/drivers/nouveau/nvc0/nvc0_resource.c | 22 ++++++++++++++++++++++
 src/gallium/drivers/nouveau/nvc0/nvc0_screen.c   |  2 +-
 6 files changed, 148 insertions(+), 12 deletions(-)




More information about the mesa-dev mailing list