From: <bug...@fr...> - 2005-04-30 12:39:48
|
Please do not reply to this email: if you want to comment on the bug, go to the URL shown below and enter yourcomments there. https://bugs.freedesktop.org/show_bug.cgi?id=3165 Summary: texImage.IsCompressed and texImage.CompressedSize issues Product: Mesa Version: CVS Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Mesa core AssignedTo: mes...@li... ReportedBy: fx...@gm... texImage.IsCompressed and texImage.CompressedSize are set in _mesa_init_teximage_fields based on the texture's internalFormat specified by the application. However, the driver may want to choose an uncompressed format instead of a compressed one or it may want to compress textures with e.g. internalFormat=GL_COMPRESSED_RGBA, which is not recognized as compressed right now. In such cases IsCompressed ends up being clearly wrong and leads to weird crashes later on. I suspect that wrong texture image sizes and/or row strides in _mesa_store_teximage_... are responsible. I believe texImage.IsCompressed and texImage.CompressedSize should be initialized after the driver has chosen a hardware texture format and based on that hardware format instead of the internalFormat specified by the application. Does that make sense or am I trying to do something stupid? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. |