<field name="Headerless Message for Pre-emptable Contexts Mask" start="21" end="21" type="bool"/>
</register>
+ <register name="HALF_SLICE_CHICKEN7" length="1" num="0x0e194">
+ <field name="Enabled Texel Offset Precision Fix" start="1" end="1" type="bool"/>
+ <field name="Enabled Texel Offset Precision Fix Mask" start="17" end="17" type="bool"/>
+ </register>
+
</genxml>
lri.RegisterOffset = GENX(SAMPLER_MODE_num);
lri.DataDWord = sampler_mode;
}
+
+ /* Bit 1 "Enabled Texel Offset Precision Fix" must be set in
+ * HALF_SLICE_CHICKEN7 register.
+ */
+ uint32_t half_slice_chicken7;
+ anv_pack_struct(&half_slice_chicken7, GENX(HALF_SLICE_CHICKEN7),
+ .EnabledTexelOffsetPrecisionFix = true,
+ .EnabledTexelOffsetPrecisionFixMask = true);
+
+ anv_batch_emit(&batch, GENX(MI_LOAD_REGISTER_IMM), lri) {
+ lri.RegisterOffset = GENX(HALF_SLICE_CHICKEN7_num);
+ lri.DataDWord = half_slice_chicken7;
+ }
+
#endif
/* Set the "CONSTANT_BUFFER Address Offset Disable" bit, so