Module: Mesa Branch: master Commit: d0cd8bf2a54ee5813afa72b76475bb04c269b481 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d0cd8bf2a54ee5813afa72b76475bb04c269b481
Author: Boris Brezillon <[email protected]> Date: Thu Nov 12 18:19:21 2020 +0100 pan/bi: Support txs operations Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7636> --- src/panfrost/bifrost/bifrost_compile.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 8b7989cf97e..deb2222fdc5 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -2078,6 +2078,22 @@ bi_is_normal_tex(gl_shader_stage stage, nir_tex_instr *instr) static void emit_tex(bi_context *ctx, nir_tex_instr *instr) { + switch (instr->op) { + case nir_texop_txs: + bi_emit_sysval(ctx, &instr->instr, 4, 0); + return; + + case nir_texop_tex: + case nir_texop_txl: + case nir_texop_txb: + case nir_texop_txf: + case nir_texop_txf_ms: + break; + + default: + unreachable("Invalid texture operation"); + } + nir_alu_type base = nir_alu_type_get_base_type(instr->dest_type); unsigned sz = nir_dest_bit_size(instr->dest); instr->dest_type = base | sz; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
