[Mesa-dev] [PATCH 03/64] i965/gen8: Use the qpitch from the aux_mt for AUX_QPITCH

Anuj Phogat anuj.phogat at gmail.com
Wed Jun 15 23:04:21 UTC 2016


On Sat, Jun 11, 2016 at 9:02 AM, Jason Ekstrand <jason at jlekstrand.net> wrote:
> ---
>  src/mesa/drivers/dri/i965/gen8_surface_state.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/drivers/dri/i965/gen8_surface_state.c
> index ee4781b..6a98d76 100644
> --- a/src/mesa/drivers/dri/i965/gen8_surface_state.c
> +++ b/src/mesa/drivers/dri/i965/gen8_surface_state.c
> @@ -325,7 +325,7 @@ gen8_emit_texture_surface_state(struct brw_context *brw,
>        assert(aux_mt->tiling == I915_TILING_Y);
>        intel_get_tile_dims(aux_mt->tiling, aux_mt->tr_mode,
>                            aux_mt->cpp, &tile_w, &tile_h);
> -      surf[6] = SET_FIELD(mt->qpitch / 4, GEN8_SURFACE_AUX_QPITCH) |
> +      surf[6] = SET_FIELD(aux_mt->qpitch / 4, GEN8_SURFACE_AUX_QPITCH) |
>                  SET_FIELD((aux_mt->pitch / tile_w) - 1,
>                            GEN8_SURFACE_AUX_PITCH) |
>                  aux_mode;
> @@ -546,7 +546,7 @@ gen8_update_renderbuffer_surface(struct brw_context *brw,
>        assert(aux_mt->tiling == I915_TILING_Y);
>        intel_get_tile_dims(aux_mt->tiling, aux_mt->tr_mode,
>                            aux_mt->cpp, &tile_w, &tile_h);
> -      surf[6] = SET_FIELD(mt->qpitch / 4, GEN8_SURFACE_AUX_QPITCH) |
> +      surf[6] = SET_FIELD(aux_mt->qpitch / 4, GEN8_SURFACE_AUX_QPITCH) |
>                  SET_FIELD((aux_mt->pitch / tile_w) - 1,
>                            GEN8_SURFACE_AUX_PITCH) |
>                  aux_mode;
> --
> 2.5.0.400.gff86faf
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>


More information about the mesa-dev mailing list