isl/state: Divide the aux qpitch by 4
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 13 Jul 2016 23:42:43 +0000 (16:42 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 15 Jul 2016 22:53:47 +0000 (15:53 -0700)
The field is in multiples of 4 like regular QPitch.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/intel/isl/isl_surface_state.c

index 58e9af5..c8fe670 100644 (file)
@@ -385,7 +385,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