summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* turnip: preliminary support for tu_BindImageMemory2Chia-I Wu2019-03-112-3/+20
|
* turnip: add cmdbuf->bo_list to bo_list in queue submitChia-I Wu2019-03-111-0/+2
|
* turnip: add tu_bo_list_mergeChia-I Wu2019-03-112-16/+35
| | | | tu_bo_list_merge adds an entire list to the current list.
* turnip: build drm_msm_gem_submit_bo array directlyChia-I Wu2019-03-113-24/+35
| | | | | | | | | Build drm_msm_gem_submit_bo array directly in tu_bo_list. We might change this again, but this is good enough for now. There are other issues as well, such as not using VkAllocationCallbacks and sloppy error checking. We should revisit this in the near future. Same to tu_cs.
* turnip: add more tu_cs helpersChia-I Wu2019-03-111-2/+28
|
* turnip: inline tu_cs_check_spaceChia-I Wu2019-03-112-18/+16
| | | | This allows the fast path (size check) to be inlined.
* turnip: update cs->start in tu_cs_endChia-I Wu2019-03-111-2/+4
| | | | | This allows us to assert that there is no dangling command in tu_cs_begin, rather than discarding them silently.
* turnip: minor cleanup to tu_cs_endChia-I Wu2019-03-113-11/+16
| | | | Add comments and error checking.
* turnip: add tu_cs_add_boChia-I Wu2019-03-112-35/+51
| | | | Refactor BO allocation code out of tu_cs_begin. Add error checking.
* turnip: document tu_csChia-I Wu2019-03-112-0/+30
|
* turnip: run sed and clang-format on tu_csChia-I Wu2019-03-115-104/+93
|
* turnip: Only get bo offset when we need to mmapKristian H. Kristensen2019-03-112-17/+5
| | | | | The offset we get from MSM_INFO_GET_OFFSET is an offset into the drm fd for the purpose of mmaping the buffer.
* turnip: Move stream functions to tu_cs.cBas Nieuwenhuizen2019-03-113-141/+166
|
* turnip: Add emit functions in a header.Bas Nieuwenhuizen2019-03-112-25/+109
| | | | | | | | | | | | | | | This adds a radv-style check_space functions + emit functions. Also puts them in a header as a bunch of inlines, so (1) we can use them from meta code. (2) they are inline for performance as these are common and small. Did not put them in tu_private.h as a bunch of inlines only clutters up that huge headerfile. Precise error propagation for memory allocation failures is still todo.
* turnip: preliminary support for tu_QueueWaitIdleChia-I Wu2019-03-112-1/+33
| | | | | | | This creates a new fd on each queue submit. I do not go with DRM_IOCTL_MSM_WAIT_FENCE solely because the path is marked legacy. Otherwise, we can use the fence id rather than requesting a fence fd until external fences are supported and enabled.
* turnip: constify tu_device in tu_gem_*Chia-I Wu2019-03-112-9/+9
|
* turnip: add wrappers around DRM_MSM_SUBMITQUEUE_*Chia-I Wu2019-03-113-12/+36
| | | | Add tu_drm_submitqueue_new and tu_drm_submitqueue_close.
* turnip: add wrappers around DRM_MSM_GET_PARAMChia-I Wu2019-03-113-32/+55
| | | | Add tu_drm_get_gpu_id and tu_drm_get_gmem_size.
* turnip: remove unnecessary libfreedreno_drm depChia-I Wu2019-03-113-14/+0
| | | | Remove libfreedreno_drm dep and unused fd_device.
* turnip: use msm_drm.h from inc_freedrenoChia-I Wu2019-03-112-8/+10
| | | | | The recent change to msm_drm.h changed the APIs in an incompatible way.
* turnip: Shorten primary_cmd_stream name.Bas Nieuwenhuizen2019-03-113-13/+13
| | | | It really is too long.
* turnip: Fill command bufferBas Nieuwenhuizen2019-03-111-1/+35
|
* turnip: Implement submission.Bas Nieuwenhuizen2019-03-111-0/+56
|
* turnip: Make bo_list functions not staticBas Nieuwenhuizen2019-03-112-4/+10
|
* turnip: Add msm queue support.Bas Nieuwenhuizen2019-03-112-1/+18
|
* turnip: Add a command stream.Bas Nieuwenhuizen2019-03-112-0/+154
|
* turnip: Implement a slow bo listBas Nieuwenhuizen2019-03-112-22/+58
|
* turnip: Implement some UUIDs.Bas Nieuwenhuizen2019-03-111-2/+2
|
* turnip: clean up TODO.Bas Nieuwenhuizen2019-03-111-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./deqp-vk -n dEQP-VK.info.* Writing test log into TestResults.qpa dEQP Core unknown (0xcafebabe) starting.. target implementation = 'Surfaceless' WARNING: tu is not a conformant vulkan implementation, testing use only. WARNING: tu is not a conformant vulkan implementation, testing use only. Test case 'dEQP-VK.info.build'.. Pass (Not validated) Test case 'dEQP-VK.info.device'.. Pass (Not validated) Test case 'dEQP-VK.info.platform'.. Pass (Not validated) Test case 'dEQP-VK.info.memory_limits'.. Pass (Pass) DONE! Test run totals: Passed: 4/4 (100.0%) Failed: 0/4 (0.0%) Not supported: 0/4 (0.0%) Warnings: 0/4 (0.0%)
* turnip: Remove some radv leftovers.Bas Nieuwenhuizen2019-03-111-25/+1
|
* turnip: Implement some format properties for RGBA8.Bas Nieuwenhuizen2019-03-111-1/+73
| | | | | Just to get some tests to not skip. This is neither complete nor completely correct.
* turnip: add .clang-formatChia-I Wu2019-03-1120-1093/+1027
| | | | Add and apply .clang-format.
* turnip: Implement pipe-less param query.Bas Nieuwenhuizen2019-03-113-15/+31
|
* turnip: move tu_gem.c to tu_drm.cBas Nieuwenhuizen2019-03-112-1/+1
|
* turnip: Stop hardcoding the msm version check.Bas Nieuwenhuizen2019-03-111-1/+2
|
* turnip: Add image layout calculations.Bas Nieuwenhuizen2019-03-113-0/+135
|
* turnip: Fix memory mapping.Bas Nieuwenhuizen2019-03-111-1/+2
|
* turnip: Fix bo allocation after we stopped using libdrm_freedreno ...Bas Nieuwenhuizen2019-03-112-17/+9
| | | | | Al this figuring out new errors is why I don't like reinventing the wheel.
* turnip: Add 630 to the list.Bas Nieuwenhuizen2019-03-111-0/+1
|
* turnip: Don't return from tu_stub funcsChad Versace2019-03-111-7/+0
| | | | | Since the macros are lowercase and look like normal functions, that they change control flow with a hidden return is surprising.
* turnip: Fix 'unused' warningsChad Versace2019-03-114-9/+26
| | | | Now turnip builds without warnings on my machine.
* turnip: Add TODO fileChad Versace2019-03-111-0/+3
|
* turnip: Replace fd_bo with tu_boChad Versace2019-03-114-10/+211
| | | | (olv, after rebase) remove inc_drm_uapi
* turnip: Use vk_errorf() for initialization error messagesChad Versace2019-03-111-21/+8
| | | | This small cleanup better prepares turnip for VK_EXT_debug_report.
* turnip: Add TODO for Android loggingChad Versace2019-03-111-0/+2
|
* turnip: Require DRM device version >= 1.3Chad Versace2019-03-111-0/+17
| | | | Because the driver will require support for iova.
* turnip: Fix indentationChad Versace2019-03-111-2/+2
|
* turnip: Fix a real -Wmaybe-uninitializedChad Versace2019-03-111-1/+1
|
* turnip: Use vk_outarray in all relevant public functionsChad Versace2019-03-111-75/+35
|
* turnip: Fix result of vkEnumerate*ExtensionPropertiesChad Versace2019-03-111-0/+9
| | | | | Given an unsupported layer name, the functions must return VK_ERROR_LAYER_NOT_PRESENT.