diff options
author | Mark Menzynski <mmenzyns@redhat.com> | 2020-02-17 18:02:45 +0100 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-08-25 18:56:37 +0000 |
commit | f20a210dc8552daadfe403d899a9ba6cdd21560b (patch) | |
tree | f32044be93ec8e1e102c4e6092d4ceb5caf98a69 /src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp | |
parent | 5ecc06ef20efd70f35f7100b4e42bb22dc262b38 (diff) |
nv50/ir: Add nv50_ir_prog_info_out serialize and deserialize
Adds functions for serializing and deserializing
nv50_ir_prog_info_out structure, which are needed for shader caching.
Signed-off-by: Mark Menzynski <mmenzyns@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4264>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp index dd8e1ab86c4..7d14466b9f8 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp @@ -949,8 +949,8 @@ CodeEmitterGM107::emitI2I() emitGPR (0x00, insn->def(0)); } -static void -selpFlip(const FixupEntry *entry, uint32_t *code, const FixupData& data) +void +gm107_selpFlip(const FixupEntry *entry, uint32_t *code, const FixupData& data) { int loc = entry->loc; if (data.force_persample_interp) @@ -986,7 +986,7 @@ CodeEmitterGM107::emitSEL() emitGPR (0x00, insn->def(0)); if (insn->subOp == 1) { - addInterp(0, 0, selpFlip); + addInterp(0, 0, gm107_selpFlip); } } @@ -2556,8 +2556,8 @@ CodeEmitterGM107::emitAL2P() emitGPR (0x00, insn->def(0)); } -static void -interpApply(const FixupEntry *entry, uint32_t *code, const FixupData& data) +void +gm107_interpApply(const FixupEntry *entry, uint32_t *code, const FixupData& data) { int ipa = entry->ipa; int reg = entry->reg; @@ -2617,12 +2617,12 @@ CodeEmitterGM107::emitIPA() emitGPR(0x14, insn->src(1)); if (insn->getSampleMode() == NV50_IR_INTERP_OFFSET) emitGPR(0x27, insn->src(2)); - addInterp(insn->ipa, insn->getSrc(1)->reg.data.id, interpApply); + addInterp(insn->ipa, insn->getSrc(1)->reg.data.id, gm107_interpApply); } else { if (insn->getSampleMode() == NV50_IR_INTERP_OFFSET) emitGPR(0x27, insn->src(1)); emitGPR(0x14); - addInterp(insn->ipa, 0xff, interpApply); + addInterp(insn->ipa, 0xff, gm107_interpApply); } if (insn->getSampleMode() != NV50_IR_INTERP_OFFSET) |