18:33 linkmauve: 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:33 linkmauve: Is sRGB not possible to support on this hardware, or is it just not implemented?
18:37 linkmauve: Oh but there is EGL_KHR_gl_colorspace, so at least for rendering that should be fine.
19:17 enunes: 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:20 enunes: 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:24 enunes: even in CI lots of srgb-related known failures though
19:24 linkmauve: 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:25 enunes: for textures I think there is a lowering that we never wired up
19:27 linkmauve: Lowering in the shaders, so that it would do the conversion on texture2D()?
19:28 linkmauve: Ah, GL_EXT_sRGB is also about drawing to arbitrary framebuffers, with the equation provided.
19:33 enunes: yes lowering in shaders, I believe we never finished handling that properly, which explains the remaining CI failures
19:36 enunes: 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:38 linkmauve: I can try to give it a try. :)
19:40 linkmauve: I see vc4 has it enabled, I’ll have a look at that driver.
19:40 linkmauve: Too bad I don’t have any board supported by that driver.
19:43 linkmauve: enunes, how can I run the CI locally to get the failures?
19:43 linkmauve: I could write a small program using sRGB otherwise.
19:43 linkmauve: Or should I instead run the cts?
19:44 enunes: you can build the CTS locally or also piglit has failing srgb tests as well
19:45 enunes: .gitlab-ci/container/build-deqp.sh in mesa has how the CTS is built in CI
19:46 enunes: 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:27 linkmauve: /usr/bin/ld: final link failed: No space left on device
20:27 linkmauve: Fail. ^^'
20:27 linkmauve: I should have bought a bigger microSD.
20:28 linkmauve: Thankfully my newer boards have a NVMe slot so I can use better storage.
20:31 linkmauve: Ugh, and egl-util.c depends on Xlib, even though I have passed -DPIGLIT_USE_X11=false…
22:31 linkmauve: Oh, I got access to a vc4 board and it also doesn’t expose GL_EXT_sRGB, for some reason.
22:32 linkmauve: Running Mesa 24.1.4.