zink: add lengthy comment and remove assert from discard_if ntv pass

Graphics / Mesa 3D Graphics Library / Mesa - Mike Blumenkrantz [gmail.com] - 13 July 2020 21:13 UTC

as in the comment, while we may want to try verifying that discard will be the last instruction in a block, it's a bit problematic given that other nir passes we're doing may insert instructions after a discard as part of e.g., nir_opt_dead_cf in the process of removing another block

fixes shaders@glsl-fs-discard-04

359c9384837 zink: add lengthy comment and remove assert from discard_if ntv pass
src/gallium/drivers/zink/zink_compiler.c | 45 ++++++++++++++++++++++++++++++--
1 file changed, 43 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share