From e6caafd9d7fbfcb5906d22be9d6a3c1714e078ac Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Wed, 16 May 2012 21:08:37 +0200 Subject: nv50,nvc0: handle user vertex buffers And restructure VBO validation a little in the process. --- src/gallium/drivers/nvc0/nvc0_stateobj.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/nvc0/nvc0_stateobj.h') diff --git a/src/gallium/drivers/nvc0/nvc0_stateobj.h b/src/gallium/drivers/nvc0/nvc0_stateobj.h index 5afbffb7d22..edab60bea5b 100644 --- a/src/gallium/drivers/nvc0/nvc0_stateobj.h +++ b/src/gallium/drivers/nvc0/nvc0_stateobj.h @@ -49,11 +49,13 @@ struct nvc0_vertex_element { }; struct nvc0_vertex_stateobj { + uint32_t min_instance_div[PIPE_MAX_ATTRIBS]; + uint16_t vb_access_size[PIPE_MAX_ATTRIBS]; struct translate *translate; unsigned num_elements; uint32_t instance_elts; uint32_t instance_bufs; - uint16_t vb_access_size[PIPE_MAX_ATTRIBS]; + boolean shared_slots; boolean need_conversion; /* e.g. VFETCH cannot convert f64 to f32 */ unsigned size; /* size of vertex in bytes (when packed) */ struct nvc0_vertex_element element[0]; -- cgit v1.2.3