<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Apr 2, 2016 at 11:35 AM, Rob Clark <span dir="ltr"><<a href="mailto:robdclark@gmail.com" target="_blank">robdclark@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Rob Clark <<a href="mailto:robclark@freedesktop.org">robclark@freedesktop.org</a>><br>
<br>
Allegedly this was needed still by scons build.. but in practice it<br>
doesn't seem to be needed.  Removing it and running 'scons' results<br>
in no build errors.<br></blockquote><div><br></div><div>Hrm... I'm not 100% sure what I'd like to see done here.  One option would be to do what you've done and just remove the copies of Makefile.sources in glsl and nir and fix scons to use the one in compiler.  Another would be to make compiler/Makefile.am include the Makefile.sources from both glsl and nir and do a $(foreach) in the makefile to add the "glsl/" or "nir/" prefix to the filenames.  If that were a practical solution, I think it's what I would prefer.<br><br></div><div>I did a bit of poking at the Android build and it looks like it uses compiler/Makefile.sources for NIR and libcompiler but uses compiler/glsl/Makefile.sources for GLSL stuff.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Signed-off-by: Rob Clark <<a href="mailto:robclark@freedesktop.org">robclark@freedesktop.org</a>><br>
---<br>
So, afaict NIR is not even built w/ scons build (I'm just running<br>
'scons' with no args, so let me know if I'm missing some build<br>
variant).  So at least if there is no scons variant that *does*<br>
build NIR, I think this is the right thing to do to reduce<br>
confusion.  But it brings up a bigger question of what to do<br>
with my patchset which adds NIR support in mesa/st, since that<br>
obviosly won't work with scons build as-is.<br>
<br>
I guess the two options are to try to add NIR into scons build<br>
(which involves some .py generated code, so maybe not trivial)<br>
or just #ifdef'ify all the mesa/st parts in my gallium-nir<br>
patchset which introduce dependencies on NIR.  Opinions?<br>
<br>
BR,<br>
-R<br>
<br>
 src/compiler/nir/Makefile.sources | 77 ---------------------------------------<br>
 1 file changed, 77 deletions(-)<br>
 delete mode 100644 src/compiler/nir/Makefile.sources<br>
<br>
diff --git a/src/compiler/nir/Makefile.sources b/src/compiler/nir/Makefile.sources<br>
deleted file mode 100644<br>
index 3474302..0000000<br>
--- a/src/compiler/nir/Makefile.sources<br>
+++ /dev/null<br>
@@ -1,77 +0,0 @@<br>
-NIR_GENERATED_FILES = \<br>
-       nir_builder_opcodes.h \<br>
-       nir_constant_expressions.c \<br>
-       nir_opcodes.c \<br>
-       nir_opcodes.h \<br>
-       nir_opt_algebraic.c<br>
-<br>
-NIR_FILES = \<br>
-       glsl_to_nir.cpp \<br>
-       glsl_to_nir.h \<br>
-       nir.c \<br>
-       nir.h \<br>
-       nir_array.h \<br>
-       nir_builder.h \<br>
-       nir_clone.c \<br>
-       nir_constant_expressions.h \<br>
-       nir_control_flow.c \<br>
-       nir_control_flow.h \<br>
-       nir_control_flow_private.h \<br>
-       nir_dominance.c \<br>
-       nir_from_ssa.c \<br>
-       nir_gs_count_vertices.c \<br>
-       nir_inline_functions.c \<br>
-       nir_instr_set.c \<br>
-       nir_instr_set.h \<br>
-       nir_intrinsics.c \<br>
-       nir_intrinsics.h \<br>
-       nir_liveness.c \<br>
-       nir_lower_alu_to_scalar.c \<br>
-       nir_lower_atomics.c \<br>
-       nir_lower_clip.c \<br>
-       nir_lower_global_vars_to_local.c \<br>
-       nir_lower_gs_intrinsics.c \<br>
-       nir_lower_load_const_to_scalar.c \<br>
-       nir_lower_locals_to_regs.c \<br>
-       nir_lower_idiv.c \<br>
-       nir_lower_indirect_derefs.c \<br>
-       nir_lower_io.c \<br>
-       nir_lower_outputs_to_temporaries.c \<br>
-       nir_lower_phis_to_scalar.c \<br>
-       nir_lower_returns.c \<br>
-       nir_lower_samplers.c \<br>
-       nir_lower_system_values.c \<br>
-       nir_lower_tex.c \<br>
-       nir_lower_to_source_mods.c \<br>
-       nir_lower_two_sided_color.c \<br>
-       nir_lower_vars_to_ssa.c \<br>
-       nir_lower_var_copies.c \<br>
-       nir_lower_vec_to_movs.c \<br>
-       nir_metadata.c \<br>
-       nir_move_vec_src_uses_to_dest.c \<br>
-       nir_normalize_cubemap_coords.c \<br>
-       nir_opt_constant_folding.c \<br>
-       nir_opt_copy_propagate.c \<br>
-       nir_opt_cse.c \<br>
-       nir_opt_dce.c \<br>
-       nir_opt_dead_cf.c \<br>
-       nir_opt_gcm.c \<br>
-       nir_opt_global_to_local.c \<br>
-       nir_opt_peephole_select.c \<br>
-       nir_opt_remove_phis.c \<br>
-       nir_opt_undef.c \<br>
-       nir_phi_builder.c \<br>
-       nir_phi_builder.h \<br>
-       nir_print.c \<br>
-       nir_remove_dead_variables.c \<br>
-       nir_repair_ssa.c \<br>
-       nir_search.c \<br>
-       nir_search.h \<br>
-       nir_split_var_copies.c \<br>
-       nir_sweep.c \<br>
-       nir_to_ssa.c \<br>
-       nir_validate.c \<br>
-       nir_vla.h \<br>
-       nir_worklist.c \<br>
-       nir_worklist.h<br>
-<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.5.5<br>
<br>
</font></span></blockquote></div><br></div></div>