# Need OpenGL ES 2.0 offline compiler

**URL:** <https://forums.imgtec.com/t/need-opengl-es-2-0-offline-compiler/2671>\
**Category:** PowerVR Insider\
**Created:** [May 9, 2018, 5:48am UTC](https://forums.imgtec.com/t/need-opengl-es-2-0-offline-compiler/2671 "2018-05-09T05:48:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikaspatil19](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vikaspatil19](https://forums.imgtec.com/u/vikaspatil19)\
**Post date:** [May 9, 2018, 5:48am UTC](https://forums.imgtec.com/t/need-opengl-es-2-0-offline-compiler/2671/1 "2018-05-09T05:48:09Z")

</div>

Hi Team,

To debug shader related issues I need offline shader compiler for windows or linux using which I can generate binary shaders. Following is the platform details that I am using.

Platform: Jacinto 6 (DRA746) with Linux.  
GPU version: SGX 544 MP2  
SGX DDK Version: 1.14@3699939

Could you please help?

Best Regards,  
Vikash

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [May 9, 2018, 8:38am UTC](https://forums.imgtec.com/t/need-opengl-es-2-0-offline-compiler/2671/2 "2018-05-09T08:38:41Z")

</div>

Hi Vikash,

To debug this issue, use the current version of PVRShaderEditor and select the PowerVR Series5XT compiler.  
The compilers in the SDK will not generate binary shaders because thiey are platform dependent.  
To be able to get binary shaders for your platform, please use the glGetProgramBinaryOES extension in your code. Here is an [example](https://github.com/powervr-graphics/Native_SDK/tree/3.5/Examples/Advanced/BinaryShader)

Best regards

Carlos.

---

<div class="post-metadata">

**Author:** ![vikaspatil19](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vikaspatil19](https://forums.imgtec.com/u/vikaspatil19)\
**Post date:** [May 9, 2018, 10:46am UTC](https://forums.imgtec.com/t/need-opengl-es-2-0-offline-compiler/2671/3 "2018-05-09T10:46:50Z")

</div>

Hi Carlos,

Yes, I am aware of PVRShaderEditor tool. However when I select “Configure Current Compiler” under “tools” menu compiler version it shows “SGX543 rev 303 1.9@2650911” for PowerVR Series5XT selection. While J6 is based on different version of SGX and DDK.

Is possible could you share the bianry for compiler for SGX544 MP2?

Best Regards,  
Vikash

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [May 9, 2018, 1:24pm UTC](https://forums.imgtec.com/t/need-opengl-es-2-0-offline-compiler/2671/4 "2018-05-09T13:24:12Z")

</div>

Hi Vikash,

For debugging and profiling purposes SGX543 and SGX544 have the same instruction set, so you should not worry about the differences.  
For compiling binary shaders, the HW revision and the exact version of the DDK does matter, so it is not possible for us to release a compiler for this specific platform. TI on the other hand, might be able to supply one to you.  
I believe the easiest and safest way is to extract the binary shaders with the extension I mention above.

Regards.

Carlos.

---

<div class="post-metadata">

**Author:** ![vikaspatil19](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vikaspatil19](https://forums.imgtec.com/u/vikaspatil19)\
**Post date:** [May 11, 2018, 10:05am UTC](https://forums.imgtec.com/t/need-opengl-es-2-0-offline-compiler/2671/5 "2018-05-11T10:05:08Z")

</div>

Thank you Carlos for your quick support. I will check with TI and your suggestion.

Best Regards,  
Vikash
