Repository navigation
Commit db47685
drm/i915/gvt: add a fastpath for cmd parsing on MI_NOOP
MI_NOOP is a common command appearing in almost all command buffers, put it
into a fastpath can improve perfomance, especially in command buffers
contains lots of MI_NOOPs (0s).
Take glmark2 as an example, 3% performance increase is observed after
introduced this patch. Meanwhile, in case where abundant in MI_NOOPs,
up to 12% performance increase is measured.
v2: use lowercase for index of MI_NOOP in cmd_info (zhenyu wang)
Signed-off-by: Li Weinan <weinan.z.li@intel.com>
Signed-off-by: Zhao Yan <yan.y.zhao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>1 parent 279ce5d commit db47685
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1817 | 1817 | | |
1818 | 1818 | | |
1819 | 1819 | | |
| 1820 | + | |
| 1821 | + | |
1820 | 1822 | | |
1821 | 1823 | | |
1822 | 1824 | | |
| |||
2502 | 2504 | | |
2503 | 2505 | | |
2504 | 2506 | | |
2505 | | - | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
2506 | 2513 | | |
2507 | 2514 | | |
2508 | 2515 | | |
| |||
2904 | 2911 | | |
2905 | 2912 | | |
2906 | 2913 | | |
| 2914 | + | |
| 2915 | + | |
2907 | 2916 | | |
2908 | 2917 | | |
2909 | 2918 | | |
| |||
0 commit comments