nak: Surface handles are not allowed to be rZ

The chances of this happening are near zero with the way we do surface
ops today but I have seen it in the wild and this is apparently a rule.
The hardware throws an illegal instruction encoding if it sees 255.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35895>
This commit is contained in:
Faith Ekstrand
2025-07-02 14:33:57 -04:00
committed by Marge Bot
parent c1ba062a30
commit 19bee26056
+3 -3
View File
@@ -5382,7 +5382,7 @@ pub struct OpSuLd {
pub mem_order: MemOrder,
pub mem_eviction_priority: MemEvictionPriority,
#[src_type(GPR)]
#[src_type(SSA)]
pub handle: Src,
#[src_type(SSA)]
@@ -5413,7 +5413,7 @@ pub struct OpSuSt {
pub mem_order: MemOrder,
pub mem_eviction_priority: MemEvictionPriority,
#[src_type(GPR)]
#[src_type(SSA)]
pub handle: Src,
#[src_type(SSA)]
@@ -5454,7 +5454,7 @@ pub struct OpSuAtom {
pub mem_order: MemOrder,
pub mem_eviction_priority: MemEvictionPriority,
#[src_type(GPR)]
#[src_type(SSA)]
pub handle: Src,
#[src_type(SSA)]