History

drm/amdgpu: Allow to create BO lists in CS ioctl v3

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

Andrey Grodzovsky committed 8 years ago

Commit 964d0fb1 parent 8415afb5 files · +108 −40Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/drm/amdgpu_drm.h+1−0
@@ -516,6 +516,7 @@ struct drm_amdgpu_gem_va { · 515 unmodified lines
516#define AMDGPU_CHUNK_ID_DEPENDENCIES 0x03516#define AMDGPU_CHUNK_ID_DEPENDENCIES 0x03
517#define AMDGPU_CHUNK_ID_SYNCOBJ_IN 0x04517#define AMDGPU_CHUNK_ID_SYNCOBJ_IN 0x04
518#define AMDGPU_CHUNK_ID_SYNCOBJ_OUT 0x05518#define AMDGPU_CHUNK_ID_SYNCOBJ_OUT 0x05
519#define AMDGPU_CHUNK_ID_BO_HANDLES 0x06
519 520
520struct drm_amdgpu_cs_chunk {521struct drm_amdgpu_cs_chunk {
521 __u32 chunk_id;522 __u32 chunk_id;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t