diff options
author | Chia-I Wu <[email protected]> | 2013-05-29 14:25:34 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-06-07 11:13:14 +0800 |
commit | 6b14b392d04d8f1b43d565f65cdbd738b9f950a7 (patch) | |
tree | cbb8d861f73a43f95d8fb7b9d848b9f872d4d47d /src/gallium/drivers/ilo/ilo_3d.c | |
parent | f0af29223957a94e24ae45921da080bc99037d69 (diff) |
ilo: switch to ilo states for VF stage
Define and use
struct ilo_vb_state;
struct ilo_ve_state;
struct ilo_ib_state;
in ilo_context.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_3d.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_3d.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/gallium/drivers/ilo/ilo_3d.c b/src/gallium/drivers/ilo/ilo_3d.c index ba3fa96d513..e6ed4c9c50f 100644 --- a/src/gallium/drivers/ilo/ilo_3d.c +++ b/src/gallium/drivers/ilo/ilo_3d.c @@ -535,7 +535,7 @@ ilo_check_restart_index(struct ilo_context *ilo, return true; /* Note: indices must be unsigned byte, unsigned short or unsigned int */ - switch (ilo->index_buffer.index_size) { + switch (ilo->ib.state.index_size) { case 1: return ((info->restart_index & 0xff) == 0xff); break; @@ -607,15 +607,11 @@ ilo_draw_vbo_with_sw_restart(struct pipe_context *pipe, struct pipe_transfer *transfer = NULL; const void *map = NULL; - map = pipe_buffer_map(pipe, - ilo->index_buffer.buffer, - PIPE_TRANSFER_READ, - &transfer); - - sub_prim_count = ilo_find_sub_primitives(map + ilo->index_buffer.offset, - ilo->index_buffer.index_size, - info, - restart_info); + map = pipe_buffer_map(pipe, ilo->ib.state.buffer, + PIPE_TRANSFER_READ, &transfer); + + sub_prim_count = ilo_find_sub_primitives(map + ilo->ib.state.offset, + ilo->ib.state.index_size, info, restart_info); pipe_buffer_unmap(pipe, transfer); |