pan/va: Generalize message? check for asm
Allows passing more uniforms in more places. We'll use this in a test case in a moment. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15588>
This commit is contained in:
@@ -216,8 +216,7 @@ def parse_asm(line):
|
||||
# Set a placeholder writemask to prevent encoding faults
|
||||
encoded |= (0xC0 << 40)
|
||||
|
||||
# TODO: Other messages
|
||||
fau = FAUState(message = ins.name.startswith('LD_BUFFER'))
|
||||
fau = FAUState(message = ins.message)
|
||||
|
||||
for i, (op, src) in enumerate(zip(operands, ins.srcs)):
|
||||
parts = op.split('.')
|
||||
|
||||
@@ -192,6 +192,9 @@ class Instruction:
|
||||
self.staging = staging
|
||||
self.unit = unit
|
||||
|
||||
# Message-passing instruction <===> not ALU instruction
|
||||
self.message = unit not in ["FMA", "CVT", "SFU"]
|
||||
|
||||
self.secondary_shift = max(len(self.srcs) * 8, 16)
|
||||
self.secondary_mask = 0xF if opcode2 is not None else 0x0
|
||||
if "left" in [x.name for x in self.modifiers]:
|
||||
|
||||
Reference in New Issue
Block a user