draw/llvm: set draw->pt.user.planes field in draw_set_clip_state()
authorBrian Paul <brianp@vmware.com>
Mon, 10 Oct 2011 23:49:27 +0000 (17:49 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 11 Oct 2011 13:41:36 +0000 (07:41 -0600)
commit11938c87a3e5a5b0a16b22f1913567a64015a92d
tree034c95316e6d3aec7aa7475fc02fdf1ef8afe743
parente6c237cfd6f53ff569f68255d5d6da15148cd0f5
draw/llvm: set draw->pt.user.planes field in draw_set_clip_state()

Previously it was getting set in draw_set_mapped_constant_buffer() but
if there were no shader constants, that function wasn't called.  So the
pt.user.planes field was null and we died when we tried to access the
clip planes in the LLVM-generated code.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=41663

Note: This is a candidate for the 7.11 branch.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/draw/draw_context.c