This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

glShaderBinary error message = 1281

I use mali_offline_compiler transform
the VertexScene.txt to VertexScene.bin as follows
malioc --opengles -c Mali-G31 --vertex D:VertexScene.txt -o D:VertexScene.bin

and use the VertexScene.bin to compiler

while we run the glShaderBinary

type=GL_VERTEX_SHADER
format=GL_MALI_SHADER_BINARY_ARM

and output the error message as follows

err=1281

Any body can tell me what is the problem?

  • If you have access to the DDK build of the offline compiler that can generate binaries please raise a support case and we can handle there, as it's not a public tool. 

    Two general pieces of advice though:

    • Binaries generated by the offline compiler are specific to the GPU hardware and driver version that the DDK was built for. If you update driver versions you will need to update the offline compiler build too.
    • In general we do not recommend shipping binaries built with the offline compiler, as it misses optimization passes that are present in the DDK compiler, as so they are often less efficient. Instead we would suggest using glGetProgramBinary() to cache binaries that were built using the driver present on the target.

    Kind regards,

    Pete

  • Hi Peter,

    (1) Is there any user guide about the DDK can let me to study. I have no idea about the DDK.

    (2) I load the vertexScene.txt directly and use the glGetProgramBinary() to compile. There is the error message below. GL_PROGRAM_BINARY_SIZE was not declared in the scope. How to fix the error?

    code

    error message

  • Is there any user guide about the DDK can let me to study. I have no idea about the DDK.

    Yes, guides should be in the driver DDK download bundle your company licensed. As above, if you need more help please raise a support case, as we cannot discuss confidential material on a public forum. 

    For your error, I think it should be GL_PROGRAM_BINARY_LENGTH.

    Kind regards, 
    Pete