Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | turnip: preliminary support for tu_BindImageMemory2 | Chia-I Wu | 2019-03-11 | 2 | -3/+20 |
| | |||||
* | turnip: add cmdbuf->bo_list to bo_list in queue submit | Chia-I Wu | 2019-03-11 | 1 | -0/+2 |
| | |||||
* | turnip: add tu_bo_list_merge | Chia-I Wu | 2019-03-11 | 2 | -16/+35 |
| | | | | tu_bo_list_merge adds an entire list to the current list. | ||||
* | turnip: build drm_msm_gem_submit_bo array directly | Chia-I Wu | 2019-03-11 | 3 | -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 helpers | Chia-I Wu | 2019-03-11 | 1 | -2/+28 |
| | |||||
* | turnip: inline tu_cs_check_space | Chia-I Wu | 2019-03-11 | 2 | -18/+16 |
| | | | | This allows the fast path (size check) to be inlined. | ||||
* | turnip: update cs->start in tu_cs_end | Chia-I Wu | 2019-03-11 | 1 | -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_end | Chia-I Wu | 2019-03-11 | 3 | -11/+16 |
| | | | | Add comments and error checking. | ||||
* | turnip: add tu_cs_add_bo | Chia-I Wu | 2019-03-11 | 2 | -35/+51 |
| | | | | Refactor BO allocation code out of tu_cs_begin. Add error checking. | ||||
* | turnip: document tu_cs | Chia-I Wu | 2019-03-11 | 2 | -0/+30 |
| | |||||
* | turnip: run sed and clang-format on tu_cs | Chia-I Wu | 2019-03-11 | 5 | -104/+93 |
| | |||||
* | turnip: Only get bo offset when we need to mmap | Kristian H. Kristensen | 2019-03-11 | 2 | -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.c | Bas Nieuwenhuizen | 2019-03-11 | 3 | -141/+166 |
| | |||||
* | turnip: Add emit functions in a header. | Bas Nieuwenhuizen | 2019-03-11 | 2 | -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_QueueWaitIdle | Chia-I Wu | 2019-03-11 | 2 | -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 Wu | 2019-03-11 | 2 | -9/+9 |
| | |||||
* | turnip: add wrappers around DRM_MSM_SUBMITQUEUE_* | Chia-I Wu | 2019-03-11 | 3 | -12/+36 |
| | | | | Add tu_drm_submitqueue_new and tu_drm_submitqueue_close. | ||||
* | turnip: add wrappers around DRM_MSM_GET_PARAM | Chia-I Wu | 2019-03-11 | 3 | -32/+55 |
| | | | | Add tu_drm_get_gpu_id and tu_drm_get_gmem_size. | ||||
* | turnip: remove unnecessary libfreedreno_drm dep | Chia-I Wu | 2019-03-11 | 3 | -14/+0 |
| | | | | Remove libfreedreno_drm dep and unused fd_device. | ||||
* | turnip: use msm_drm.h from inc_freedreno | Chia-I Wu | 2019-03-11 | 2 | -8/+10 |
| | | | | | The recent change to msm_drm.h changed the APIs in an incompatible way. | ||||
* | turnip: Shorten primary_cmd_stream name. | Bas Nieuwenhuizen | 2019-03-11 | 3 | -13/+13 |
| | | | | It really is too long. | ||||
* | turnip: Fill command buffer | Bas Nieuwenhuizen | 2019-03-11 | 1 | -1/+35 |
| | |||||
* | turnip: Implement submission. | Bas Nieuwenhuizen | 2019-03-11 | 1 | -0/+56 |
| | |||||
* | turnip: Make bo_list functions not static | Bas Nieuwenhuizen | 2019-03-11 | 2 | -4/+10 |
| | |||||
* | turnip: Add msm queue support. | Bas Nieuwenhuizen | 2019-03-11 | 2 | -1/+18 |
| | |||||
* | turnip: Add a command stream. | Bas Nieuwenhuizen | 2019-03-11 | 2 | -0/+154 |
| | |||||
* | turnip: Implement a slow bo list | Bas Nieuwenhuizen | 2019-03-11 | 2 | -22/+58 |
| | |||||
* | turnip: Implement some UUIDs. | Bas Nieuwenhuizen | 2019-03-11 | 1 | -2/+2 |
| | |||||
* | turnip: clean up TODO. | Bas Nieuwenhuizen | 2019-03-11 | 1 | -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 Nieuwenhuizen | 2019-03-11 | 1 | -25/+1 |
| | |||||
* | turnip: Implement some format properties for RGBA8. | Bas Nieuwenhuizen | 2019-03-11 | 1 | -1/+73 |
| | | | | | Just to get some tests to not skip. This is neither complete nor completely correct. | ||||
* | turnip: add .clang-format | Chia-I Wu | 2019-03-11 | 20 | -1093/+1027 |
| | | | | Add and apply .clang-format. | ||||
* | turnip: Implement pipe-less param query. | Bas Nieuwenhuizen | 2019-03-11 | 3 | -15/+31 |
| | |||||
* | turnip: move tu_gem.c to tu_drm.c | Bas Nieuwenhuizen | 2019-03-11 | 2 | -1/+1 |
| | |||||
* | turnip: Stop hardcoding the msm version check. | Bas Nieuwenhuizen | 2019-03-11 | 1 | -1/+2 |
| | |||||
* | turnip: Add image layout calculations. | Bas Nieuwenhuizen | 2019-03-11 | 3 | -0/+135 |
| | |||||
* | turnip: Fix memory mapping. | Bas Nieuwenhuizen | 2019-03-11 | 1 | -1/+2 |
| | |||||
* | turnip: Fix bo allocation after we stopped using libdrm_freedreno ... | Bas Nieuwenhuizen | 2019-03-11 | 2 | -17/+9 |
| | | | | | Al this figuring out new errors is why I don't like reinventing the wheel. | ||||
* | turnip: Add 630 to the list. | Bas Nieuwenhuizen | 2019-03-11 | 1 | -0/+1 |
| | |||||
* | turnip: Don't return from tu_stub funcs | Chad Versace | 2019-03-11 | 1 | -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' warnings | Chad Versace | 2019-03-11 | 4 | -9/+26 |
| | | | | Now turnip builds without warnings on my machine. | ||||
* | turnip: Add TODO file | Chad Versace | 2019-03-11 | 1 | -0/+3 |
| | |||||
* | turnip: Replace fd_bo with tu_bo | Chad Versace | 2019-03-11 | 4 | -10/+211 |
| | | | | (olv, after rebase) remove inc_drm_uapi | ||||
* | turnip: Use vk_errorf() for initialization error messages | Chad Versace | 2019-03-11 | 1 | -21/+8 |
| | | | | This small cleanup better prepares turnip for VK_EXT_debug_report. | ||||
* | turnip: Add TODO for Android logging | Chad Versace | 2019-03-11 | 1 | -0/+2 |
| | |||||
* | turnip: Require DRM device version >= 1.3 | Chad Versace | 2019-03-11 | 1 | -0/+17 |
| | | | | Because the driver will require support for iova. | ||||
* | turnip: Fix indentation | Chad Versace | 2019-03-11 | 1 | -2/+2 |
| | |||||
* | turnip: Fix a real -Wmaybe-uninitialized | Chad Versace | 2019-03-11 | 1 | -1/+1 |
| | |||||
* | turnip: Use vk_outarray in all relevant public functions | Chad Versace | 2019-03-11 | 1 | -75/+35 |
| | |||||
* | turnip: Fix result of vkEnumerate*ExtensionProperties | Chad Versace | 2019-03-11 | 1 | -0/+9 |
| | | | | | Given an unsupported layer name, the functions must return VK_ERROR_LAYER_NOT_PRESENT. |