The source project of this merge request has been removed.
WIP: shader: limit the max tokens for tgsi
During shader creation, limit the number of tgsi tokens to prevent out-of-memory exploit.
Ideally, we should tgsi parse/translate the shader segmentally but limit it should be sufficient.
TEST=webgl_aquarium
TEST=piglit
Edited by Pohsien Wang