summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
diff options
context:
space:
mode:
authorTopi Pohjolainen <topi.pohjolainen@intel.com>2016-03-30 20:41:30 +0300
committerTopi Pohjolainen <topi.pohjolainen@intel.com>2016-04-21 10:20:02 +0300
commit7de72f728b32bcbe70e28adcc8733154794c0343 (patch)
tree07e0712746a15aef7907ae30e868187c4bd8427a /src/mesa/drivers/dri/i965/intel_mipmap_tree.c
parentf7ab4e0cc4e56a7830d407fd708e3ffa408d06d6 (diff)
downloadexternal_mesa3d-7de72f728b32bcbe70e28adcc8733154794c0343.zip
external_mesa3d-7de72f728b32bcbe70e28adcc8733154794c0343.tar.gz
external_mesa3d-7de72f728b32bcbe70e28adcc8733154794c0343.tar.bz2
i965/blorp: Enable blits on gen8
v2 (Ken): Moved switch cases for gen8/9 in texel_fetch() to earlier patch adding gen8/9 sampling support. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_mipmap_tree.c')
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index e2d897a..da880b6 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -2165,8 +2165,7 @@ intel_miptree_updownsample(struct brw_context *brw,
struct intel_mipmap_tree *dst)
{
/* There is support only for four and eight samples. */
- const bool use_blorp = brw->gen < 8 &&
- src->num_samples != 2 && dst->num_samples != 2 &&
+ const bool use_blorp = src->num_samples != 2 && dst->num_samples != 2 &&
src->num_samples <= 8 && dst->num_samples <= 8;
if (use_blorp) {