Skip to content

iris, i965: Fix INTEL_DEBUG=bat to not insert a key of 0.

Kenneth Graunke requested to merge kwg/mesa:intel-debug-bat into master

We can have state at offset 0 that needs a recorded size. But, we can't use 0 as a key in the hash table. Since our state offsets are always at least DWord aligned, we can just use (x | 1) as the hash key, trivially sidestepping the problem.

Fixes: b38dab10 util/hash_table: Assert that keys are not reserved pointers

Merge request reports