Allowed types for gallium osmesa
ardi <[email protected]>
| Newsgroups | gmane.comp.video.mesa3d.user |
|---|---|
| Message-ID | <CA+fZqCVJGiWLK31ZeamoCADh-9R3dnbc2CTVK_-xzv+VzqsmpQ@mail.gmail.com> |
Hi! I got a bit scared after reading about the removal of osmesa, because my main use for mesa is precisely as an auxiliary offscreen renderer (and with mangled functions, so that they don't interfere with the host vendor implementation), but then the shock vanished when I read that osmesa is still available with gallium (which in fact is my preferred choice, with llvmpipe). But now, reading osmesa.h, I see the comment "only GL_UNSIGNED_BYTE supported now" in OSMesaMakeCurrent at include/GL/osmesa.h ...anyway it seems to be an outdated comment (I hope so), because by taking a look at gallium/frontends/osmesa/osmesa.c more types seem to be implemented for gallium (namely GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, and GL_FLOAT). And this brings my question: would it be possible to add support to GL_UNSIGNED_INT? I'm asking this because I'm into HDR, and while I'm very happy to have GL_UNSIGNED_SHORT and GL_FLOAT, having GL_UNSIGNED_INT would be ideal because OpenEXR supports 32bit unsigned ints (and it doesn't support 16bit ints, BTW). Kind regards, ardi