OSDN Git Service

intel: Remove the texture_tiling driconf option.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 9 Apr 2013 02:39:20 +0000 (19:39 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 8 Apr 2013 23:15:07 +0000 (16:15 -0700)
This option can force textures to be untiled.  However, on Gen6+, depth
buffers must be Y-tiled.  MSAA buffers also must be Y-tiled.  So setting
this option on even a trivial application like glxgears causes assertion
failures in a debug build, and likely GPU hangs in a release build.

It's just giving users a license to shoot themselves in the foot.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_context.h
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_screen.c

index bf4045e..990fbea 100644 (file)
@@ -811,8 +811,6 @@ intelInitContext(struct intel_context *intel,
 
    intel_fbo_init(intel);
 
-   intel->use_texture_tiling = driQueryOptionb(&intel->optionCache,
-                                              "texture_tiling");
    intel->use_early_z = driQueryOptionb(&intel->optionCache, "early_z");
 
    if (!driQueryOptionb(&intel->optionCache, "hiz")) {
index b2ded49..22d29be 100644 (file)
@@ -343,7 +343,6 @@ struct intel_context
     */
    bool is_front_buffer_reading;
 
-   bool use_texture_tiling;
    bool use_early_z;
 
    int driFd;
index 38c0149..19c9088 100644 (file)
@@ -316,9 +316,6 @@ intel_miptree_choose_tiling(struct intel_context *intel,
       return I915_TILING_NONE;
    }
 
-   if (!intel->use_texture_tiling)
-      return I915_TILING_NONE;
-
    if (force_y_tiling)
       return I915_TILING_Y;
 
index 58496e2..16750f2 100644 (file)
@@ -55,10 +55,6 @@ PUBLIC const char __driConfigOptions[] =
         DRI_CONF_DESC_END
       DRI_CONF_OPT_END
 
-      DRI_CONF_OPT_BEGIN(texture_tiling, bool, true)
-        DRI_CONF_DESC(en, "Enable texture tiling")
-      DRI_CONF_OPT_END
-
       DRI_CONF_OPT_BEGIN(hiz, bool, true)
         DRI_CONF_DESC(en, "Enable Hierarchical Z on gen6+")
       DRI_CONF_OPT_END
@@ -95,7 +91,7 @@ PUBLIC const char __driConfigOptions[] =
    DRI_CONF_SECTION_END
 DRI_CONF_END;
 
-const GLuint __driNConfigOptions = 17;
+const GLuint __driNConfigOptions = 16;
 
 #include "intel_batchbuffer.h"
 #include "intel_buffers.h"