summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr
diff options
context:
space:
mode:
authorBruce Cherniak <[email protected]>2017-06-29 14:41:31 -0500
committerTim Rowley <[email protected]>2017-06-30 13:26:19 -0500
commit6646f6ba0dca70478cafd39886005e387406f114 (patch)
tree24e7b7d9a017eff37a4515b0dc4470fd9b2f648c /src/gallium/drivers/swr
parentb9b53e2695d65b4a4e7e44dc2ff88fff5fabed94 (diff)
swr: Minor cleanup of variable usage, no functional change.
In swr_update_derived, for consistency, index buffer validation should be using the p_draw_info copy "info" rather than referencing p_draw_info. No functional change. Reviewed-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r--src/gallium/drivers/swr/swr_state.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp
index 897ce998fff..45c9c213e5b 100644
--- a/src/gallium/drivers/swr/swr_state.cpp
+++ b/src/gallium/drivers/swr/swr_state.cpp
@@ -1294,7 +1294,7 @@ swr_update_derived(struct pipe_context *pipe,
const uint8_t *p_data;
uint32_t size, pitch;
- pitch = p_draw_info->index_size ? p_draw_info->index_size : sizeof(uint32_t);
+ pitch = info.index_size ? info.index_size : sizeof(uint32_t);
index_type = swr_convert_index_type(pitch);
if (!info.has_user_indices) {
@@ -1320,7 +1320,7 @@ swr_update_derived(struct pipe_context *pipe,
}
SWR_INDEX_BUFFER_STATE swrIndexBuffer;
- swrIndexBuffer.format = swr_convert_index_type(p_draw_info->index_size);
+ swrIndexBuffer.format = swr_convert_index_type(info.index_size);
swrIndexBuffer.pIndices = p_data;
swrIndexBuffer.size = size;