Skip to content

intel: Fix bad align_offset on global_constant_uniform_block_intel

Kenneth Graunke requested to merge kwg/mesa:brw-align-offset-fix into main

We were specifying align_offset = 64 and align_mul = 64, which is invalid. nir_combined_align() asserts that align_offset < align_mul.

Our intention here is to perform cacheline-aligned (64B-aligned) block loads, so we should set align_mul = 64 and can leave align_offset = 0.

Fixes: fbafa9ca ("intel/nir: remove load_global_const_block_intel intrinsic")

Merge request reports

Loading