summaryrefslogtreecommitdiff
path: root/freedreno/msm/msm_pipe.c
AgeCommit message (Collapse)AuthorFilesLines
2018-10-13freedreno/msm: support suballocation for stateobj rb'sRob Clark1-0/+6
Signed-off-by: Rob Clark <robclark@freedesktop.org>
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-01-26freedreno: clamp priority based on # of ringsRob Clark1-11/+17
In case of a kernel that is new enough to support multiple submit- queues, but with an adreno generation which doesn't support multiple prioritized ringbuffers, we'd attempt to open a submit-queue with prio=1 (medium), which is rejected by the kernel. This could happen either w/ an older mesa (which uses fd_pipe_new()) or a newer mesa which defaults to prio=1 if no pipe context priority flags are set. The simple answer to fix both cases is to clamp the requested priority according to the number of rings. This might not do exactly what you want, if we hypothetically had 2 rings (it would result in requested medium priority being high priority instead of low priority). But the number of rings (for hw gen's that support this) is purely a software construct, so the easy answer there is to have the kernel advertise at least 3 rings if it supports more than one. There isn't really any reason to do otherwise. Signed-off-by: Rob Clark <robclark@freedesktop.org>
2017-11-04freedreno: submit-queue context priorityRob Clark1-1/+40
With a new-enough kernel to support prioritized submit-queues, we can expose priority level support to mesa. Open a submit queue associated with the fd_pipe and pass it's id back to SUBMIT ioctl. Signed-off-by: Rob Clark <robclark@freedesktop.org>
2016-03-13freedreno: add support for FD_TIMESTAMPRob Clark1-0/+2
Signed-off-by: Rob Clark <robclark@freedesktop.org>
2016-02-12freedreno: add support for FD_MAX_FREQRob Clark1-0/+2
Only msm backend supports this. Sorry, if you are using kgsl, no time-elapsed query for you. Signed-off-by: Rob Clark <robclark@freedesktop.org>
2016-02-12freedreno: small refactor for get_paramRob Clark1-13/+30
Will simplify next commit. Signed-off-by: Rob Clark <robclark@freedesktop.org>
2015-09-04freedreno: annotate the device/bo/pipe/ringbuffer funcs as const dataEmil Velikov1-1/+1
Cc: freedreno@lists.freedesktop.org Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-08-17freedreno: add fd_pipe_wait_timeout()Rob Clark1-2/+3
We need to pass through a timeout parameter to implement pipe->fence_finish() properly. Signed-off-by: Rob Clark <robclark@freedesktop.org>
2015-04-28freedreno: annotate the private symbolsEmil Velikov1-1/+2
They are less and easier to track than the public ones. The macro drm_public will be going away by the end of the series. Cc: Rob Clark <robdclark@gmail.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2014-09-28fix compile error on 32bit systemsRob Clark1-0/+4
4c2766b (drm_mmap/drm_unmap) brought this error for every .c file that was not #including config.h: In file included from private.h:4:0, from abi16.c:29: ../libdrm.h: In function 'drm_munmap': ../libdrm.h:81:4: error: size of unnamed array is negative Signed-off-by: Rob Clark <robdclark@gmail.com>
2014-06-18freedreno: add chip-id propertyRob Clark1-0/+5
Userspace needs to know the patch-revision in addition to just the gpu-id (ie. 320, 305, etc). Signed-off-by: Rob Clark <robclark@freedesktop.org>
2013-08-28freedreno: add support for msm drmRob Clark1-0/+133
This adds support for the "msm" backend, using the upstream msm drm/kms driver. Signed-off-by: Rob Clark <robclark@freedesktop.org>