<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:10pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Thanks Brian and Ilia for the review.<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<meta content="text/html; charset=UTF-8">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p><span style="font-size:11pt; font-family:Calibri,Helvetica,sans-serif"></span><span style="font-size:10pt; font-family:Calibri,Helvetica,sans-serif">Regards,</span></p>
<span style="font-size:10pt"></span><span style="font-size:11pt; font-family:Calibri,Helvetica,sans-serif"></span><span style="font-size:10pt"></span>
<p><span style="font-size:10pt; font-family:Calibri,Helvetica,sans-serif">Neha</span><br>
</p>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Ilia Mirkin <imirkin@alum.mit.edu><br>
<b>Sent:</b> Tuesday, January 29, 2019 1:20:50 PM<br>
<b>To:</b> Brian Paul<br>
<b>Cc:</b> Neha Bhende; mesa-dev@lists.freedesktop.org<br>
<b>Subject:</b> Re: [Review Request (master branch)] st/mesa: Fix topogun-1.06-orc-84k-resize.trace crash</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu><br>
<br>
Note - not sure that initializing pad is necessary. And there's a<br>
handful of fields missing (like the draw id comes to mind). But ...<br>
it's not important. Sorry again for the screwup!<br>
<br>
On Tue, Jan 29, 2019 at 4:17 PM Brian Paul <brianp@vmware.com> wrote:<br>
><br>
> LGTM. Reviewed-by: Brian Paul <brianp@vmware.com><br>
><br>
> I'll push this tomorrow, or after Ilia reviews too.<br>
><br>
><br>
> On 01/29/2019 12:21 PM, Neha Bhende wrote:<br>
> > We need to initialize all fields in rs->prim explicitly while<br>
> > creating new rastpos stage.<br>
> ><br>
> > Fixes: bac8534267 ("st/mesa: allow glDrawElements to work with GL_SELECT<br>
> > feedback")<br>
> ><br>
> > v2: Initializing all fields in rs->prim as per Ilia.<br>
> ><br>
> > Reviewed-by: Brian Paul <brianp@vmware.com><br>
> > ---<br>
> > src/mesa/state_tracker/st_cb_rasterpos.c | 4 ++++<br>
> > 1 file changed, 4 insertions(+)<br>
> ><br>
> > diff --git a/src/mesa/state_tracker/st_cb_rasterpos.c b/src/mesa/state_tracker/st_cb_rasterpos.c<br>
> > index fecaaf7..c54b50d 100644<br>
> > --- a/src/mesa/state_tracker/st_cb_rasterpos.c<br>
> > +++ b/src/mesa/state_tracker/st_cb_rasterpos.c<br>
> > @@ -208,6 +208,10 @@ new_draw_rastpos_stage(struct gl_context *ctx, struct draw_context *draw)<br>
> > rs->prim.end = 1;<br>
> > rs->prim.start = 0;<br>
> > rs->prim.count = 1;<br>
> > + rs->prim.pad = 0;<br>
> > + rs->prim.num_instances = 1;<br>
> > + rs->prim.base_instance = 0;<br>
> > + rs->prim.is_indirect = 0;<br>
> ><br>
> > return rs;<br>
> > }<br>
> ><br>
><br>
</div>
</span></font></div>
</body>
</html>