Skip to content

intel/compiler: Fix sample_d messages on DG2

Ian Romanick requested to merge idr/mesa:review/dg2-txd-fixes into main

DG2 can only do sample_d and sample_d_c on 1D and 2D surfaces. The maximum number of gradient components and coordinate components should be 2. In spite of this limitation, the Bspec lists a mysterious R component before the min_lod, so the maximum coordinate components is 3.

The Fixes: tag below is a bit misleading. This commit fixes some test cases similar to ones fixed by the Fixes: commit. I just want to make sure this commit gets applied everywhere that commit was also applied.

Fixes: 635ed58e ("intel/compiler: Lower txd for 3D samplers on XeHP.")

Merge request reports