pan/va: do not allow force_delta_enable on v9

This bit is reserved and should be zero on V9, so we should report an
illegal instruction if we ever encounter it while packing.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com>
This commit is contained in:
Erik Faye-Lund 2026-05-07 11:42:48 +02:00
parent eb14281b3c
commit e393cece77

View file

@ -1043,8 +1043,11 @@ va_pack_instr(const bi_instr *I, unsigned arch)
hex |= (1ull << 46);
if (I->op == BI_OPCODE_TEX_GRADIENT) {
if (I->force_delta_enable)
if (I->force_delta_enable) {
if (arch < 10)
invalid_instruction(I, "gradient instruction does not support .force_delta_enable");
hex |= (1ull << 12);
}
if (I->lod_bias_disable)
hex |= (1ull << 13);
if (I->lod_clamp_disable)