<div dir="ltr">Reviewed-by: Mike Stroyan <mike@LunarG.com><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 22, 2014 at 9:28 PM, Chris Forbes <span dir="ltr"><<a href="mailto:chrisf@ijw.co.nz" target="_blank">chrisf@ijw.co.nz</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Reviewed-by: Chris Forbes <<a href="mailto:chrisf@ijw.co.nz">chrisf@ijw.co.nz</a>><br>
<div><div class="h5"><br>
On Tue, Dec 23, 2014 at 3:58 PM, Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>> wrote:<br>
> This was probably missed when moving from a fixed binding table layout<br>
> to a dynamic one that changes based on the shader.<br>
><br>
> Fixes newly proposed Piglit test fbo-mrt-new-bind.<br>
><br>
> Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=87619" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=87619</a><br>
> Signed-off-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
> Cc: Mike Stroyan <<a href="mailto:mike@lunarg.com">mike@lunarg.com</a>><br>
> Cc: "10.4 10.3" <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a>><br>
> ---<br>
> src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 12 ++++++++++--<br>
> 1 file changed, 10 insertions(+), 2 deletions(-)<br>
><br>
> diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c<br>
> index 7361c2f..85a08d5 100644<br>
> --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c<br>
> +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c<br>
> @@ -536,6 +536,7 @@ brw_update_null_renderbuffer_surface(struct brw_context *brw, unsigned int unit)<br>
> drm_intel_bo *bo = NULL;<br>
> unsigned pitch_minus_1 = 0;<br>
> uint32_t multisampling_state = 0;<br>
> + /* BRW_NEW_FS_PROG_DATA */<br>
> uint32_t surf_index =<br>
> brw->wm.prog_data->binding_table.render_target_start + unit;<br>
><br>
> @@ -621,6 +622,7 @@ brw_update_renderbuffer_surface(struct brw_context *brw,<br>
> uint32_t format = 0;<br>
> /* _NEW_BUFFERS */<br>
> mesa_format rb_format = _mesa_get_render_format(ctx, intel_rb_format(irb));<br>
> + /* BRW_NEW_FS_PROG_DATA */<br>
> uint32_t surf_index =<br>
> brw->wm.prog_data->binding_table.render_target_start + unit;<br>
><br>
> @@ -737,7 +739,8 @@ const struct brw_tracked_state brw_renderbuffer_surfaces = {<br>
> .dirty = {<br>
> .mesa = _NEW_BUFFERS |<br>
> _NEW_COLOR,<br>
> - .brw = BRW_NEW_BATCH,<br>
> + .brw = BRW_NEW_BATCH |<br>
> + BRW_NEW_FS_PROG_DATA,<br>
> },<br>
> .emit = brw_update_renderbuffer_surfaces,<br>
> };<br>
> @@ -763,6 +766,8 @@ update_stage_texture_surfaces(struct brw_context *brw,<br>
> struct gl_context *ctx = &brw->ctx;<br>
><br>
> uint32_t *surf_offset = stage_state->surf_offset;<br>
> +<br>
> + /* BRW_NEW_*_PROG_DATA */<br>
> if (for_gather)<br>
> surf_offset += stage_state->prog_data->binding_table.gather_texture_start;<br>
> else<br>
> @@ -824,9 +829,12 @@ const struct brw_tracked_state brw_texture_surfaces = {<br>
> .mesa = _NEW_TEXTURE,<br>
> .brw = BRW_NEW_BATCH |<br>
> BRW_NEW_FRAGMENT_PROGRAM |<br>
> + BRW_NEW_FS_PROG_DATA |<br>
> BRW_NEW_GEOMETRY_PROGRAM |<br>
> + BRW_NEW_GS_PROG_DATA |<br>
> BRW_NEW_TEXTURE_BUFFER |<br>
> - BRW_NEW_VERTEX_PROGRAM,<br>
> + BRW_NEW_VERTEX_PROGRAM |<br>
> + BRW_NEW_VS_PROG_DATA,<br>
> },<br>
> .emit = brw_update_texture_surfaces,<br>
> };<br>
> --<br>
> 2.2.1<br>
><br>
</div></div>> _______________________________________________<br>
> mesa-stable mailing list<br>
> <a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-stable" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-stable</a><br>
</blockquote></div><br clear="all"><br>-- <br><div class="gmail_signature"><br> Mike Stroyan - Software Architect<br> LunarG, Inc. - The Graphics Experts<br> Cell: (970) 219-7905<br> Email: Mike@LunarG.com<br> Website: <a href="http://www.lunarg.com">http://www.lunarg.com</a></div>
</div>