atomic page flip and mode setting hardware structure and
play

Atomic page flip and mode setting Hardware structure and abstraction - PowerPoint PPT Presentation

Atomic page flip and mode setting Hardware structure and abstraction Atomic page flip The hardware will compose the final image from two layers. Atomic page flip Animating the scene Atomic page flip There are problems with


  1. Atomic page flip and mode setting

  2. Hardware structure and abstraction

  3. Atomic “page flip” The hardware will compose the final image from two layers.

  4. Atomic “page flip” Animating the scene

  5. Atomic “page flip” There are problems with animating the scene

  6. Double buffered registers ◮ Hardware maintains two register files ◮ First register file is written by the CPU ◮ Second register file is latched from the first one at vblank start

  7. Double buffered registers Problem: Hardware doesn’t guarantee atomicity

  8. Double buffered registers Solution: Prevent CPU from writing to registers near vblank start

  9. Kernel API Transactional vs. one-shot

  10. Kernel API Possible issues with transactional API

  11. Kernel API

  12. Kernel internal API begin(); set(); set(); set(); ... check(); commit(); end();

  13. Completion events fps ≤ vertical refresh rate

  14. Completion events fps > vertical refresh rate

  15. Atomic mode setting ◮ Total shared resource available: 3N Starting conditions: ◮ Display 1 resource requirement: N ◮ Display 2 resource requirement: N N + N < = 3 N

  16. Atomic mode setting Step 1: Change mode on display 1 ◮ Display 1 resource requirement: 2N ◮ Display 2 resource requirement: N 2 N + N < = 3 N

  17. Atomic mode setting Step 2: Change mode on display 2 ◮ Display 1 resource requirement: 2N ◮ Display 2 resource requirement: 2N 2 N + 2 N > 3 N Need to roll back mode change on display 1.

  18. Atomic mode setting Solution: Combine steps 1 and 2 into a single step. The final state can be checked before the hardware state is clobbered, and thus there is no need for rolling back.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend