diff options
author | Axel Davy <[email protected]> | 2015-01-07 11:07:23 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2015-02-06 00:07:18 +0100 |
commit | a249c7a161cdbb995b17195f1af88ed14f69f8b6 (patch) | |
tree | ab7af507defc4faf5bbc588f2534b9f2d091b118 /src/gallium/state_trackers/nine/vertexshader9.c | |
parent | 65ca8e4b3d6903ef086b81a5bf94688898290c4f (diff) |
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 <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
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 3d40d60c062..bbd5ce99d9a 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; |