mesa/src
Matt Turner 1c175fc2e3 i965: Correct a mistake that always forced texture tiling.
Regression since commit 3a31876600, when tiling modes were moved into
layout_flags.

The relevant enum values are

   MIPTREE_LAYOUT_ALLOC_YTILED = 1 << 5
   MIPTREE_LAYOUT_ALLOC_XTILED = 1 << 6
   MIPTREE_LAYOUT_ALLOC_ANY_TILED = MIPTREE_LAYOUT_ALLOC_YTILED |
                                    MIPTREE_LAYOUT_ALLOC_XTILED
   MIPTREE_LAYOUT_ALLOC_LINEAR = 1 << 7

so the expression (layout_flags & MIPTREE_LAYOUT_ALLOC_ANY_TILED) can
never produce a value of MIPTREE_LAYOUT_ALLOC_LINEAR.

The enum this replaced was

   enum intel_miptree_tiling_mode {
      INTEL_MIPTREE_TILING_ANY,
      INTEL_MIPTREE_TILING_Y,
      INTEL_MIPTREE_TILING_NONE,
   };

where "ANY" means "Y" or "NONE" (i.e., linear). As such, remove the
unused (and worse, unhandled) MIPTREE_LAYOUT_ALLOC_XTILED and redefine
MIPTREE_LAYOUT_ALLOC_ANY_TILED to mean what it did before.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91513
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
2015-08-06 12:33:25 -07:00
..
egl egl: Add eglQuerySurface surface type check for EGL_LARGEST_PBUFFER attrib 2015-08-04 20:03:16 -07:00
gallium radeonsi: add a HUD query showing the number of shaders created 2015-08-06 20:44:37 +02:00
gbm gbm: do not build intermittent libgbm_dri static library 2015-07-22 16:35:27 +01:00
getopt
glsl mesa: save which transform feedback buffer is associated with which stream 2015-08-06 20:11:43 +02:00
glx glx: Use _mesa_lroundevenf() in glPixelStoref(). 2015-08-04 10:33:16 -07:00
gtest mesa: Enable subdir-objects globally. 2015-06-26 12:55:25 +01:00
hgl glapi/hgl: Drop extern "C" as it was added to glapi 2015-05-13 15:26:29 -04:00
loader loader: use HAVE_LIBDRM instead of ! __NOT_HAVE_DRM_H 2015-07-22 16:35:25 +01:00
mapi apiexec: remove leading gl from shader subroutine interfaces 2015-07-24 12:07:11 +10:00
mesa i965: Correct a mistake that always forced texture tiling. 2015-08-06 12:33:25 -07:00
util util: Use SSE intrinsics in _mesa_lroundeven{f,}. 2015-08-04 10:33:13 -07:00
Makefile.am automake: rework the EGL build 2015-07-22 16:35:27 +01:00
SConscript scons: rework the EGL build 2015-07-22 16:35:27 +01:00