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 58e9af5f8ee8a5404c93cd09247c56b1404d861c..c8fe670077638e39ce2ea1a8603c0eb13c0aa219 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