summaryrefslogtreecommitdiff
path: root/cube-video.c
Commit message (Collapse)AuthorAgeFilesLines
* fix build errorRob Clark2020-03-071-1/+1
| | | | /usr/bin/ld: kmscube@exe/cube-tex.c.o:/home/robclark/src/kmscube/debug/../cube-tex.c:47: multiple definition of `gl'; kmscube@exe/cube-smooth.c.o:/home/robclark/src/kmscube/debug/../cube-smooth.c:40: first defined here
* add MSAARob Clark2018-06-191-2/+2
| | | | | Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* video: fencing to avoid passing frame back to decoder too earlyRob Clark2017-05-081-1/+14
| | | | | | | | | | | | With atomic kms backend, userspace can get further ahead of the gpu. In the decoder, we unref the previous frame when retrieving the current frame. If userspace gets too far ahead, this can happen while the gpu is still sampling from the previous frame. Simple solution is add a fence. Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
* helper to check for egl entrypointsRob Clark2017-05-081-3/+1
| | | | | | | | | | | | Remove some boilerplate and check more specifically for all the entry- points that different modules need. Ok, I guess it isn't likely for a driver to expose eglCreateImageKHR but not eglDeleteImageKHR.. but otoh kmscube is useful for bringing up drivers. Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
* add video cubeRob Clark2017-03-271-0/+386
Uses gstreamer for a simple decoder. If decoder can give us dma-buf's directly, we'll directly use that as a texture (zero copy), otherwise memcpy into a buffer from gbm. This should work with both hw and sw decoders. Probably room for improvement. And the interface between gl and the decoder is pretty simple so I suppose other decoders would be possible. (But hopefully they could already be supported via gstreamer.) Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>