Commit 23b4503
asahi: rewrite queries
1. always keep the query in gpu memory, so we can implement qbos properly.
2. use a lightweight data structure for tracking writers to reduce overhead
3. allow many writers per query to eliminate stalls
4. use context-wide occlusion heap, to satisfy #1 without introducing
flushes or silly copies. this is what the pvr mesa driver does :-)
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>1 parent ca58bc2 commit 23b4503
File tree
6 files changed
+283
-261
lines changed- src/gallium/drivers/asahi
6 files changed
+283
-261
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 27 | | |
34 | 28 | | |
35 | 29 | | |
| |||
125 | 119 | | |
126 | 120 | | |
127 | 121 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 122 | + | |
131 | 123 | | |
132 | 124 | | |
133 | 125 | | |
| |||
177 | 169 | | |
178 | 170 | | |
179 | 171 | | |
180 | | - | |
181 | | - | |
182 | 172 | | |
183 | 173 | | |
184 | 174 | | |
| |||
212 | 202 | | |
213 | 203 | | |
214 | 204 | | |
215 | | - | |
216 | | - | |
217 | | - | |
| 205 | + | |
218 | 206 | | |
219 | 207 | | |
220 | 208 | | |
| |||
774 | 762 | | |
775 | 763 | | |
776 | 764 | | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | 765 | | |
785 | 766 | | |
786 | 767 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1333 | 1333 | | |
1334 | 1334 | | |
1335 | 1335 | | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | | - | |
1340 | | - | |
1341 | | - | |
1342 | | - | |
1343 | | - | |
1344 | | - | |
1345 | | - | |
1346 | | - | |
1347 | | - | |
1348 | | - | |
1349 | 1336 | | |
1350 | 1337 | | |
1351 | 1338 | | |
| |||
0 commit comments