![]() |
Precompiled shader binary possible on N900?
Hello all,
I'm trying to implement GPU-based image processing on N900. Part of this is running pieces of data through GLSL fragment shader. The shader code itself is somewhat complex, but nothing extraordinary. And I am happy with performance of the shader but the time required to compile this particular shader source code on N900 is ridiculous 90 sec! Nevertheless, the driver on N900 claims that it has support for shader precompiled binary (GL_IMG_shader_binary) with correspondent shader binary format GL_SGX_BINARY_IMG. So, I decided it should be possible to load pre-compiled binary instead and avoid on-line compilation altogether. I've tried to pre-compile shader with PVRUniSco compiler from POWERVR Inside SDK at http://www.imgtec.com/powervr/inside...ndex.asp#GLES2 (the version marked for N900) and then load it simply with Code:
FILE *fr = fopen ("shader.fsc", "rb"); Any ideas ? What am I doing wrong? |
Precompiled shader binary possible on N900?
Hmm. The discussion here:
http://www.imgtec.com/forum/forum_posts.asp?TID=1121 suggests that I might need some special version of compiler matching exactly the SGX driver version on N900. So, the question is: Where do I get it? |
Re: Precompiled shader binary possible on N900?
If the source does copile in the N900 itself, can't you somehow make it save the copiled result to disk?
|
Re: Precompiled shader binary possible on N900?
Quote:
|
Re: Precompiled shader binary possible on N900?
Have you tried downloading the Khronos Windows SDK and run your shader on their emulator? This way you can make sure if it's the shader causing problems or something else.
If I remember correctly the SDK also allows you to compile your own shaders and output them to a file. |
Re: Precompiled shader binary possible on N900?
Quote:
Quote:
|
All times are GMT. The time now is 16:09. |
vBulletin® Version 3.8.8