Commit abef58c
Ewan Crawford
Remove command-buffer Invalid state (#885)
* Remove command-buffer Invalid state
It was discovered during cl_khr_command_buffer layered extension review
that the
[Invalid command-buffer state](https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_Ext.html#_add_new_section_section_5_x_1_command_buffer_lifecycle)
is undesirable.
An approach more in-keeping with the OpenCL philosophy is for an OpenCL
object to be able to update the reference count of the OpenCL objects it
uses. Keeping those objects alive for its lifetime, rather than having a
specific validity check. This change specifies that command-buffers
match that behaviour. Any validity checking further than that may be
expensive, and should not be mandated.
There is also a clarification in this change that interleaving queue
submissions with command recording to the same queue is valid.
* Warning about clSetKernelArg
Add non-normative text warning that objects used
as arguments to kernels recorded to a command-buffer do
not have their reference count updated.
* American English spelling of "behavior"
Change "behaviour" to "behavior" in command-buffer
related specs.
* Use term "attached"
The term "attached" is more consistent with the existing OpenCL
spec with regards to how reference counting is specified.
* Expand kernel argument note about safe usage
Elaborate on the note about ref counting not being
done on kernel arguments, with recommendations for users
not to free objects used as kernel arguments until
the command-buffer is deleted.
* Move mutable-dispatch note to own spec
Based on working-group feedback that the information
about mutable-dispatch safe usage shouldn't live in the
base specification, but instead be linked to.1 parent a25dfe2 commit abef58c
5 files changed
Lines changed: 63 additions & 463 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
399 | 400 | | |
400 | 401 | | |
401 | 402 | | |
402 | | - | |
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
495 | 525 | | |
496 | 526 | | |
497 | 527 | | |
| |||
510 | 540 | | |
511 | 541 | | |
512 | 542 | | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
519 | 547 | | |
520 | | - | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
521 | 559 | | |
522 | 560 | | |
523 | 561 | | |
| |||
622 | 660 | | |
623 | 661 | | |
624 | 662 | | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | 663 | | |
641 | 664 | | |
642 | 665 | | |
| |||
1575 | 1598 | | |
1576 | 1599 | | |
1577 | 1600 | | |
1578 | | - | |
1579 | | - | |
1580 | | - | |
1581 | 1601 | | |
1582 | 1602 | | |
1583 | 1603 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
444 | 458 | | |
445 | 459 | | |
446 | 460 | | |
| |||
455 | 469 | | |
456 | 470 | | |
457 | 471 | | |
458 | | - | |
| 472 | + | |
459 | 473 | | |
460 | 474 | | |
461 | | - | |
| 475 | + | |
462 | 476 | | |
463 | 477 | | |
464 | 478 | | |
| |||
Loading
0 commit comments