This change is to support MESA performace optimization. Modify CS IOCTL to allow its input as command buffer and an array of buffer handles to create a temporay bo list and then destroy it when IOCTL completes. This saves on calling for BO_LIST create and destry IOCTLs in MESA and by this improves performance. v2: Avoid inserting the temp list into idr struct. v3: Remove idr alloation from amdgpu_bo_list_create. Remove useless argument from amdgpu_cs_parser_fini Minor cosmetic stuff. v4: Revert amdgpu_bo_list_destroy back to static
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -516,6 +516,7 @@ struct drm_amdgpu_gem_va { · 515 unmodified lines | |||
| 516 | #define AMDGPU_CHUNK_ID_DEPENDENCIES 0x03 | 516 | #define AMDGPU_CHUNK_ID_DEPENDENCIES 0x03 |
| 517 | #define AMDGPU_CHUNK_ID_SYNCOBJ_IN 0x04 | 517 | #define AMDGPU_CHUNK_ID_SYNCOBJ_IN 0x04 |
| 518 | #define AMDGPU_CHUNK_ID_SYNCOBJ_OUT 0x05 | 518 | #define AMDGPU_CHUNK_ID_SYNCOBJ_OUT 0x05 |
| 519 | #define AMDGPU_CHUNK_ID_BO_HANDLES 0x06 | ||
| 519 | 520 | ||
| 520 | struct drm_amdgpu_cs_chunk { | 521 | struct drm_amdgpu_cs_chunk { |
| 521 | __u32 chunk_id; | 522 | __u32 chunk_id; |