Mesa (master): pan/bi: Extract shadowmap comparator
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Nov 13 13:48:19 UTC 2020
Module: Mesa
Branch: master
Commit: 8be54474619ff36230a7ed5f38a6bb3dc7f77a5e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8be54474619ff36230a7ed5f38a6bb3dc7f77a5e
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date: Mon Nov 9 13:36:00 2020 +0100
pan/bi: Extract shadowmap comparator
Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7530>
---
src/panfrost/bifrost/bifrost_compile.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c
index 747074c4d7a..b7573115cc9 100644
--- a/src/panfrost/bifrost/bifrost_compile.c
+++ b/src/panfrost/bifrost/bifrost_compile.c
@@ -1970,6 +1970,10 @@ emit_texc(bi_context *ctx, nir_tex_instr *instr)
desc.offset_or_bias_disable = true;
break;
+ case nir_tex_src_comparator:
+ dregs[BIFROST_TEX_DREG_SHADOW] = index;
+ break;
+
default:
unreachable("Unhandled src type in texc emit");
}
More information about the mesa-commit
mailing list