Commit 2c92df43 authored by Marek Olšák's avatar Marek Olšák Committed by Marge Bot

draw: fix incorrect NIR support code

"state" contains NIR, while "vs->base.state" contains TGSI generated
from NIR. It was a typo.

This fixes the arb_vp subtest of: DRAW_USE_LLVM=1 piglit/bin/rasterpos

Fixes: df11ceaa - draw: add NIR support to draw_create_vertex_shader
Reviewed-by: Zoltán Böszörményi's avatarZoltán Böszörményi <zboszor@gmail.com>
Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
Part-of: <mesa/mesa!8046>
parent 31106441
......@@ -240,7 +240,7 @@ draw_create_vs_exec(struct draw_context *draw,
}
}
tgsi_scan_shader(state->tokens, &vs->base.info);
tgsi_scan_shader(vs->base.state.tokens, &vs->base.info);
vs->base.state.stream_output = state->stream_output;
vs->base.draw = draw;
......
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