mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
isl: assert that Gen8+ don't have bit6_swizzling
v2: Rewrite the condition to more clearly match the comment. (Jordan) Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
5299c9cbcc
commit
8c7c543936
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue