summaryrefslogtreecommitdiff
path: root/tegra
AgeCommit message (Collapse)AuthorFilesLines
2018-05-02tests: tegra: Add VIC supportThierry Reding3-0/+6
Implement a small abstraction interface to allow different versions of VIC to be used transparently. An operations structure is selected based on the VIC version number reported by the DRM_TEGRA_IOCTL_OPEN_CHANNEL IOCTL. Signed-off-by: Thierry Reding <treding@nvidia.com>
2018-05-02tegra: Add PRIME support helpersThierry Reding2-0/+65
These helpers facilitate exporting and importing buffer objects to and from PRIME file descriptors. Signed-off-by: Thierry Reding <treding@nvidia.com>
2018-05-02tegra: Add flink helpersThierry Reding2-0/+53
Add helpers to export and import buffer objects via flink names. Signed-off-by: Thierry Reding <treding@nvidia.com>
2018-05-02tegra: Extract common buffer object allocation codeThierry Reding1-14/+23
All of the buffer object allocation functions use the same boilerplate code. Move that code into a separate function that can be reused. Signed-off-by: Thierry Reding <treding@nvidia.com>
2018-05-02tegra: Add API to wait for job completionThierry Reding3-39/+159
The API uses fences emitted by the job submission to wait for the completion of the job. Signed-off-by: Thierry Reding <treding@nvidia.com>
2018-05-02tegra: Allow channels to return a versionThierry Reding3-0/+8
When opening a channel, allow a version number to be returned so that userspace can parameterize based on it, rather than having to guess a version from the environment. Signed-off-by: Thierry Reding <treding@nvidia.com>
2018-05-02WIP: tegra: Update for de-staged ABIThierry Reding7-237/+324
Signed-off-by: Thierry Reding <treding@nvidia.com>
2018-05-02tegra: Add channel, job, pushbuf and fence APIsThierry Reding9-1/+704
These functions can be used to open channels to engines, manage job submissions, create push buffers to store command streams in and wait until jobs have been completed. Signed-off-by: Thierry Reding <treding@nvidia.com> --- Changes in v2: - automatically allocate buffer objects as required by pushbuffers - pushbuffers can now have more than one associated buffer object - add drm_tegra_pushbuf_prepare() function
2018-05-02tegra: Indent according to .editorconfigThierry Reding3-186/+186
Signed-off-by: Thierry Reding <treding@nvidia.com>
2018-03-20meson,configure: include config.h automaticallyEric Engestrom1-4/+0
This will prevent any more missing `#include "config.h"` bug, at the cost of having to recompile some files that didn't need to be when changing build options. Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2018-03-09meson: use pkg-config to detect libatomic_opsEric Engestrom1-1/+1
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2018-02-23*-symbol-check: Don't hard-code nm executableHeiko Becker2-1/+2
Helpful if your nm executable has a prefix based on the architecture, for example. Signed-off-by: Heiko Becker <heirecka@exherbo.org> Cc: Timo Gurr <timo.gurr@gmail.com> [Eric: v2: rebase and add Meson support] Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2018-01-12Add meson build systemDylan Baker1-0/+52
This patch adds a complete meson build system, including tests and install. It has the necessary hooks to allow it be used as a subproject for other meson based builds such as mesa. Signed-off-by: Dylan Baker <dylan.c.baker@intel.com> Reviewed-and-tested-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
2017-04-03tegra: update symbol-checkErik Faye-Lund1-2/+5
I get a few more symbols in my build tegra-libraries, so let's include these in the whitelist as well. While we're at it, update the comment at the top. Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2015-04-28drm: remove drm_public macroEmil Velikov1-13/+0
Some compilers (like the Oracle Studio), require that the function declaration must be annotated with the same visibility attribute as the definition. As annotating functions with drm_public is no longer required just remove the macro. Cc: Ben Skeggs <bskeggs@redhat.com> Cc: Damien Lespiau <damien.lespiau@intel.com> Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com> Cc: Michel Dänzer <michel.daenzer@amd.com> Cc: Rob Clark <robdclark@gmail.com> Cc: Thierry Reding <treding@nvidia.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-04-28drm: remove no longer needed VISIBILITY_CFLAGSEmil Velikov1-1/+0
With earlier commits we've annotated the private symbols, thus we no longer require the -fvisibility=hidden CFLAGS. Cc: Ben Skeggs <bskeggs@redhat.com> Cc: Damien Lespiau <damien.lespiau@intel.com> Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com> Cc: Michel Dänzer <michel.daenzer@amd.com> Cc: Rob Clark <robdclark@gmail.com> Cc: Thierry Reding <treding@nvidia.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-04-28drm: rename libdrm{,_macros}.hEmil Velikov1-1/+1
Provide a more meaningful name, considering what it does. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-04-28tegra: add symbols testEmil Velikov2-0/+33
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2014-11-27tegra: Implement drm_tegra_bo_{get,set}_tiling()Thierry Reding2-0/+61
These two functions are simple wrappers around the corresponding IOCTLs and operate on drm_tegra_bo objects. Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-11-27tegra: Implement drm_tegra_bo_{get,set}_flags()Thierry Reding2-0/+49
These two functions are simple wrappers around the corresponding IOCTLs and operate on drm_tegra_bo objects. Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-11-27libdrm: Add NVIDIA Tegra supportThierry Reding6-0/+381
Add the libdrm_tegra helper library to encapsulate Tegra-specific interfaces to the DRM. Furthermore, Tegra is added to the list of supported chips in the modetest and vbltest programs. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>