18:33linkmauve: Hi, I’ve noticed that we expose GL_NV_generate_mipmap_sRGB but not GL_EXT_sRGB, which sounds like a requirement for it.
18:33linkmauve: Is sRGB not possible to support on this hardware, or is it just not implemented?
18:37linkmauve: Oh but there is EGL_KHR_gl_colorspace, so at least for rendering that should be fine.
19:17enunes: linkmauve: I never looked into it, but looks like lima offers some srgb framebuffer formats so we expose GL_EXT_framebuffer_sRGB which allows GL_NV_generate_mipmap_sRGB
19:20enunes: don't know if GL_EXT_sRGB should also be there in the case of GLES or if there is some bug and we should not expose GL_NV_generate_mipmap_sRGB in that case?
19:24enunes: even in CI lots of srgb-related known failures though
19:24linkmauve: enunes, GL_EXT_sRGB is about being able to use textures in sRGB (that is, to convert them to linear before doing operations on them), whereas EGL_KHR_gl_colorspace is about the default framebuffer, AIUI.
19:25enunes: for textures I think there is a lowering that we never wired up
19:27linkmauve: Lowering in the shaders, so that it would do the conversion on texture2D()?
19:28linkmauve: Ah, GL_EXT_sRGB is also about drawing to arbitrary framebuffers, with the equation provided.
19:33enunes: yes lowering in shaders, I believe we never finished handling that properly, which explains the remaining CI failures
19:36enunes: if you try that and find out and it really doesn't work as advertised, feel free to file an issue and I could look into that again at some point (or patch :)
19:38linkmauve: I can try to give it a try. :)
19:40linkmauve: I see vc4 has it enabled, I’ll have a look at that driver.
19:40linkmauve: Too bad I don’t have any board supported by that driver.
19:43linkmauve: enunes, how can I run the CI locally to get the failures?
19:43linkmauve: I could write a small program using sRGB otherwise.
19:43linkmauve: Or should I instead run the cts?
19:44enunes: you can build the CTS locally or also piglit has failing srgb tests as well
19:45enunes: .gitlab-ci/container/build-deqp.sh in mesa has how the CTS is built in CI
19:46enunes: src/gallium/drivers/lima/ci/lima-fails.txt has the current fails if you search for srgb you can see there are lots of them
20:27linkmauve: /usr/bin/ld: final link failed: No space left on device
20:27linkmauve: Fail. ^^'
20:27linkmauve: I should have bought a bigger microSD.
20:28linkmauve: Thankfully my newer boards have a NVMe slot so I can use better storage.
20:31linkmauve: Ugh, and egl-util.c depends on Xlib, even though I have passed -DPIGLIT_USE_X11=false…
22:31linkmauve: Oh, I got access to a vc4 board and it also doesn’t expose GL_EXT_sRGB, for some reason.
22:32linkmauve: Running Mesa 24.1.4.