Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson 6 frameBuffer.s Alignment Inconsistency #7

Open
mviz opened this issue Jun 10, 2015 · 2 comments
Open

Lesson 6 frameBuffer.s Alignment Inconsistency #7

mviz opened this issue Jun 10, 2015 · 2 comments
Labels

Comments

@mviz
Copy link
Contributor

mviz commented Jun 10, 2015

In Lesson 6 part 4 (My Dearest Graphics Processor), it mentions the importance of using .align 4 such that the lower 4 bits are 0s. The solution uses .align 12 as page alignment, justified for correct communication with the GPU. Is this a mistake?

@Chadderz121
Copy link
Owner

.align 4 is correct and sufficient. .align 12 came from some of my early experiments when I didn't understand the GPU caching behaviour. The solution should be corrected, not the tutorial text. I'll leave this issue open as a reminder to do that.

@ghost
Copy link

ghost commented Apr 16, 2018

The bug is still open which is causing the confusion in understanding alignment the concept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants