Commit f6f303f
pvr: Get rid of dummy fields in prim headers
Those dummy fields were added to the various primitive headers to make
sure that they had the correct size.
Now that all primitive headers use the same pvr_poly_hdr_t type, which
has the correct size even with the dummy fields removed, all the dummy
fields can be removed.
Note that the driver code was setting them either to 0 or 0xffff'ffff,
for some reason. Given that this was written almost 25 years ago and
everything seems to work just fine without writing those fields, it
seems safe to drop them.
Dropping them also fixes KallistiOS#1034, which happened since the switch to the
common pvr_poly_hdr_t type, and was caused by the dummy fields moving
around (as prior to that, the d1/d2 fields in a pvr_poly_mod_hdr were
at different offsets than the d1/d2 fields in a pvr_poly_hdr, for
instance).
Signed-off-by: Paul Cercueil <paul@crapouillou.net>1 parent f643745 commit f6f303f
3 files changed
Lines changed: 2 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | 267 | | |
272 | 268 | | |
273 | 269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
| 99 | + | |
| 100 | + | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 102 | | |
110 | 103 | | |
111 | 104 | | |
| |||
353 | 346 | | |
354 | 347 | | |
355 | 348 | | |
356 | | - | |
357 | | - | |
358 | 349 | | |
359 | 350 | | |
360 | 351 | | |
| |||
467 | 458 | | |
468 | 459 | | |
469 | 460 | | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | 461 | | |
474 | 462 | | |
475 | 463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | 314 | | |
316 | 315 | | |
317 | 316 | | |
318 | 317 | | |
319 | 318 | | |
320 | | - | |
321 | 319 | | |
322 | 320 | | |
323 | 321 | | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | 322 | | |
331 | 323 | | |
332 | 324 | | |
| |||
0 commit comments