diff options
author | Axel Davy <axel.davy@ens.fr> | 2015-01-07 11:07:23 +0100 |
---|---|---|
committer | Axel Davy <axel.davy@ens.fr> | 2015-02-06 00:07:18 +0100 |
commit | a249c7a161cdbb995b17195f1af88ed14f69f8b6 (patch) | |
tree | ab7af507defc4faf5bbc588f2534b9f2d091b118 /src/gallium/state_trackers/nine/vertexshader9.c | |
parent | 65ca8e4b3d6903ef086b81a5bf94688898290c4f (diff) | |
download | external_mesa3d-a249c7a161cdbb995b17195f1af88ed14f69f8b6.zip external_mesa3d-a249c7a161cdbb995b17195f1af88ed14f69f8b6.tar.gz external_mesa3d-a249c7a161cdbb995b17195f1af88ed14f69f8b6.tar.bz2 |
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>
Diffstat (limited to 'src/gallium/state_trackers/nine/vertexshader9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/vertexshader9.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/vertexshader9.c b/src/gallium/state_trackers/nine/vertexshader9.c index 3d40d60..bbd5ce9 100644 --- a/src/gallium/state_trackers/nine/vertexshader9.c +++ b/src/gallium/state_trackers/nine/vertexshader9.c @@ -72,8 +72,6 @@ NineVertexShader9_ctor( struct NineVertexShader9 *This, This->variant.cso = info.cso; This->const_used_size = info.const_used_size; - if (info.const_used_size == ~0) - This->const_used_size = NINE_CONSTBUF_SIZE(device->max_vs_const_f); This->lconstf = info.lconstf; This->sampler_mask = info.sampler_mask; This->position_t = info.position_t; |