summaryrefslogtreecommitdiffstats
path: root/src/intel/isl
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2019-01-31 13:18:19 -0800
committerCaio Marcelo de Oliveira Filho <[email protected]>2019-02-04 20:44:41 -0800
commit8c7c543936ab64f5470d2787022647dbab793773 (patch)
tree6748952a81c08661a0f0ccc7999a22fa1862840d /src/intel/isl
parent5299c9cbccd16af747431d0aea3fcbb4bee06789 (diff)
isl: assert that Gen8+ don't have bit6_swizzling
v2: Rewrite the condition to more clearly match the comment. (Jordan) Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/isl')
-rw-r--r--src/intel/isl/isl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c
index 7bb0fce3b60..eaaa28014a3 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -99,6 +99,9 @@ isl_device_init(struct isl_device *dev,
const struct gen_device_info *info,
bool has_bit6_swizzling)
{
+ /* Gen8+ don't have bit6 swizzling, ensure callsite is not confused. */
+ assert(!(has_bit6_swizzling && info->gen >= 8));
+
dev->info = info;
dev->use_separate_stencil = ISL_DEV_GEN(dev) >= 6;
dev->has_bit6_swizzling = has_bit6_swizzling;