Skip to content
Snippets Groups Projects
Commit df62691a authored by Brian Paul's avatar Brian Paul Committed by Carl Worth
Browse files

draw: fix incorrect vertex size computation in LLVM drawing code

We were calling draw_total_vs_outputs() too early.  The call to
draw_pt_emit_prepare() could result in the vertex size changing.
So call draw_total_vs_outputs() after draw_pt_emit_prepare().

This fix would seem to be needed for the non-LLVM code as well,
but it's not obvious.  Instead, I added an assertion there to
try to catch this problem if it were to occur there.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72926


Cc: 10.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: default avatarJosé Fonseca <jfonseca@vmware.com>
(cherry picked from commit ad814d04)

Conflicts:
	src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
parent fe2678ac
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment