<p dir="ltr">Heh... Rb</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Sep 22, 2016 4:46 PM, "Kenneth Graunke" <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There's an assert right above this.<br>
<br>
Signed-off-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
---<br>
src/mesa/drivers/dri/i965/brw_<wbr>fs.cpp | 6 +-----<br>
1 file changed, 1 insertion(+), 5 deletions(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/<wbr>brw_fs.cpp b/src/mesa/drivers/dri/i965/<wbr>brw_fs.cpp<br>
index 1483f41..dc000d9 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>brw_fs.cpp<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>brw_fs.cpp<br>
@@ -5434,10 +5434,6 @@ fs_visitor::setup_fs_payload_<wbr>gen6()<br>
assert(stage == MESA_SHADER_FRAGMENT);<br>
brw_wm_prog_data *prog_data = (brw_wm_prog_data*) this->prog_data;<br>
<br>
- unsigned barycentric_interp_modes =<br>
- (stage == MESA_SHADER_FRAGMENT) ?<br>
- ((brw_wm_prog_data*) this->prog_data)->barycentric_<wbr>interp_modes : 0;<br>
-<br>
assert(devinfo->gen >= 6);<br>
<br>
/* R0-1: masks, pixel X/Y coordinates. */<br>
@@ -5452,7 +5448,7 @@ fs_visitor::setup_fs_payload_<wbr>gen6()<br>
* Mode" bits in WM_STATE.<br>
*/<br>
for (int i = 0; i < BRW_BARYCENTRIC_MODE_COUNT; ++i) {<br>
- if (barycentric_interp_modes & (1 << i)) {<br>
+ if (prog_data->barycentric_<wbr>interp_modes & (1 << i)) {<br>
payload.barycentric_coord_reg[<wbr>i] = payload.num_regs;<br>
payload.num_regs += 2;<br>
if (dispatch_width == 16) {<br>
--<br>
2.10.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>