Re: [Mesa-dev] [PATCH 3/4] nir: Allow outputs reads and add the relevant intrinsics.

2015-11-12 Thread Jason Ekstrand
On Tue, Nov 10, 2015 at 1:21 AM, Kenneth Graunke wrote: > Normally, we rely on nir_lower_outputs_to_temporaries to create shadow > variables for outputs, buffering the results and writing them all out > at the end of the program. However, this is infeasible for tessellation > control shader outpu

Re: [Mesa-dev] [PATCH 3/4] nir: Allow outputs reads and add the relevant intrinsics.

2015-11-10 Thread Kenneth Graunke
On Tuesday, November 10, 2015 01:21:35 AM you wrote: [snip] > diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c > index a42e830..841bace 100644 > --- a/src/glsl/nir/nir_validate.c > +++ b/src/glsl/nir/nir_validate.c > @@ -422,7 +422,6 @@ validate_intrinsic_instr(nir_intrinsic_i

[Mesa-dev] [PATCH 3/4] nir: Allow outputs reads and add the relevant intrinsics.

2015-11-10 Thread Kenneth Graunke
Normally, we rely on nir_lower_outputs_to_temporaries to create shadow variables for outputs, buffering the results and writing them all out at the end of the program. However, this is infeasible for tessellation control shader outputs. Tessellation control shaders can generate multiple output ve