Commit message (Collapse)AuthorAgeFilesLines
* list: fix an issue with android build using clangRob Clark2016-08-021-1/+1
| | | | | | | | | | | | | | | Sorry, I don't understand the android build system enough to say *which* version of clang this effects, but either "clang-2812033" or "clang-3016494" (probably the later). But when 'sample' is undefined (ie. unitialized variable), the result is not as well defined as it is with gcc. Instead use a typeof() cast with a defined value (ie. zero). This fixes a crash that was reported on android. Reported-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Rob Clark <robclark@freedesktop.org>
* list: add first/last entry macrosRob Clark2016-07-201-0/+6
| | | | Signed-off-by: Rob Clark <robclark@freedesktop.org>
* drm: consolidate common list implementations (v2)Alex Deucher2015-08-051-0/+137
This is used by radeon and freedreno and will be used by amdgpu. I looked at switching to libdrm_lists.h, but it's pretty horrible. E.g., DRMLISTFOREACHENTRYSAFE. v2: remove missed list.h from tests/radeon/Makefile.am Signed-off-by: Alex Deucher <alexander.deucher@amd.com>