-
Notifications
You must be signed in to change notification settings - Fork 17
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
Implement glScissor support #13
Comments
And this is what is generated by mesa currently
@yuq Any ideas how to fix this? I've tried to skip adding plbu cmd if scissor is zero, but it didn't worked (it was generating second plbu cmd list empty). |
PLBU cmd is necessary for every frame. You may try to generate binary mali driver like PLBU cmd when scissor is 0. |
I've already done this and posted in first comment (with some comments). |
BTW. do we need to do anything if scissor is 0? |
I think we should render empty screen (since we set that we don't want anything to display). |
To my understanding, if set scissor to 0, no following draw should apply to the frame buffer, including the glClear(). So this frame buffer should remain the same as last none-zero draw result. Can you make an experiment by running the scissor test on a normal desktop with AMD/NV mesa driver to see what's expected result? If we need do nothing, we may skip the draws when scissor is 0. |
Made a test using mali binary driver - it rendered an empty screen (dumped using mali syscall tracker). Edit 1: GL_VENDOR "Intel Open Source Technology Center" Edit 2: Edit 3: |
Then we can just skip draws when scissor=0 for now. |
Working implementation (for both zero and non zero scissor) in #15.
It turns out that we can't skip drawing.
|
TODO
|
It's mostly done on #10.
There is only one case to handle - when scissors = (0,0,0,0)
The text was updated successfully, but these errors were encountered: