Commit 6646f6ba authored by Bruce Cherniak's avatar Bruce Cherniak Committed by Tim Rowley

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

No functional change.
Reviewed-by: default avatarTim Rowley <>
parent b9b53e26
......@@ -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,
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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment