summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
3 daysuse XNFcallocarray() instead of xnfcalloc macroHEADmasterEnrico Weigelt, metux IT consult1-1/+1
xnfcalloc is just an alias for XNFcallocarray() that doesn't seem to serve any practical purpose, so it can go away once all drivers stopped using it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-omap/-/merge_requests/5>
3 daysuse XNFalloc() instead of xnfallocEnrico Weigelt, metux IT consult1-1/+1
xnfalloc is just an alias for XNFalloc() that doesn't seem to serve any practical purpose, so it can go away once all drivers stopped using it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-omap/-/merge_requests/5>
8 days.gitignore: add some missing entriesEnrico Weigelt, metux IT consult1-0/+7
A bunch of autogenerated files from autotools have been missing yet. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-omap/-/merge_requests/4>
2022-08-29gitlab CI: use -Domap=enabled instead of true when building drmAlan Coopersmith1-1/+1
Fixes CI build failure: meson.build:21:0: ERROR: Value "true" (of type "string") for combo option "Enable support for OMAP's experimental KMS API." is not one of the choices. Possible choices are (as string): "enabled", "disabled", "auto". Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-21omap: Add proper names for DSI, DPI and Virtual connectorsTony Lindgren1-0/+3
Otherwise xrandr shows the name as "Unknown16-1" instead of DSI-1 for example on droid4. These defines need to match with kernel DRM_MODE_CONNECTOR related defines in drm_mode.h, so let's add the missing ones for Virtual, DSI, and DPI. Signed-off-by: Tony Lindgren <tony@atomide.com>
2022-08-21omap: Few fixes to build with muslTony Lindgren2-33/+3
Few fixes to allow building xf86-video-omap with musl: 1. We get warnings about duplicate debug macros as we already have them also in omap_driver.h, let's just remove the dpulicates 2. Use standard __func__ instead of __FUNCTION__ Signed-off-by: Tony Lindgren <tony@atomide.com>
2022-08-21omap: Fix missing usage count decrease in OMAPDRI2DestroyBufferTony Lindgren1-1/+5
Commit 0bdd370ab720 ("dri2: hold extra buffer ref during swap") started increasing pPixmap->refcnt for DRI2BufferFrontLeft, but that gets never decremented in OMAPDRI2DestroyBuffer. Let's fix the issue by pairing the increment with a decrement in OMAPDRI2DestroyBuffer. Otherwise we get a segfault after rotating an sgx accelerated opengl es app and then terminating it. Signed-off-by: Tony Lindgren <tony@atomide.com>
2022-07-18OMAPPreInit: Fix error message for Unknown ChipsetAlan Coopersmith1-1/+1
Fixes build failure: In file included from omap_driver.c:34: omap_driver.c: In function 'OMAPPreInit': omap_driver.h:104:60: error: '%s' directive argument is null [-Werror=format-overflow=] 104 | do { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "ERROR: " fmt "\n",\ | ^~~~~~~~~ omap_driver.c:545:17: note: in expansion of macro 'ERROR_MSG' 545 | ERROR_MSG("Unknown chipset: %s", pScrn->chipset); | ^~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-18gitlab CI: add a basic build testAlan Coopersmith1-0/+117
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-23Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-25Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-3/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-06-13modesetting: Validate the atom for enum propertiesAdam Jackson1-1/+2
The client could have said anything here, and if what they said doesn't actually name an atom NameForAtom() will return NULL, and strcmp() will be unhappy about that. [copied from xserver d4995a3936ae283b9080fdaa0905daa669ebacfc] Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-11-25NEWS: Bump version to 0.4.5xf86-video-omap-0.4.5Rob Clark2-1/+6
Signed-off-by: Rob Clark <robdclark@gmail.com>
2016-11-25Use NotifyFd for drm fdHans De Goede2-0/+29
NotifyFd is available after API 22, and must be used after API 23. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-07-19Adapt Block/WakeupHandler signature for ABI 23Adam Jackson1-0/+5
Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-05-31Adapt to XF86_CRTC_VERSION 7Michel Dänzer1-1/+5
The driverIsPerformingTransform field becomes an enum, and xf86CrtcTransformCursorPos is no longer necessary.
2015-10-08NEWS: Bump version to 0.4.4xf86-video-omap-0.4.4Rob Clark2-1/+8
Signed-off-by: Rob Clark <robdclark@gmail.com>
2015-09-09drmmode_output_dpms: Replace logical && with bitwise & operationKhem Raj1-1/+1
This is a mask calculation so bitwise '&' should have been used. Signed-off-by: Khem Raj <raj.khem@gmail.com> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Rob Clark <robdclark@gmail.com>
2014-12-06add support for AM572x in the DDXRobert Nelson3-1/+5
Signed-off-by: Robert Nelson <robertcnelson@gmail.com> Signed-off-by: Rob Clark <robdclark@gmail.com>
2013-03-27drmmode: Fix leaked fb in case of failed pageflipSteve Wilkins1-1/+2
Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Steve Wilkins <steve.wilkins@raymarine.com>
2013-03-27drmmode: Fix crash with multi-crtc page-flipSteve Wilkins1-3/+14
Fix crash when performing a page flip with multiple crtc's enabled. Signed-off-by: Steve Wilkins <steve.wilkins@raymarine.com> Signed-off-by: Rob Clark <robdclark@gmail.com>
2013-01-11NEWS: Bump version to 0.4.3xf86-video-omap-0.4.3Rob Clark2-1/+12
Signed-off-by: Rob Clark <robdclark@gmail.com>
2013-01-11dri2: fix potential loop issue with triple buffer flipRob Clark1-1/+2
Signed-off-by: Rob Clark <robdclark@gmail.com>
2012-11-26remove unneeded DRI1 dependency in configure.acRob Clark1-31/+0
Signed-off-by: Rob Clark <robdclark@gmail.com>
2012-10-23fix issue on pre-rotation kernelRob Clark2-3/+10
If kernel does not support rotation, then we should simply not use rotation, rather than just failing. Signed-off-by: Rob Clark <rob@ti.com>
2012-10-16dri2: fix some leaksRob Clark1-1/+4
Signed-off-by: Rob Clark <rob@ti.com>
2012-10-15NEWS: Bump version to 0.4.2xf86-video-omap-0.4.2Rob Clark2-1/+7
Signed-off-by: Rob Clark <rob@ti.com>
2012-10-09make-dist fixesRob Clark2-1/+9
Don't forget to include headers. Also add a couple missing entries to .gitignore. Signed-off-by: Rob Clark <rob@ti.com>
2012-10-06NEWS: Bump version to 0.4.1xf86-video-omap-0.4.1Rob Clark2-1/+13
Signed-off-by: Rob Clark <rob@ti.com>
2012-10-06fix ScreenInit -> CloseScreen -> ScreenInitRob Clark1-0/+1
If the screen gets closed and re-init'd, we'd hit a null ptr for pOMAP->scanout, because scanout size was not re-initialized, causing the second drmmode_reallocate_scanout() to be a no-op. Signed-off-by: Rob Clark <rob@ti.com>
2012-10-05remove miInitializeBackingStore() callRob Clark1-1/+0
It is no-op these days, and removed from latest xserver. Signed-off-by: Rob Clark <rob@ti.com>
2012-10-05remove some unused headersRob Clark2-7/+0
Should fix a build break w/ some headers removed from xserver.. these headers where anyways unneeded. Signed-off-by: Rob Clark <rob@ti.com>
2012-09-30fix multi-display + rotationRob Clark3-98/+122
If the fb is reallocated due to rotated CRTC in drmmode_set_mode_major() then we need to reconfigure the CRTCs that are torn down by the kernel when the previous fb was destroyed. Signed-off-by: Rob Clark <rob@ti.com>
2012-09-27fix multi-displayRob Clark1-3/+3
Don't unconditionally delete the fb when setting crtc. With multiple displays this will tear down the crtc's that are already configured. Signed-off-by: Rob Clark <rob@ti.com>
2012-08-30add EnableDisableFBAccess to compat-apiRob Clark2-2/+6
Fixes build break w/ latest xserver: drmmode_display.c: In function 'drmmode_reallocate_scanout': drmmode_display.c:1149:4: error: passing argument 1 of 'pScrn->EnableDisableFBAccess' makes pointer from integer without a cast [-Werror] drmmode_display.c:1149:4: note: expected 'ScrnInfoPtr' but argument is of type 'int' drmmode_display.c:1183:4: error: passing argument 1 of 'pScrn->EnableDisableFBAccess' makes pointer from integer without a cast [-Werror] drmmode_display.c:1183:4: note: expected 'ScrnInfoPtr' but argument is of type 'int' cc1: all warnings being treated as errors Signed-off-by: Rob Clark <rob@ti.com>
2012-08-23omap: add support for PlatformProbeRicardo Salveti de Araujo2-3/+68
Since xorg 1.12.99.901 we now have support for platform devices, which is already responsible for looking over the devices from udev, and setting up the device attributes, entity and platform slot, simplifying the probe method. The old probe function is still valid, and also used in case there's no platform support, so this change only affects users building the driver agains the latest xorg release. Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org> Signed-off-by: Rob Clark <rob@ti.com>
2012-08-23xrandr rotationRob Clark7-62/+229
If XF86_CRTC_VERSION >= 4, on platforms with dmm/tiler (OMAP4+), use tiled buffers for scanout buffer to enable rotatated and/or mirrored scanout. This utilizes the RFC crtc/plane properties support to configure rotation. Tiled buffers are only used if rotation is enabled. Signed-off-by: Rob Clark <rob@ti.com>
2012-08-06dri2: fix multi-drawable flip confusionRob Clark2-10/+19
A flip pending on the fullscreen drawable shouldn't effect a swap on a windowed drawable. This shows up if using a GL compositing window manager (like compiz) compositing a 3d app. We still need to keep track of pending flips globally (per display), but use a per-drawable counter in the decision to queue up. Signed-off-by: Rob Clark <rob@ti.com>
2012-06-20NEWS: Bump version to 0.4.00.4.0Rob Clark2-2/+16
Signed-off-by: Rob Clark <rob@ti.com>
2012-06-18dri2: implement triple bufferingRob Clark2-34/+193
Add support for triple buffering. Although in this case it is triggered by the client requesting a third buffer, so the client is in control of when to use triple vs. double buffering. This way the client can make it's own latency vs throughput decision. Signed-off-by: Rob Clark <rob@ti.com>
2012-06-18dri2: don't keep fb_idRob Clark3-46/+50
When the client re-requests buffers, the front buffer is always destroyed and recreated, and if that is drmModeRmFB()'ing the front buffer, that causes problems. This was hidden by a bug that we didn't exchange the fb_id so we were always flipping to the same front buffer. Signed-off-by: Rob Clark <rob@ti.com>
2012-06-16omap: finish port to compat APIRob Clark1-2/+2
updating the EXA hooks was missed. Signed-off-by: Rob Clark <rob@ti.com>
2012-06-16omap: port to compat server API.Rob Clark5-37/+134
This ports to the new server API. Signed-off-by: Rob Clark <rob@ti.com>
2012-06-13dri2: turn vblank error into a WARNINGFrederic Plourde1-1/+1
2012-04-20dri2: block close-screen until flips complete0.3.0Rob Clark3-3/+24
If CloseScreen happens while we are waiting for a page_flip event, we need to block the CloseScreen until after the page_flip is processed to avoid deref'ing the screen ptr after the screen is closed.
2012-04-20exa: fix double free of scanout boRob Clark1-1/+6
When the screen is torn down and the screen pixmap destroyed, we should not delete the bo, as it is freed elsewhere. TODO: add refcnting in libdrm_omap so this can be handled in a cleaner way.
2012-04-20dri2: don't attempt to re-allocate scanout bufferRob Clark2-4/+12
The scanout buffer is already contiguous (scanout capable), and re-allocating it causes pOMAP->scanout to be a dangling pointer.
2012-04-20dri2: hold extra buffer ref during swapRob Clark1-20/+65
It is possible that the client detaches while we are waiting for the page_flip event. Use ref counting on dri2 buffer to avoid freeing a buffer before the page_flip event is processed.
2012-04-16dri2: don't exchangebufs if blitRob Clark1-1/+2
In the blit path, we don't actually swap back and front buffers.
2012-04-13exa: fix double free of scanout bo on resizeRob Clark1-4/+1
The scanout buffer free'ing for the screen pixmap is handled elsewhere.