st/nine: Introduce failure handling for shader parsing.
authorAxel Davy <axel.davy@ens.fr>
Wed, 7 Jan 2015 11:00:00 +0000 (12:00 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 5 Feb 2015 23:07:18 +0000 (00:07 +0100)
commitd0aeb4422bcc9f2d257d046935243f7cdf9bc620
treedf3d583c8f99ada0f2cb1aee52017f0f9f5b2051
parent6fcc2c887279e6c03b2e7df0f869bd05c99faf28
st/nine: Introduce failure handling for shader parsing.

Instead of crashing on buggy shaders, we should return an error.
This patch introduces this behaviour in the case of invalid constant
access

Reviewed-by: Tiziano Bacocco <tizbac2@gmail.com>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/nine_shader.c