st/nine: Refactor how user constbufs sizes are calculated
authorAxel Davy <axel.davy@ens.fr>
Wed, 7 Jan 2015 10:07:23 +0000 (11:07 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 5 Feb 2015 23:07:18 +0000 (00:07 +0100)
commita249c7a161cdbb995b17195f1af88ed14f69f8b6
treeab7af507defc4faf5bbc588f2534b9f2d091b118
parent65ca8e4b3d6903ef086b81a5bf94688898290c4f
st/nine: Refactor how user constbufs sizes are calculated

Count explicitly the slots for float, int and bool constants,
and deduce the constbuf size in nine_shader.

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_shader.h
src/gallium/state_trackers/nine/nine_state.h
src/gallium/state_trackers/nine/pixelshader9.c
src/gallium/state_trackers/nine/vertexshader9.c