Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

vwv pixel shader code is too complex #19

Closed
khusmann opened this Issue Jul 28, 2011 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

khusmann commented Jul 28, 2011

When trying to run vwv on my netbook (with a less than powerful graphics card), I get the error:

i915_program_error: Exceeded max instructions (213 out of 123)

This is because the fragment shader code (https://github.com/visionworkbench/visionworkbench/blob/master/src/vw/gui/GlPreviewWidget.cc#L37) has too many nested-if statements.

To minimize the number of instructions in the shader, it would be better to break that single pixel shader into multiple shaders that are swapped in depending on what function (channel select, hillshade, etc) is selected. This way it would run on graphics cards like mine.

Contributor

ScottMcMichael commented Jan 15, 2016

This code was moved to the graveyard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment