r600/sfn: implement GDS op channel mask evaluation

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20205>
This commit is contained in:
Gert Wollny 2022-12-08 12:14:29 +01:00 committed by Marge Bot
parent 4d4411588b
commit 586ba9c223
2 changed files with 6 additions and 0 deletions

View file

@ -111,6 +111,11 @@ GDSInstr::emit_atomic_counter(nir_intrinsic_instr *intr, Shader& shader)
}
}
uint8_t GDSInstr::allowed_src_chan_mask() const
{
return m_src.free_chan_mask();
}
static ESDOp
get_opcode(const nir_intrinsic_op opcode)
{

View file

@ -57,6 +57,7 @@ public:
static bool emit_atomic_counter(nir_intrinsic_instr *intr, Shader& shader);
uint32_t slots() const override { return 1; };
uint8_t allowed_src_chan_mask() const override;
private:
static bool emit_atomic_read(nir_intrinsic_instr *intr, Shader& shader);