st/mesa: Fix topogun-1.06-orc-84k-resize.trace crash
authorNeha Bhende <bhenden@vmware.com>
Tue, 29 Jan 2019 19:21:00 +0000 (12:21 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 31 Jan 2019 19:21:59 +0000 (12:21 -0700)
commit69d736b17a96a4d7a21c3c88fd787091acc1def0
tree7c3b163d4b55a49f819222510a6ac99521d10845
parentc812c740e60c14060eb89db66039111881a0f42f
st/mesa: Fix topogun-1.06-orc-84k-resize.trace crash

We need to initialize all fields in rs->prim explicitly while
creating new rastpos stage.

Fixes: bac8534267 ("st/mesa: allow glDrawElements to work with GL_SELECT
feedback")

v2: Initializing all fields in rs->prim as per Ilia.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_cb_rasterpos.c