1### Lists of source files, included by Makefiles
2
3# this is part of MAIN_FILES
4MAIN_ES_FILES = \
5	main/es1_conversion.c \
6	main/es1_conversion.h
7
8MAIN_FILES = \
9	main/accum.c \
10	main/accum.h \
11	main/api_arrayelt.c \
12	main/api_arrayelt.h \
13	main/api_exec.c \
14	main/api_exec.h \
15	main/api_loopback.c \
16	main/api_loopback.h \
17	main/api_validate.c \
18	main/api_validate.h \
19	main/arbprogram.c \
20	main/arbprogram.h \
21	main/arrayobj.c \
22	main/arrayobj.h \
23	main/atifragshader.c \
24	main/atifragshader.h \
25	main/attrib.c \
26	main/attrib.h \
27	main/barrier.c \
28	main/barrier.h \
29	main/bbox.c \
30	main/bbox.h \
31	main/blend.c \
32	main/blend.h \
33	main/blit.c \
34	main/blit.h \
35	main/bufferobj.c \
36	main/bufferobj.h \
37	main/buffers.c \
38	main/buffers.h \
39	main/clear.c \
40	main/clear.h \
41	main/clip.c \
42	main/clip.h \
43	main/colormac.h \
44	main/colortab.c \
45	main/colortab.h \
46	main/compute.c \
47	main/compute.h \
48	main/compiler.h \
49	main/condrender.c \
50	main/condrender.h \
51	main/config.h \
52	main/context.c \
53	main/context.h \
54	main/convolve.c \
55	main/convolve.h \
56	main/copyimage.c \
57	main/copyimage.h \
58	main/core.h \
59	main/cpuinfo.c \
60	main/cpuinfo.h \
61	main/dd.h \
62	main/debug.c \
63	main/debug.h \
64	main/debug_output.c \
65	main/debug_output.h \
66	main/depth.c \
67	main/depth.h \
68	main/dlist.c \
69	main/dlist.h \
70	main/dlopen.h \
71	main/drawpix.c \
72	main/drawpix.h \
73	main/drawtex.c \
74	main/drawtex.h \
75	main/enable.c \
76	main/enable.h \
77	main/enums.c \
78	main/enums.h \
79	main/errors.c \
80	main/errors.h \
81	main/eval.c \
82	main/eval.h \
83	main/execmem.c \
84	main/extensions.c \
85	main/extensions.h \
86	main/extensions_table.c \
87	main/extensions_table.h \
88	main/fbobject.c \
89	main/fbobject.h \
90	main/feedback.c \
91	main/feedback.h \
92	main/ff_fragment_shader.cpp \
93	main/ffvertex_prog.c \
94	main/ffvertex_prog.h \
95	main/fog.c \
96	main/fog.h \
97	main/format_info.h \
98	main/format_pack.h \
99	main/format_pack.c \
100	main/format_unpack.h \
101	main/format_unpack.c \
102	main/formatquery.c \
103	main/formatquery.h \
104	main/formats.c \
105	main/formats.h \
106	main/format_utils.c \
107	main/format_utils.h \
108	main/framebuffer.c \
109	main/framebuffer.h \
110	main/get.c \
111	main/get.h \
112	main/get_hash.h \
113	main/genmipmap.c \
114	main/genmipmap.h \
115	main/getstring.c \
116	main/glformats.c \
117	main/glformats.h \
118	main/glheader.h \
119	main/hash.c \
120	main/hash.h \
121	main/hint.c \
122	main/hint.h \
123	main/histogram.c \
124	main/histogram.h \
125	main/image.c \
126	main/image.h \
127	main/imports.c \
128	main/imports.h \
129	main/light.c \
130	main/light.h \
131	main/lines.c \
132	main/lines.h \
133	main/macros.h \
134	main/matrix.c \
135	main/matrix.h \
136	main/mipmap.c \
137	main/mipmap.h \
138	main/mm.c \
139	main/mm.h \
140	main/mtypes.h \
141	main/multisample.c \
142	main/multisample.h \
143	main/objectlabel.c \
144	main/objectlabel.h \
145	main/objectpurge.c \
146	main/objectpurge.h \
147	main/pack.c \
148	main/pack.h \
149	main/pbo.c \
150	main/pbo.h \
151	main/performance_monitor.c \
152	main/performance_monitor.h \
153	main/pipelineobj.c \
154	main/pipelineobj.h \
155	main/pixel.c \
156	main/pixel.h \
157	main/pixelstore.c \
158	main/pixelstore.h \
159	main/pixeltransfer.c \
160	main/pixeltransfer.h \
161	main/points.c \
162	main/points.h \
163	main/polygon.c \
164	main/polygon.h \
165	main/program_resource.c \
166	main/program_resource.h \
167	main/querymatrix.c \
168	main/querymatrix.h \
169	main/queryobj.c \
170	main/queryobj.h \
171	main/rastpos.c \
172	main/rastpos.h \
173	main/readpix.c \
174	main/readpix.h \
175	main/remap.c \
176	main/remap.h \
177	main/renderbuffer.c \
178	main/renderbuffer.h \
179	main/robustness.c \
180	main/samplerobj.c \
181	main/samplerobj.h \
182	main/scissor.c \
183	main/scissor.h \
184	main/shaderapi.c \
185	main/shaderapi.h \
186	main/shaderimage.c \
187	main/shaderimage.h \
188	main/shaderobj.c \
189	main/shaderobj.h \
190	main/shader_query.cpp \
191	main/shared.c \
192	main/shared.h \
193	main/state.c \
194	main/state.h \
195	main/stencil.c \
196	main/stencil.h \
197	main/syncobj.c \
198	main/syncobj.h \
199	main/texcompress.c \
200	main/texcompress_bptc.c \
201	main/texcompress_bptc.h \
202	main/texcompress_cpal.c \
203	main/texcompress_cpal.h \
204	main/texcompress_etc.c \
205	main/texcompress_etc.h \
206	main/texcompress_etc_tmp.h \
207	main/texcompress_fxt1.c \
208	main/texcompress_fxt1.h \
209	main/texcompress.h \
210	main/texcompress_rgtc.c \
211	main/texcompress_rgtc.h \
212	main/texcompress_s3tc.c \
213	main/texcompress_s3tc.h \
214	main/texenv.c \
215	main/texenv.h \
216	main/texenvprogram.h \
217	main/texformat.c \
218	main/texformat.h \
219	main/texgen.c \
220	main/texgen.h \
221	main/texgetimage.c \
222	main/texgetimage.h \
223	main/teximage.c \
224	main/teximage.h \
225	main/texobj.c \
226	main/texobj.h \
227	main/texparam.c \
228	main/texparam.h \
229	main/texstate.c \
230	main/texstate.h \
231	main/texstorage.c \
232	main/texstorage.h \
233	main/texstore.c \
234	main/texstore.h \
235	main/textureview.c \
236	main/textureview.h \
237	main/transformfeedback.c \
238	main/transformfeedback.h \
239	main/uniform_query.cpp \
240	main/uniforms.c \
241	main/uniforms.h \
242	main/varray.c \
243	main/varray.h \
244	main/vdpau.c \
245	main/vdpau.h \
246	main/version.c \
247	main/version.h \
248	main/viewport.c \
249	main/viewport.h \
250	main/vtxfmt.c \
251	main/vtxfmt.h \
252	$(MAIN_ES_FILES)
253
254MATH_FILES = \
255	math/m_debug.h \
256	math/m_debug_clip.c \
257	math/m_debug_norm.c \
258	math/m_debug_util.h \
259	math/m_debug_xform.c \
260	math/m_eval.c \
261	math/m_eval.h \
262	math/m_matrix.c \
263	math/m_matrix.h \
264	math/m_trans_tmp.h \
265	math/m_translate.c \
266	math/m_translate.h \
267	math/m_vector.c \
268	math/m_vector.h
269
270MATH_XFORM_FILES = \
271	math/m_clip_tmp.h \
272	math/m_copy_tmp.h \
273	math/m_dotprod_tmp.h \
274	math/m_norm_tmp.h \
275	math/m_xform.c \
276	math/m_xform.h \
277	math/m_xform_tmp.h
278
279SWRAST_FILES = \
280	swrast/s_aaline.c \
281	swrast/s_aaline.h \
282	swrast/s_aalinetemp.h \
283	swrast/s_aatriangle.c \
284	swrast/s_aatriangle.h \
285	swrast/s_aatritemp.h \
286	swrast/s_alpha.c \
287	swrast/s_alpha.h \
288	swrast/s_atifragshader.c \
289	swrast/s_atifragshader.h \
290	swrast/s_bitmap.c \
291	swrast/s_blend.c \
292	swrast/s_blend.h \
293	swrast/s_blit.c \
294	swrast/s_chan.h \
295	swrast/s_clear.c \
296	swrast/s_context.c \
297	swrast/s_context.h \
298	swrast/s_copypix.c \
299	swrast/s_depth.c \
300	swrast/s_depth.h \
301	swrast/s_drawpix.c \
302	swrast_setup/ss_tritmp.h \
303	swrast_setup/ss_vb.h \
304	swrast_setup/swrast_setup.h \
305	swrast/s_feedback.c \
306	swrast/s_feedback.h \
307	swrast/s_fog.c \
308	swrast/s_fog.h \
309	swrast/s_fragprog.c \
310	swrast/s_fragprog.h \
311	swrast/s_lines.c \
312	swrast/s_lines.h \
313	swrast/s_linetemp.h \
314	swrast/s_logic.c \
315	swrast/s_logic.h \
316	swrast/s_masking.c \
317	swrast/s_masking.h \
318	swrast/s_points.c \
319	swrast/s_points.h \
320	swrast/s_renderbuffer.c \
321	swrast/s_renderbuffer.h \
322	swrast/s_span.c \
323	swrast/s_span.h \
324	swrast/s_stencil.c \
325	swrast/s_stencil.h \
326	swrast/s_texcombine.c \
327	swrast/s_texcombine.h \
328	swrast/s_texfetch.c \
329	swrast/s_texfetch.h \
330	swrast/s_texfetch_tmp.h \
331	swrast/s_texfilter.c \
332	swrast/s_texfilter.h \
333	swrast/s_texrender.c \
334	swrast/s_texture.c \
335	swrast/s_triangle.c \
336	swrast/s_triangle.h \
337	swrast/s_tritemp.h \
338	swrast/swrast.h \
339	swrast/s_zoom.c \
340	swrast/s_zoom.h
341
342SWRAST_SETUP_FILES = \
343	swrast_setup/ss_context.c \
344	swrast_setup/ss_context.h \
345	swrast_setup/ss_triangle.c \
346	swrast_setup/ss_triangle.h
347
348TNL_FILES = \
349	tnl/t_context.c \
350	tnl/t_context.h \
351	tnl/t_draw.c \
352	tnl/tnl.h \
353	tnl/t_pipeline.c \
354	tnl/t_pipeline.h \
355	tnl/t_vb_cliptmp.h \
356	tnl/t_vb_fog.c \
357	tnl/t_vb_light.c \
358	tnl/t_vb_lighttmp.h \
359	tnl/t_vb_normals.c \
360	tnl/t_vb_points.c \
361	tnl/t_vb_program.c \
362	tnl/t_vb_render.c \
363	tnl/t_vb_rendertmp.h \
364	tnl/t_vb_texgen.c \
365	tnl/t_vb_texmat.c \
366	tnl/t_vb_vertex.c \
367	tnl/t_vertex.c \
368	tnl/t_vertex_generic.c \
369	tnl/t_vertex.h \
370	tnl/t_vertex_sse.c \
371	tnl/t_vp_build.c \
372	tnl/t_vp_build.h
373
374VBO_FILES = \
375	vbo/vbo_attrib.h \
376	vbo/vbo_attrib_tmp.h \
377	vbo/vbo_context.c \
378	vbo/vbo_context.h \
379	vbo/vbo_exec_api.c \
380	vbo/vbo_exec_array.c \
381	vbo/vbo_exec.c \
382	vbo/vbo_exec_draw.c \
383	vbo/vbo_exec_eval.c \
384	vbo/vbo_exec.h \
385	vbo/vbo.h \
386	vbo/vbo_minmax_index.c \
387	vbo/vbo_noop.c \
388	vbo/vbo_noop.h \
389	vbo/vbo_primitive_restart.c \
390	vbo/vbo_rebase.c \
391	vbo/vbo_save_api.c \
392	vbo/vbo_save.c \
393	vbo/vbo_save_draw.c \
394	vbo/vbo_save.h \
395	vbo/vbo_save_loopback.c \
396	vbo/vbo_split.c \
397	vbo/vbo_split_copy.c \
398	vbo/vbo_split.h \
399	vbo/vbo_split_inplace.c
400
401STATETRACKER_FILES = \
402	state_tracker/st_atifs_to_tgsi.c \
403	state_tracker/st_atifs_to_tgsi.h \
404	state_tracker/st_atom_array.c \
405	state_tracker/st_atom_atomicbuf.c \
406	state_tracker/st_atom_blend.c \
407	state_tracker/st_atom.c \
408	state_tracker/st_atom_clip.c \
409	state_tracker/st_atom_constbuf.c \
410	state_tracker/st_atom_constbuf.h \
411	state_tracker/st_atom_depth.c \
412	state_tracker/st_atom_framebuffer.c \
413	state_tracker/st_atom.h \
414	state_tracker/st_atom_list.h \
415	state_tracker/st_atom_image.c \
416	state_tracker/st_atom_msaa.c \
417	state_tracker/st_atom_pixeltransfer.c \
418	state_tracker/st_atom_rasterizer.c \
419	state_tracker/st_atom_sampler.c \
420	state_tracker/st_atom_scissor.c \
421	state_tracker/st_atom_shader.c \
422	state_tracker/st_atom_shader.h \
423	state_tracker/st_atom_stipple.c \
424	state_tracker/st_atom_storagebuf.c \
425	state_tracker/st_atom_tess.c \
426	state_tracker/st_atom_texture.c \
427	state_tracker/st_atom_viewport.c \
428	state_tracker/st_cache.h \
429	state_tracker/st_cb_bitmap.c \
430	state_tracker/st_cb_bitmap.h \
431	state_tracker/st_cb_bitmap_shader.c \
432	state_tracker/st_cb_blit.c \
433	state_tracker/st_cb_blit.h \
434	state_tracker/st_cb_bufferobjects.c \
435	state_tracker/st_cb_bufferobjects.h \
436	state_tracker/st_cb_clear.c \
437	state_tracker/st_cb_clear.h \
438	state_tracker/st_cb_compute.c \
439	state_tracker/st_cb_compute.h \
440	state_tracker/st_cb_condrender.c \
441	state_tracker/st_cb_condrender.h \
442	state_tracker/st_cb_copyimage.c \
443	state_tracker/st_cb_copyimage.h \
444	state_tracker/st_cb_drawpixels.c \
445	state_tracker/st_cb_drawpixels.h \
446	state_tracker/st_cb_drawpixels_shader.c \
447	state_tracker/st_cb_drawtex.c \
448	state_tracker/st_cb_drawtex.h \
449	state_tracker/st_cb_eglimage.c \
450	state_tracker/st_cb_eglimage.h \
451	state_tracker/st_cb_fbo.c \
452	state_tracker/st_cb_fbo.h \
453	state_tracker/st_cb_feedback.c \
454	state_tracker/st_cb_feedback.h \
455	state_tracker/st_cb_flush.c \
456	state_tracker/st_cb_flush.h \
457	state_tracker/st_cb_msaa.c \
458	state_tracker/st_cb_msaa.h \
459	state_tracker/st_cb_perfmon.c \
460	state_tracker/st_cb_perfmon.h \
461	state_tracker/st_cb_program.c \
462	state_tracker/st_cb_program.h \
463	state_tracker/st_cb_queryobj.c \
464	state_tracker/st_cb_queryobj.h \
465	state_tracker/st_cb_rasterpos.c \
466	state_tracker/st_cb_rasterpos.h \
467	state_tracker/st_cb_readpixels.c \
468	state_tracker/st_cb_readpixels.h \
469	state_tracker/st_cb_strings.c \
470	state_tracker/st_cb_strings.h \
471	state_tracker/st_cb_syncobj.c \
472	state_tracker/st_cb_syncobj.h \
473	state_tracker/st_cb_texturebarrier.c \
474	state_tracker/st_cb_texturebarrier.h \
475	state_tracker/st_cb_texture.c \
476	state_tracker/st_cb_texture.h \
477	state_tracker/st_cb_viewport.c \
478	state_tracker/st_cb_viewport.h \
479	state_tracker/st_cb_xformfb.c \
480	state_tracker/st_cb_xformfb.h \
481	state_tracker/st_context.c \
482	state_tracker/st_context.h \
483	state_tracker/st_copytex.c \
484	state_tracker/st_copytex.h \
485	state_tracker/st_debug.c \
486	state_tracker/st_debug.h \
487	state_tracker/st_draw.c \
488	state_tracker/st_draw_feedback.c \
489	state_tracker/st_draw.h \
490	state_tracker/st_extensions.c \
491	state_tracker/st_extensions.h \
492	state_tracker/st_format.c \
493	state_tracker/st_format.h \
494	state_tracker/st_gen_mipmap.c \
495	state_tracker/st_gen_mipmap.h \
496	state_tracker/st_gl_api.h \
497	state_tracker/st_glsl_to_nir.cpp \
498	state_tracker/st_glsl_to_tgsi.cpp \
499	state_tracker/st_glsl_to_tgsi.h \
500	state_tracker/st_glsl_types.cpp \
501	state_tracker/st_glsl_types.h \
502	state_tracker/st_manager.c \
503	state_tracker/st_manager.h \
504	state_tracker/st_mesa_to_tgsi.c \
505	state_tracker/st_mesa_to_tgsi.h \
506	state_tracker/st_nir.h \
507	state_tracker/st_nir_lower_builtin.c \
508	state_tracker/st_nir_lower_tex_src_plane.c \
509	state_tracker/st_pbo.c \
510	state_tracker/st_pbo.h \
511	state_tracker/st_program.c \
512	state_tracker/st_program.h \
513	state_tracker/st_sampler_view.c \
514	state_tracker/st_sampler_view.h \
515	state_tracker/st_scissor.c \
516	state_tracker/st_scissor.h \
517	state_tracker/st_texture.c \
518	state_tracker/st_texture.h \
519	state_tracker/st_tgsi_lower_yuv.c \
520	state_tracker/st_tgsi_lower_yuv.h \
521	state_tracker/st_vdpau.c \
522	state_tracker/st_vdpau.h
523
524PROGRAM_FILES = \
525	program/arbprogparse.c \
526	program/arbprogparse.h \
527	program/ir_to_mesa.cpp \
528	program/ir_to_mesa.h \
529	program/lex.yy.c \
530	program/prog_cache.c \
531	program/prog_cache.h \
532	program/prog_execute.c \
533	program/prog_execute.h \
534	program/prog_instruction.c \
535	program/prog_instruction.h \
536	program/prog_noise.c \
537	program/prog_noise.h \
538	program/prog_opt_constant_fold.c \
539	program/prog_optimize.c \
540	program/prog_optimize.h \
541	program/prog_parameter.c \
542	program/prog_parameter.h \
543	program/prog_parameter_layout.c \
544	program/prog_parameter_layout.h \
545	program/prog_print.c \
546	program/prog_print.h \
547	program/program.c \
548	program/program.h \
549	program/programopt.c \
550	program/programopt.h \
551	program/program_parse_extra.c \
552	program/program_parse.tab.c \
553	program/program_parse.tab.h \
554	program/program_parser.h \
555	program/prog_statevars.c \
556	program/prog_statevars.h \
557	program/symbol_table.c \
558	program/symbol_table.h
559
560PROGRAM_NIR_FILES = \
561	program/prog_to_nir.c \
562	program/prog_to_nir.h
563
564ASM_C_FILES =	\
565	x86/common_x86.c \
566	x86/x86_xform.c \
567	x86/3dnow.c \
568	x86/sse.c \
569	x86/rtasm/x86sse.c \
570	x86/rtasm/x86sse.h \
571	sparc/sparc.c \
572	x86-64/x86-64.c
573
574X86_FILES =			\
575	x86/assyntax.h		\
576	x86/clip_args.h	\
577	x86/norm_args.h	\
578	x86/xform_args.h	\
579	x86/common_x86_asm.S	\
580	x86/common_x86_asm.h	\
581	x86/common_x86_features.h	\
582	x86/x86_xform.h	\
583	x86/x86_xform2.S	\
584	x86/x86_xform3.S	\
585	x86/x86_xform4.S	\
586	x86/x86_cliptest.S	\
587	x86/mmx.h		\
588	x86/mmx_blend.S	\
589	x86/mmx_blendtmp.h	\
590	x86/3dnow.h		\
591	x86/3dnow_xform1.S	\
592	x86/3dnow_xform2.S	\
593	x86/3dnow_xform3.S	\
594	x86/3dnow_xform4.S	\
595	x86/sse.h		\
596	x86/sse_xform1.S	\
597	x86/sse_xform2.S	\
598	x86/sse_xform3.S	\
599	x86/sse_xform4.S	\
600	x86/sse_normal.S	\
601	x86/read_rgba_span_x86.S
602
603X86_64_FILES =		\
604	x86-64/x86-64.h	\
605	x86-64/xform4.S
606
607X86_SSE41_FILES = \
608	main/streaming-load-memcpy.c \
609	main/streaming-load-memcpy.h \
610	main/sse_minmax.c \
611	main/sse_minmax.h
612
613SPARC_FILES =			\
614	sparc/sparc.h		\
615	sparc/sparc_clip.S	\
616	sparc/sparc_matrix.h	\
617	sparc/norm.S		\
618	sparc/xform.S
619
620COMMON_DRIVER_FILES =			\
621	drivers/common/driverfuncs.c	\
622	drivers/common/driverfuncs.h	\
623	drivers/common/meta_blit.c	\
624	drivers/common/meta_generate_mipmap.c	\
625	drivers/common/meta_tex_subimage.c	\
626	drivers/common/meta.c \
627	drivers/common/meta.h
628
629
630# Sources for building non-Gallium drivers
631MESA_FILES = \
632	$(MAIN_FILES)		\
633	$(MATH_FILES)		\
634	$(MATH_XFORM_FILES)	\
635	$(VBO_FILES)		\
636	$(TNL_FILES)		\
637	$(SWRAST_FILES)	\
638	$(SWRAST_SETUP_FILES)	\
639	$(COMMON_DRIVER_FILES)\
640	$(ASM_C_FILES)
641
642# Sources for building Gallium drivers
643MESA_GALLIUM_FILES = \
644	$(MAIN_FILES)		\
645	$(MATH_FILES)		\
646	$(VBO_FILES)		\
647	$(STATETRACKER_FILES)	\
648	x86/common_x86.c
649
650### Include directories
651
652INCLUDE_DIRS = \
653	-I$(top_srcdir)/include \
654	-I$(top_builddir)/src \
655	-I$(top_srcdir)/src \
656	-I$(top_builddir)/src/compiler/glsl \
657	-I$(top_builddir)/src/compiler/nir \
658	-I$(top_builddir)/src/mesa \
659	-I$(top_srcdir)/src/mesa \
660	-I$(top_builddir)/src/mesa/main \
661	-I$(top_srcdir)/src/mesa/main \
662	-I$(top_builddir)/src/mapi \
663	-I$(top_srcdir)/src/mapi \
664	-I$(top_srcdir)/src/gallium/include \
665	-I$(top_srcdir)/src/gallium/auxiliary
666