pan/bi: Extract shadowmap comparator

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7530>
This commit is contained in:
Boris Brezillon
2020-11-09 13:36:00 +01:00
parent 4d727ee913
commit 8be5447461
+4
View File
@@ -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");
}