isl/state: Use a valid alignment for 1-D textures
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 28 Jun 2016 21:20:15 +0000 (14:20 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 17 Aug 2016 21:46:22 +0000 (14:46 -0700)
The alignment we use doesn't matter (see the comment) but it should at
least be an alignment we can represent with the enums.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/isl/isl_surface_state.c

index d1c8f17815a9f8bf6a2faaaedc8d2e6db790faaa..6febcbf2b72a6ec3ead3c994780b213292a13558 100644 (file)
@@ -142,7 +142,7 @@ get_image_alignment(const struct isl_surf *surf)
           * true alignment is likely outside the enum range of HALIGN* and
           * VALIGN*.
           */
-         return isl_extent3d(0, 0, 0);
+         return isl_extent3d(4, 4, 1);
       } else {
          /* In Skylake, RENDER_SUFFACE_STATE.SurfaceVerticalAlignment is in units
           * of surface elements (not pixels nor samples). For compressed formats,