summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_state.h
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-11-26 17:11:50 -0500
committerIlia Mirkin <[email protected]>2016-11-30 20:35:33 -0500
commit632c11e8570f040ed089ab8755f02aac8c458de7 (patch)
treee04fb1a9d2dc8f3ccb0fa95752b41aac30503bd3 /src/gallium/drivers/swr/swr_state.h
parent3b736acf1b707d3c6c6e6875400409f91ef9e1ac (diff)
swr: fix range computation for instanced client-side arrays
We need to take the instance divisor and number of instances into account for instanced client-side arrays, rather than the vertex parameters. Loosely based on the comparable nvc0 logic. Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_state.h')
-rw-r--r--src/gallium/drivers/swr/swr_state.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_state.h b/src/gallium/drivers/swr/swr_state.h
index 17d487326c9..1960abddfa6 100644
--- a/src/gallium/drivers/swr/swr_state.h
+++ b/src/gallium/drivers/swr/swr_state.h
@@ -72,6 +72,8 @@ struct swr_vertex_element_state {
FETCH_COMPILE_STATE fsState;
PFN_FETCH_FUNC fsFunc;
uint32_t stream_pitch[PIPE_MAX_ATTRIBS];
+ uint32_t min_instance_div[PIPE_MAX_ATTRIBS];
+ uint32_t instanced_bufs;
};
struct swr_blend_state {