-
Notifications
You must be signed in to change notification settings - Fork 544
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
Color space issues with SRGB framebuffer in OpenGL #1915
Comments
Related: ocornut/imgui#578 |
https://www.mapd.com/docs/latest/getting-started/hwRefCfgGuide/ NVIDIA Tesla P40 Will it handle any GPU card such as radeon? |
may be i posted the question incorrectly. |
This actually looks like a problem with The TitleBg color above, for example is the sRGB components divided by 255 to incorrectly place them into linear space without a gamma transform. So I'm going to close this in favor of #997 |
2110: dx12: Add dynamically sized CPU descriptor heaps r=kvark a=msiglreith Dynamic allocator for CPU descriptor heaps. We currently have 2 ways of allocating CPU descriptors: from a device global heap and command local linear allocators. This PR cleans up the two paths a bit and fixes the current size limitation for the first kind by dynamically creating new small fixed size CPU heaps. Freeing currently not support but that's not an regression as we didn't support it before either. Small 'regression' concerning `fill_buffer` which was implemented incorrectly as far as I can see. Probably would work only on AMD. This breaks the fill reftests. Fixes #1915 PR checklist: - [x] tested quad, relevant CTS and a few vulkan samples with the following backends: dx12 Co-authored-by: msiglreith <[email protected]>
Short info header:
Today I started updating the
gfx
dependency inimgui-rs
. One of the things I noticed is that theimgui-gfx-renderer
looks washed out compared toimgui-glium-renderer
. It took me all day to find the cause, which turned out to be a color space mismatch between the (linear space) colors provided byimgui
in the vertex attribute buffer, and thegfx_device_gl
backend forcefully enabling SRGB on the framebuffer.I was able to reproduce it by patching the
gamma
example to use the purple title bar color from imgui instead of the grayscale. Here's the patch:And here's a screenshot, showing the color rendered incorrectly:
When I disable the SRGB framebuffer (using unsafe code), the rendering works as expected:
As a final data point, here are some screenshots of the
imgui-rs
hello_gfx example; the latter screenshot has the SRGB-disable workaround to fix the #colors:May be related to: #992 #997
The text was updated successfully, but these errors were encountered: