diff options
author | Chia-I Wu <[email protected]> | 2013-06-01 02:00:55 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-06-07 11:13:15 +0800 |
commit | 70e78211d6c09b3076ac261d2cde9d0037540065 (patch) | |
tree | f9cc047a59838302e2aff736eef02f49a82bc862 /src/gallium/drivers/ilo/ilo_state.c | |
parent | d4fa98db0c9a5d640fee946c713c8d06597e47f3 (diff) |
ilo: introduce vertex element CSO
Introduce ilo_ve_cso and initialize it in create_vertex_elements_state().
This commit goes a step further by setting up mappings from HW VB to PIPE VB,
which we failed to do previously. That allows us to support instanced
rendering.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_state.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_state.c b/src/gallium/drivers/ilo/ilo_state.c index c032e177673..502297e5591 100644 --- a/src/gallium/drivers/ilo/ilo_state.c +++ b/src/gallium/drivers/ilo/ilo_state.c @@ -438,13 +438,13 @@ ilo_create_vertex_elements_state(struct pipe_context *pipe, unsigned num_elements, const struct pipe_vertex_element *elements) { + struct ilo_context *ilo = ilo_context(pipe); struct ilo_ve_state *ve; ve = MALLOC_STRUCT(ilo_ve_state); assert(ve); - memcpy(ve->states, elements, sizeof(*elements) * num_elements); - ve->count = num_elements; + ilo_gpe_init_ve(ilo->dev, num_elements, elements, ve); return ve; } |