Re: [Mesa-dev] [PATCH 05/10] nir/from_ssa: Don't try to read an invalid instruction

2015-02-05 Thread Connor Abbott
Could use a comment here explaining that nir_instr_prev() may return NULL above if the only instruction in the block is a jump instruction. On Thu, Feb 5, 2015 at 5:29 PM, Jason Ekstrand wrote: > --- > src/glsl/nir/nir_from_ssa.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff -

[Mesa-dev] [PATCH 05/10] nir/from_ssa: Don't try to read an invalid instruction

2015-02-05 Thread Jason Ekstrand
--- src/glsl/nir/nir_from_ssa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/nir/nir_from_ssa.c b/src/glsl/nir/nir_from_ssa.c index 2e7add3..2ac114d 100644 --- a/src/glsl/nir/nir_from_ssa.c +++ b/src/glsl/nir/nir_from_ssa.c @@ -277,7 +277,7 @@ get_parallel_copy_at_e