Summary: | GL_PROGRAM_BINARY_LENGTH always reports 0 | ||
---|---|---|---|
Product: | Mesa | Reporter: | Dale Weiler <weilercdale> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED NOTABUG | QA Contact: | mesa-dev |
Severity: | major | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Dale Weiler
2015-11-21 04:18:42 UTC
A minor quick fix may look something like this: >> size_t size = 0; >> case GL_PROGRAM_BINARY_LENGTH: >> free(mesa_program_serialize(shProg, &size)); >> *params = size; >> return; Though to be fair, mesa_program_serialize should have an option to query just the size without allocating memory (using blob.position()) Mesa does not support program binary extension, you seem to be using a custom branch (?) The extension is supported, but there are no binary formats supported. Since there is no binary format, there is no data in any binary format. It's a bit of a dirty trick, but it is what it is. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.