[Mesa-dev] [PATCH 1/3] i965: Fix hiz resolves getting stomped by depth offset validation.
Jordan Justen
jljusten at gmail.com
Fri Dec 21 10:46:37 PST 2012
Series Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
On Tue, Dec 18, 2012 at 3:03 PM, Eric Anholt <eric at anholt.net> wrote:
> Fixes all the remaining non-Z32F_S8 depthstencil-render-miplevels
> tests in piglit.
>
> ---
>
> This causes the other Z32F change in the series I sent out earlier
> today to result in all depthstencil-render-miplevels tests passing.
> My plan is to push this series before that one.
>
> src/mesa/drivers/dri/i965/brw_draw.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
> index cb8e682..faa29d1 100644
> --- a/src/mesa/drivers/dri/i965/brw_draw.c
> +++ b/src/mesa/drivers/dri/i965/brw_draw.c
> @@ -436,17 +436,17 @@ static bool brw_try_draw_prims( struct gl_context *ctx,
>
> intel_prepare_render(intel);
>
> + /* This workaround has to happen outside of brw_state_upload() because it
> + * may flush the batchbuffer for a blit, affecting the state flags.
> + */
> + brw_workaround_depthstencil_alignment(brw);
> +
> /* Resolves must occur after updating renderbuffers, updating context state,
> * and finalizing textures but before setting up any hardware state for
> * this draw call.
> */
> brw_predraw_resolve_buffers(brw);
>
> - /* This workaround has to happen outside of brw_state_upload() because it
> - * may flush the batchbuffer for a blit, affecting the state flags.
> - */
> - brw_workaround_depthstencil_alignment(brw);
> -
> /* Bind all inputs, derive varying and size information:
> */
> brw_merge_inputs( brw, arrays );
> --
> 1.7.10.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list