These are chat archives for highfidelity/hifi

19th
Aug 2017
Christoph Haag
@ChristophHaag
Aug 19 2017 10:34
anyone here who knows opengl well?
i'm trying to get hifi to work on mesa
first thing is to update glew to 2.1 to get rid of glewExperimental ChristophHaag/hifi@b553345
that also makes the ext versions of glTextureSubImage2DEXT etc. unavailable, so I'd like to use the core versions ChristophHaag/hifi@548b38c
Christoph Haag
@ChristophHaag
Aug 19 2017 10:39
now the sky box is corrupted. the other textures seem to work fine
Christoph Haag
@ChristophHaag
Aug 19 2017 10:46
hm there is something wrong with the compressed one Mesa: User error: GL_INVALID_ENUM in glCompressedTextureSubImage2D(invalid target GL_TEXTURE_CUBE_MAP)
Christoph Haag
@ChristophHaag
Aug 19 2017 10:58
I have a feeling the other textures only work because of dumb luck
the driver seems to only like GL_TEXTURE_CUBE_MAP in the 3d case so I shall try the 3d version of the function https://cgit.freedesktop.org/mesa/mesa/tree/src/mesa/main/teximage.c#n1522
Christoph Haag
@ChristophHaag
Aug 19 2017 11:14
doesn't really help and it randomly hits an assertion interface: cik_sdma.c:192: cik_sdma_copy_texture: Assertion `rdst->surface.u.legacy.level[dst_level].offset + dst_slice_pitch bpp (dstz + src_box->depth) <= rdst->resource.buf->size' failed.
perhaps the right tool to use would be valgrind
Christoph Haag
@ChristophHaag
Aug 19 2017 17:48
never mind, was a bug in mesa
Christoph Haag
@ChristophHaag
Aug 19 2017 22:26
it lives!