mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
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:
parent
eb14281b3c
commit
e393cece77
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue