diff options
author | Eric Anholt <eric@anholt.net> | 2009-10-26 09:28:32 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-11-06 11:37:31 -0800 |
commit | caf3038123d6d29afd7d1f0cd6db98a2282c3ca1 (patch) | |
tree | cfa57e6e0396c9fc7b4728e1cff2aed413165d4a /src/mesa/drivers/dri/intel/intel_mipmap_tree.c | |
parent | 4e4c2ee1fd574d1d651c559f46afb6ca5487156d (diff) |
Make a convenient int for what chipset generation we're on.
gen2/3/4 are easier to say than "8xx, 915-945/g33/pineview, 965/g45/misc",
and compares on generation are often easier than stringing together a bunch
of chipset checks.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_mipmap_tree.c')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_mipmap_tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c index 3996c100a5..2a19816e12 100644 --- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c @@ -122,7 +122,7 @@ intel_miptree_create(struct intel_context *intel, if (intel->use_texture_tiling && compress_byte == 0 && intel->intelScreen->kernel_exec_fencing) { - if (IS_965(intel->intelScreen->deviceID) && + if (intel->gen >= 4 && (base_format == GL_DEPTH_COMPONENT || base_format == GL_DEPTH_STENCIL_EXT)) tiling = I915_TILING_Y; |