st/nine: Check for the correct number of constants.
authorAxel Davy <axel.davy@ens.fr>
Wed, 7 Jan 2015 11:01:50 +0000 (12:01 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 5 Feb 2015 23:07:18 +0000 (00:07 +0100)
commit1f3b7d40392c2a9e0b80c56e199c4c9ffd0c88a0
tree0f79a6ebccb133a440de98221d0f787ac63d45a9
parentd0aeb4422bcc9f2d257d046935243f7cdf9bc620
st/nine: Check for the correct number of constants.

This removes unneeded hack for Anno 1404.
This app is not checking the number of supporting
constants, and rely on the shader compilation to fail
if it puts too many constants.

This patch also checks for the correct number of constants for ps.

Note that we don't check the official limitations for old vs and ps
versions. The restrictions were fixed, unlike for the number of vertex
shader constants for later versions. Likely apps use the correct number,
and it's not a problem for us if it wants use more.

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