Commit 8c7c5439 authored by Caio Oliveira's avatar Caio Oliveira
Browse files

isl: assert that Gen8+ don't have bit6_swizzling

v2: Rewrite the condition to more clearly match the comment. (Jordan)
Reviewed-by: Jordan Justen's avatarJordan Justen <>
Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <>
parent 5299c9cb
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment