diff options
author | Neha Bhende <[email protected]> | 2019-01-29 12:21:00 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2019-02-01 09:19:29 -0800 |
commit | 89f84f98e0451629e44dcb0a7cdba10b60515bf6 (patch) | |
tree | 5f1d881e97264685e0623043efe43ae617ed37d9 /src/mesa | |
parent | c824f8031cee0f4be10943438ffa264fd09ac4e4 (diff) |
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 <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
(cherry picked from commit 69d736b17a96a4d7a21c3c88fd787091acc1def0)
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_cb_rasterpos.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_rasterpos.c b/src/mesa/state_tracker/st_cb_rasterpos.c index fecaaf77da8..c54b50dc754 100644 --- a/src/mesa/state_tracker/st_cb_rasterpos.c +++ b/src/mesa/state_tracker/st_cb_rasterpos.c @@ -208,6 +208,10 @@ new_draw_rastpos_stage(struct gl_context *ctx, struct draw_context *draw) rs->prim.end = 1; rs->prim.start = 0; rs->prim.count = 1; + rs->prim.pad = 0; + rs->prim.num_instances = 1; + rs->prim.base_instance = 0; + rs->prim.is_indirect = 0; return rs; } |