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

[BUG] incorrect glDisable(GL_FRAMEBUFFER_SRGB) for MRT #41

Open
zhaijialong opened this issue Jun 5, 2019 · 4 comments
Open

[BUG] incorrect glDisable(GL_FRAMEBUFFER_SRGB) for MRT #41

zhaijialong opened this issue Jun 5, 2019 · 4 comments
Labels

Comments

@zhaijialong
Copy link

zhaijialong commented Jun 5, 2019

Description

Hi,

I find the emulator will add a glDisable(GL_FRAMEBUFFER_SRGB) call in the underlying OpenGL implementation for every draw, if my current FBO contains SRGB color attachement in GL_COLOR_ATTACHMENT1 or 2, 3, etc.

If the GL_COLOR_ATTACHMENT0 is SRGB format, the emulator works correctly, it calls glEnable(GL_FRAMEBUFFER_SRGB).

Maybe the underlying implementation only check color attachement 0.

Repro steps

  • Create a FBO contains 3 color attachments with format:
    color0 : rgb10a2
    color1 : rgba8_srgb
    color2 : rgba8_srgb

  • bind the fbo and make some drawcalls

  • you will see the emulator calls glDisable(GL_FRAMEBUFFER_SRGB) before every draw in some graphics debugger( such as Renderdoc).

Environment

  • SDK version: 18.2@5236813
  • Operating System/Device: Windows 10/ GTX 1060

Additional Info

@zhaijialong zhaijialong added the bug label Jun 5, 2019
@graptis
Copy link
Contributor

graptis commented Jun 5, 2019

Hi @zhaijialong,
Thanks for the report.
I have forwarded this to the engineers responsible for PVRVFrame, but since this is a matter of Tools and not the actual codebase of the SDK, support will arguably be better in https://forums.imgtec.com/ which are for this purpose only. I would suggest opening an issue there (as well?).
(We can still keep this issue open, but probably feedback will be sparse).

@zhaijialong
Copy link
Author

@graptis
Thanks for your reply.
I signed in and openned a topic in https://forums.imgtec.com/, and then it says my account is "temporarily placed on hold" and the topic can't be seen.

@graptis
Copy link
Contributor

graptis commented Jun 6, 2019

Hi @zhaijialong , sorry about that something strange happened when your account was opened, IT tells me it should be OK now.

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