diff options
author | Axel Davy <[email protected]> | 2016-10-16 17:47:56 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:44:20 +0100 |
commit | 409ad787778461e774b5b0dfa4e6c77f355ca16f (patch) | |
tree | dc457ec54170633e0e371d5a0b8b7fd431102770 | |
parent | 0630d3600bfb770cf3b23761c45b3add3b277c6b (diff) |
st/nine: Don't update stream_usage_mask in sw path
The variable is used only in the hw path.
Signed-off-by: Axel Davy <[email protected]>
-rw-r--r-- | src/gallium/state_trackers/nine/nine_state.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index 57f7b2d1362..69f0cff805c 100644 --- a/src/gallium/state_trackers/nine/nine_state.c +++ b/src/gallium/state_trackers/nine/nine_state.c @@ -1413,7 +1413,6 @@ update_vertex_elements_sw(struct NineDevice9 *device) BOOL need_dummy_vbo = FALSE; struct pipe_vertex_element ve[PIPE_MAX_ATTRIBS]; - state->stream_usage_mask = 0; memset(vdecl_index_map, -1, 16); memset(used_streams, 0, device->caps.MaxStreams); vs = state->programmable_vs ? device->state.vs : device->ff.vs; @@ -1456,7 +1455,6 @@ update_vertex_elements_sw(struct NineDevice9 *device) if (index >= 0) { ve[n] = vdecl->elems[index]; b = ve[n].vertex_buffer_index; - state->stream_usage_mask |= 1 << b; /* XXX wine just uses 1 here: */ if (state->stream_freq[b] & D3DSTREAMSOURCE_INSTANCEDATA) ve[n].instance_divisor = state->stream_freq[b] & 0x7FFFFF; |