summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/stateblock9.c
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2015-01-02 14:22:17 +0100
committerEmil Velikov <[email protected]>2015-01-22 22:16:24 +0000
commitb9cbea9dbc75630061236c9858cbc0e2b5b18974 (patch)
treeb7bd80d7e2e7dce403c780f328d902eb2b727f7e /src/gallium/state_trackers/nine/stateblock9.c
parenta721987077ae22e0c373ea118113361aada2024e (diff)
st/nine: Add variables containing the size of the constant buffers
Reviewed-by: Tiziano Bacocco <[email protected]> Signed-off-by: Axel Davy <[email protected]> Cc: "10.4" <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/stateblock9.c')
-rw-r--r--src/gallium/state_trackers/nine/stateblock9.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/stateblock9.c b/src/gallium/state_trackers/nine/stateblock9.c
index 36b5e7773ca..220b19618b1 100644
--- a/src/gallium/state_trackers/nine/stateblock9.c
+++ b/src/gallium/state_trackers/nine/stateblock9.c
@@ -43,8 +43,8 @@ NineStateBlock9_ctor( struct NineStateBlock9 *This,
This->type = type;
- This->state.vs_const_f = MALLOC(pParams->device->constbuf_vs->width0);
- This->state.ps_const_f = MALLOC(pParams->device->constbuf_ps->width0);
+ This->state.vs_const_f = MALLOC(This->base.device->vs_const_size);
+ This->state.ps_const_f = MALLOC(This->base.device->ps_const_size);
if (!This->state.vs_const_f || !This->state.ps_const_f)
return E_OUTOFMEMORY;