[Mesa-dev] [PATCH] isl/state: Divide the aux qpitch by 2

Pohjolainen, Topi topi.pohjolainen at intel.com
Thu Jul 14 05:46:53 UTC 2016


Subject says: "isl/state: Divide the aux qpitch by 2". Should be
divide by 4 or shift by 2.

Otherwise:

Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

On Wed, Jul 13, 2016 at 04:45:09PM -0700, Jason Ekstrand wrote:
> The field is in multiples of 4 like regular QPitch.
> ---
>  src/intel/isl/isl_surface_state.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c
> index d40f2c1..1c656c9 100644
> --- a/src/intel/isl/isl_surface_state.c
> +++ b/src/intel/isl/isl_surface_state.c
> @@ -445,7 +445,7 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state,
>         * in units of samples on the main surface.
>         */
>        s.AuxiliarySurfaceQPitch =
> -         isl_surf_get_array_pitch_sa_rows(info->aux_surf);
> +         isl_surf_get_array_pitch_sa_rows(info->aux_surf) >> 2;
>        s.AuxiliarySurfaceBaseAddress = info->aux_address;
>        s.AuxiliarySurfaceMode = isl_to_gen_aux_mode[info->aux_usage];
>  #else
> -- 
> 2.5.0.400.gff86faf
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list