Commit 621a422
committed
drm/xe/guc: Don't allocate temporary policies object
Since we are already using reusable buffer objects from the GuC
buffer cache, we can directly write into their CPU pointers and
spare unnecessary temporary allocation.
While around, also make sure to clear obtained buffer, to avoid
sending some stale data.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250702142504.1656-1-michal.wajdeczko@intel.com1 parent 1fbe023 commit 621a422
1 file changed
Lines changed: 9 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
995 | 995 | | |
996 | 996 | | |
997 | 997 | | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | 998 | | |
1009 | 999 | | |
1010 | 1000 | | |
| |||
1015 | 1005 | | |
1016 | 1006 | | |
1017 | 1007 | | |
1018 | | - | |
1019 | 1008 | | |
1020 | | - | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
1021 | 1012 | | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1025 | 1018 | | |
1026 | 1019 | | |
1027 | 1020 | | |
| |||
1031 | 1024 | | |
1032 | 1025 | | |
1033 | 1026 | | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
| 1027 | + | |
1037 | 1028 | | |
0 commit comments