search for: drm_fd

Displaying 19 results from an estimated 19 matches for "drm_fd".

Did you mean: drm_fb
2020 Mar 18
0
[PATCH i-g-t 4/4] tests: Add nouveau-crc tests
...ER DEALINGS + * IN THE SOFTWARE. + * + */ + +#include "igt.h" +#include "igt_sysfs.h" + +IGT_TEST_DESCRIPTION( +"Tests certain aspects of CRC capture that are exclusive to nvidia hardware, " +"such as context flipping."); + +typedef struct { + int pipe; + int drm_fd; + int nv_crc_dir; + igt_display_t display; + igt_output_t *output; + igt_plane_t *primary; + drmModeModeInfo *mode; + igt_fb_t default_fb; +} data_t; + +struct color_fb { + double r, g, b; + igt_crc_t crc; + igt_fb_t fb; +}; + +#define HEX_COLOR(r_, g_, b_) \ + { .r = (r_ / 255.0), .g = (g_ / 255....
2020 Apr 17
0
[PATCH i-g-t v3 5/5] tests: Add nouveau-crc tests
...TWARE. + * + */ + +#include <fcntl.h> +#include "igt.h" +#include "igt_sysfs.h" + +IGT_TEST_DESCRIPTION( +"Tests certain aspects of CRC capture that are exclusive to nvidia hardware, " +"such as context flipping."); + +typedef struct { + int pipe; + int drm_fd; + int nv_crc_dir; + igt_display_t display; + igt_output_t *output; + igt_plane_t *primary; + drmModeModeInfo *mode; + igt_fb_t default_fb; +} data_t; + +struct color_fb { + double r, g, b; + igt_crc_t crc; + igt_fb_t fb; +}; + +#define HEX_COLOR(r_, g_, b_) \ + { .r = (r_ / 255.0), .g = (g_ / 255....
2020 Aug 18
2
[PATCH i-g-t v4] tests: Add nouveau-crc tests
...TWARE. + * + */ + +#include <fcntl.h> +#include "igt.h" +#include "igt_sysfs.h" + +IGT_TEST_DESCRIPTION( +"Tests certain aspects of CRC capture that are exclusive to nvidia hardware, " +"such as context flipping."); + +typedef struct { + int pipe; + int drm_fd; + int nv_crc_dir; + igt_display_t display; + igt_output_t *output; + igt_plane_t *primary; + drmModeModeInfo *mode; + igt_fb_t default_fb; +} data_t; + +struct color_fb { + double r, g, b; + igt_crc_t crc; + igt_fb_t fb; +}; + +#define HEX_COLOR(r_, g_, b_) \ + { .r = (r_ / 255.0), .g = (g_ / 255....
2020 Mar 18
0
[PATCH i-g-t] tests/kms_plane: Generate reference CRCs for partial coverage too
...3 deletions(-) diff --git a/tests/kms_plane.c b/tests/kms_plane.c index 805795cd..c95f3584 100644 --- a/tests/kms_plane.c +++ b/tests/kms_plane.c @@ -44,6 +44,11 @@ typedef struct { float blue; } color_t; +typedef struct { + int x, y; + color_t color; +} rectangle_t; + typedef struct { int drm_fd; igt_display_t display; @@ -71,9 +76,52 @@ static void test_fini(data_t *data) igt_pipe_crc_free(data->pipe_crc); } +enum { + TEST_POSITION_PARTIALLY_COVERED = 1 << 0, + TEST_DPMS = 1 << 1, + TEST_PANNING_TOP_LEFT = 1 << 2, + TEST_PANNING_...
2020 Sep 30
0
[PATCH i-g-t v5 5/5] tests: Add nouveau-crc tests
...TWARE. + * + */ + +#include <fcntl.h> +#include "igt.h" +#include "igt_sysfs.h" + +IGT_TEST_DESCRIPTION( +"Tests certain aspects of CRC capture that are exclusive to nvidia hardware, " +"such as context flipping."); + +typedef struct { + int pipe; + int drm_fd; + int nv_crc_dir; + igt_display_t display; + igt_output_t *output; + igt_plane_t *primary; + drmModeModeInfo *mode; + igt_fb_t default_fb; +} data_t; + +struct color_fb { + double r, g, b; + igt_crc_t crc; + igt_fb_t fb; +}; + +#define HEX_COLOR(r_, g_, b_) \ + { .r = (r_ / 255.0), .g = (g_ / 255....
2020 Mar 18
0
[PATCH i-g-t 2/2] tests/kms_pipe_crc_basic: Add disable-crc-after-crtc-pipe-* tests
...ipe pipe, unsigned flags) } } +static void test_disable_crc_after_crtc(data_t *data, enum pipe pipe) +{ + igt_display_t *display = &data->display; + igt_output_t *output = igt_get_single_output_for_pipe(&data->display, pipe); + igt_pipe_crc_t *pipe_crc = igt_pipe_crc_new(data->drm_fd, pipe, "auto"); + drmModeModeInfo *mode = igt_output_get_mode(output); + igt_crc_t crc[2]; + + igt_display_reset(display); + igt_output_set_pipe(output, pipe); + + igt_create_color_fb(data->drm_fd, + mode->hdisplay, mode->vdisplay, + DRM_FORMAT_XRGB8888, + LOCAL...
2020 Mar 18
1
[PATCH i-g-t 1/2] tests/kms_pipe_crc_basic: Use igt_display_require_output_on_pipe()
From: Lyude Paul <lyude at redhat.com> Signed-off-by: Lyude Paul <lyude at redhat.com> --- tests/kms_pipe_crc_basic.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index d169b7bd..f121e27e 100644 --- a/tests/kms_pipe_crc_basic.c +++ b/tests/kms_pipe_crc_basic.c @@ -65,15 +65,14 @@ static void
2020 Apr 17
10
[PATCH i-g-t v3 0/5] Add nouveau-crc tests
From: Lyude Paul <lyude at redhat.com> Nouveau has finally gotten CRC support, hooray! Well, it's under review at least: https://patchwork.freedesktop.org/series/74804/ (it has a cover letter, but nouveau's mailing list configuration has blocked the email so I'm waiting for a moderator to fix that) So, this series adds the relevant tests for it since nvidia's CRC
2020 Sep 29
1
[igt-dev] [PATCH i-g-t v4] tests: Add nouveau-crc tests
...t_sysfs.h" > > + > > +IGT_TEST_DESCRIPTION( > > +"Tests certain aspects of CRC capture that are exclusive to nvidia > > hardware, " > > +"such as context flipping."); > > + > > +typedef struct { > > + int pipe; > > + int drm_fd; > > + int nv_crc_dir; > > + igt_display_t display; > > + igt_output_t *output; > > + igt_plane_t *primary; > > + drmModeModeInfo *mode; > > + igt_fb_t default_fb; > > +} data_t; > > + > > +struct color_fb { > > + double r, g, b; > >...
2020 Sep 28
0
[igt-dev] [PATCH i-g-t v4] tests: Add nouveau-crc tests
...#include "igt.h" > +#include "igt_sysfs.h" > + > +IGT_TEST_DESCRIPTION( > +"Tests certain aspects of CRC capture that are exclusive to nvidia hardware, " > +"such as context flipping."); > + > +typedef struct { > + int pipe; > + int drm_fd; > + int nv_crc_dir; > + igt_display_t display; > + igt_output_t *output; > + igt_plane_t *primary; > + drmModeModeInfo *mode; > + igt_fb_t default_fb; > +} data_t; > + > +struct color_fb { > + double r, g, b; > + igt_crc_t crc; > + igt_fb_t fb; > +}; > + &...
2020 Apr 17
5
[PATCH i-g-t v2 0/5] Add nouveau-crc tests
From: Lyude Paul <lyude at redhat.com> (Just forwarding this to nouveau's ml, since I completely forgot to before) Nouveau has finally gotten CRC support, hooray! Well, it's under review at least: https://patchwork.freedesktop.org/series/74804/ (it has a cover letter, but nouveau's mailing list configuration has blocked the email so I'm waiting for a moderator to fix that)
2020 Mar 18
6
[PATCH i-g-t 0/4] Add nouveau-crc tests
From: Lyude Paul <lyude at redhat.com> Nouveau has finally gotten CRC support, hooray! Well, it's under review at least: https://patchwork.freedesktop.org/series/74804/ (it has a cover letter, but nouveau's mailing list configuration has blocked the email so I'm waiting for a moderator to fix that) So, this series adds the relevant tests for it since nvidia's CRC
2020 Sep 30
9
[PATCH i-g-t v5 0/5] Add nouveau-crc tests
From: Lyude Paul <lyude at redhat.com> Nouveau has finally gotten CRC support, and at this point that support has made its way upstream. Hooray! So, let's start adding some relevant tests for it since nvidia's CRC implementation has some rather interesting design choices that needed to be worked around. Lyude Paul (5): lib/igt_core: Fix igt_assert_fd() documentation
2012 May 23
1
[PATCH (nouveau)] Add xwayland support
...urn drmAuthMagic(fd, magic); + + /* Technically this should actually iterate over xf86Screens. + Since direct access to xf86Screens is going away, though, + we don't bother right now */ + for (i = 0; i < 1; i++) { + pScrn = xf86Screens[i]; + pNv = NVPTR(pScrn); + if (xwl_screen_get_drm_fd(pNv->xwl_screen) == fd) + break; + } + + /* Forward the request to our host */ + return xwl_drm_authenticate(pNv->xwl_screen, magic); +} +#endif + Bool nouveau_dri2_init(ScreenPtr pScreen) { @@ -689,6 +719,10 @@ nouveau_dri2_init(ScreenPtr pScreen) dri2.ScheduleWaitMSC = nouveau_dri2_s...
2012 Jul 04
0
[PATCH] Add xwayland support (v2)
...uot;Failed to initialise xwayland.\n"); + return FALSE; + } + if (xwl_drm_pre_init(xwl_screen) != Success) { + xwl_screen_destroy(xwl_screen); + xf86DrvMsg(-1, X_ERROR, "Failed to initialise xwayland drm.\n"); + return FALSE; + } + ret = nouveau_device_wrap(xwl_screen_get_drm_fd(xwl_screen), 0, &dev); + if (ret) { + xwl_screen_destroy(xwl_screen); + xf86DrvMsg(-1, X_ERROR, "[drm] Failed to create drm device.\n"); + return FALSE; + } + } else { + if (!xf86LoaderCheckSymbol("DRICreatePCIBusID")) { + xf86DrvMsg(-1, X_ERROR, &qu...
2014 Nov 28
1
[Mesa-dev] [RFC] tegra: Initial support
On Fri, Nov 28, 2014 at 12:32:43AM -0500, Ilia Mirkin wrote: > On Thu, Nov 27, 2014 at 11:39 AM, Thierry Reding > <thierry.reding at gmail.com> wrote: > > Tegra K1 and later use a GPU that can be driven by the Nouveau driver. > > But the GPU is a pure render node and has no display engine, hence the > > scanout needs to happen on the Tegra display hardware. The GPU
2015 Nov 19
0
[ANNOUNCE] xf86-video-amdgpu 1.0.0
...t data parameter from drmmode_crtc_scanout_create Properly handle drmModeAddFB failure in drmmode_crtc_scanout_allocate Handle RandR CRTC transforms properly Revert "Handle RandR CRTC transforms properly" Remove dead code from probe paths Remove info->dri2.drm_fd and info->drmmode->fd Remove amdgpu_reference_drm_fd Don't use AMDGPUEntPriv in AMDGPUFreeRec Call AMDGPUFreeRec from AMDGPUFreeScreen_KMS even if info == NULL Move scrn/info declaration inside USE_GLAMOR in amdgpu_dri3_fd_from_pixmap dri2: Handle PRIME for s...
2017 Mar 13
1
[ANNOUNCE] intel-gpu-tools 1.18
...Fix memory corruption when there's no cursor plane lib/igt_kms: Remove redundant cursor code Chris Wilson (90): lib/igt_kmod: s/subtest__/igt__/ for kernel parameters lib/igt_kmod: Update the prefix match string length igt/kms_flip: Poll before reading from nonblocking drm_fd igt/drv_selftest: Adapt to mock/late split lib/kselftests: Eliminate ENOTTY hack Revert "lib/kselftests: Eliminate ENOTTY hack" lib: Allow permutation of the first two elements in the aray lib/kselftest: Parse embedded test number from parameter lib/kse...
2019 Apr 04
1
Proof of concept for GPU forwarding for Linux guest on Linux host.
Hi, This is a proof of concept of GPU forwarding for Linux guest on Linux host. I'd like to get comments and suggestions from community before I put more time on it. To summarize what it is: 1. It's a solution to bring GPU acceleration for Linux vm guest on Linux host. It could works with different GPU although the current proof of concept only works with Intel GPU. 2. The basic idea