https://bugs.freedesktop.org/show_bug.cgi?id=106283
Bug ID: 106283
Summary: Shader replacements works only for limited use cases
Product: Mesa
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: medium
Component: glsl-compiler
Assignee: mesa-dev@lists.freedesktop.org
Reporter: i...@yahoo.com
QA Contact: intel-3d-b...@lists.freedesktop.org
In the mesa documentation here: https://www.mesa3d.org/shading.html#envvars
you can find a section about "Shader Replacement" that tells you how you can
dump the source of GLSL shaders and even replace some shaders with your own.
Unfortunately, I couldn't make this work for the app that is having a problem.
I dig a bit in the Mesa code and came to the conclusion that the dump&replace
works only for the glProgramStringARB(), while the app seems to provide the
shader through glShaderSourceARB() that seems to be completely separate from
the code that supports dump&replace.
It would be nice if this feature could work with all code paths.
In the past, I've been able to narrow down at least two R600 assembly bugs, by
tweaking the shaders that generate them (using d3d9 library that can do that).
It's very disappointing that Mesa has the functionality, but it works only for
a limited code paths.
At very least, document properly that quirk.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev