summaryrefslogtreecommitdiffstats
path: root/src/VBox/Additions/3D/mesa/Makefile.kmk
blob: cf22d3d436596308fc1ade735ace47202f6b95be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
# $Id: Makefile.kmk $
## @file
# Sub-Makefile for the VirtualBox Guest Mesa 3D components
#

#
# Copyright (C) 2016-2019 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#

SUB_DEPTH = ../../../../..
include $(KBUILD_PATH)/subheader.kmk

#
# Target lists.
#
LIBRARIES.win += \
	VBoxMesaUtilLib \
	VBoxMesaLib \
	VBoxMesaWglLib \
	VBoxMesaGalliumAuxLib \
	VBoxMesaNineLib \
	VBoxMesaSVGALib \
	VBoxMesaSVGAWinsysLib
LIBRARIES.win.amd64 += \
	VBoxMesaUtilLib-x86 \
	VBoxMesaLib-x86 \
	VBoxMesaWglLib-x86 \
	VBoxMesaGalliumAuxLib-x86 \
	VBoxMesaNineLib-x86 \
	VBoxMesaSVGALib-x86 \
	VBoxMesaSVGAWinsysLib-x86


TEMPLATE_VBoxMesa3DGuestR3Lib               = VBox Mesa 3D Guest User Mode Library
TEMPLATE_VBoxMesa3DGuestR3Lib_EXTENDS       = VBoxMesa3DGuestR3Dll
TEMPLATE_VBoxMesa3DGuestR3Lib_INST          = $(INST_ADDITIONS_LIB)
ifeq ($(KBUILD_TARGET),win)
# Do not treat warnings as errors, because Mesa code produces too many warnings with MSC.
TEMPLATE_VBoxMesa3DGuestR3Lib_CFLAGS        = $(filter-out -WX,$(TEMPLATE_VBoxMesa3DGuestR3Dll_CFLAGS))
TEMPLATE_VBoxMesa3DGuestR3Lib_CXXFLAGS      = $(filter-out -WX,$(TEMPLATE_VBoxMesa3DGuestR3Dll_CXXFLAGS))
#  -wd4005: vcc120: '__useHeader' : macro redefinition
#  -wd4013: undefined; assuming extern returning int
#  -wd4018: signed/unsigned mismatch
#  -wd4054: 'type cast' : from function pointer to data pointer 'void *'
#  -wd4057: 'function' : 'int *' differs in indirection to slightly different base types from 'uint32_t *'
#  -wd4090: 'function' : different 'const' qualifiers
#  -wd4098: 'void' function returning a value
#  -wd4099: 'st_src_reg' : type name first seen using 'class' now seen using 'struct'
#  -wd4100: unreferenced formal parameter
#  -wd4101: unreferenced local variable
#  -wd4130: '==' : logical operation on address of string constant
#  -wd4132: 'color' : const object should be initialized
#  -wd4146: unary minus operator applied to unsigned type, result still unsigned
#  -wd4152: nonstandard extension, function/data pointer conversion in expression
#  -wd4189: 'signo' : local variable is initialized but not referenced
#  -wd4200: nonstandard extension used : zero-sized array in struct/union
#  -wd4204: nonstandard extension used : non-constant aggregate initializer
#  -wd4206: nonstandard extension used : translation unit is empty
#  -wd4211: nonstandard extension used : redefined extern to static
#  -wd4221: nonstandard extension used : 'tokens' : cannot be initialized using address of automatic variable 'tokens'
#  -wd4245: '=' : conversion from 'int' to 'unsigned int', signed/unsigned mismatch
#  -wd4255: no function prototype given
#  -wd4258: 'i' : definition from the for loop is ignored; the definition from the enclosing scope is used
#  -wd4265: 'ir_variable_refcount_visitor' : class has virtual functions, but destructor is not virtual
#  -wd4267: '=' : conversion from 'size_t' to 'unsigned int', possible loss of data
#  -wd4266: 'void ir_visitor::visit(ir_rvalue *)' : no override available for virtual member function from base 'ir_visitor'; function is hidden
#  -wd4287: unsigned/negative constant mismatch
#  -wd4291: 'void *exec_node::operator new(size_t,void *)' : no matching operator delete found; memory will not be freed if initialization throws an exception
#  -wd4305: truncation from 'double' to 'const float'
#  -wd4306: 'type cast' : conversion from 'int' to 'void *' of greater size
#  -wd4310: cast truncates constant value
#  -wd4311: 'type cast' : pointer truncation from 'void *' to 'unsigned long'
#  -wd4351: new behavior: elements of array '_mesa_glsl_parse_state::cs_input_local_size' will be default initialized
#  -wd4355: 'this' : used in base member initializer list
#  -wd4388: '==' : signed/unsigned mismatch
#  -wd4389: '==' : signed/unsigned mismatch
#  -wd4640: 'ts' : construction of local static object is not thread-safe
#  -wd4668: '__STDC_VERSION__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
#  -wd4700: uninitialized local variable 'tmp' used
#  -wd4701: potentially uninitialized local variable 'query' used
#  -wd4702: unreachable code
#  -wd4703: vcc120: potentially uninitialized local pointer variable 'gen_func' used
#  -wd4756: overflow in constant arithmetic
#  -wd4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
#  -wd4805: '|=' : unsafe mix of type 'GLboolean' and type 'bool' in operation
#  -wd4918: 'y' : invalid character in pragma optimization list
VBOX_MESA3D_VCC_DISABLED_WARNINGS           = \
	-wd4005 -wd4013 -wd4018 -wd4054 -wd4057 -wd4090 -wd4098 -wd4099 -wd4100 -wd4101 -wd4130 -wd4132 -wd4146 \
	-wd4152 -wd4189 -wd4200 -wd4204 -wd4206 -wd4211 -wd4221 -wd4245 -wd4255 -wd4258 -wd4265 -wd4267 -wd4266 \
	-wd4287 -wd4291 -wd4305 -wd4306 -wd4310 -wd4311 -wd4351 -wd4355 -wd4388 -wd4389 -wd4640 -wd4668 -wd4700 \
	-wd4701 -wd4702 -wd4703 -wd4756 -wd4800 -wd4805 -wd4918
TEMPLATE_VBoxMesa3DGuestR3Lib_CFLAGS.win   += $(VBOX_MESA3D_VCC_DISABLED_WARNINGS)
TEMPLATE_VBoxMesa3DGuestR3Lib_CXXFLAGS.win += $(VBOX_MESA3D_VCC_DISABLED_WARNINGS)
endif
TEMPLATE_VBoxMesa3DGuestR3Lib_INCS          = \
	include \
	$(VBOX_MESA)/include/GL \
	$(VBOX_MESA)/src/mapi \
	$(VBOX_MESA)/src/util \
	$(VBOX_MESA)/src/mesa/main \
	$(VBOX_MESA)/src/compiler \
	$(VBOX_MESA)/src/compiler/nir \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl \
	$(TEMPLATE_VBoxMesa3DGuestR3Dll_INCS)
TEMPLATE_VBoxMesa3DGuestR3Lib_DEFS          = \
	$(TEMPLATE_VBoxMesa3DGuestR3Dll_DEFS) \
	PACKAGE_VERSION=\"$(VBOX_MESA)\" \
	PACKAGE_BUGREPORT=\"$(VBOX_MESA)\"
# For wgl, glapi and mesa
TEMPLATE_VBoxMesa3DGuestR3Lib_DEFS         += \
	MAPI_MODE_UTIL _GDI32_ BUILD_GL32 KHRONOS_DLL_EXPORTS GL_API=GLAPI GL_APIENTRY=GLAPIENTRY _GLAPI_NO_EXPORTS
TEMPLATE_VBoxMesa3DGuestR3Lib_DEFS.release  = \
	$(TEMPLATE_VBoxMesa3DGuestR3Dll_DEFS.release) \
	NDEBUG


#
# VBoxMesaUtilLib
#
VBoxMesaUtilLib_TEMPLATE = VBoxMesa3DGuestR3Lib
VBoxMesaUtilLib_SOURCES  = \
	$(VBOX_MESA)/src/util/bitscan.c \
	$(VBOX_MESA)/src/util/build_id.c \
	$(VBOX_MESA)/src/util/crc32.c \
	$(VBOX_MESA)/src/util/debug.c \
	$(VBOX_MESA)/src/util/disk_cache.c \
	$(VBOX_MESA)/src/util/half_float.c \
	$(VBOX_MESA)/src/util/hash_table.c \
	$(VBOX_MESA)/src/util/ralloc.c \
	$(VBOX_MESA)/src/util/rand_xor.c \
	$(VBOX_MESA)/src/util/register_allocate.c \
	$(VBOX_MESA)/src/util/rgtc.c \
	$(VBOX_MESA)/src/util/set.c \
	$(VBOX_MESA)/src/util/mesa-sha1.c \
	$(VBOX_MESA)/src/util/sha1/sha1.c \
	$(VBOX_MESA)/src/util/slab.c \
	$(VBOX_MESA)/src/util/string_buffer.c \
	$(VBOX_MESA)/src/util/strtod.c \
	$(VBOX_MESA)/src/util/u_atomic.c \
	$(VBOX_MESA)/src/util/u_queue.c \
	$(VBOX_MESA)/src/util/u_vector.c
# Auto-generated
VBoxMesaUtilLib_SOURCES += \
	$(VBOX_MESA)/src/util/format_srgb.c

# 32 bit lib for 64 bit build
VBoxMesaUtilLib-x86_EXTENDS      = VBoxMesaUtilLib
VBoxMesaUtilLib-x86_BLD_TRG_ARCH = x86


#
# VBoxMesaLib
#
VBoxMesaLib_TEMPLATE = VBoxMesa3DGuestR3Lib
VBoxMesaLib_SOURCES  = \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atifs_to_tgsi.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_array.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_atomicbuf.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_blend.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_clip.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_constbuf.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_depth.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_framebuffer.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_image.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_msaa.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_pixeltransfer.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_rasterizer.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_sampler.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_scissor.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_shader.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_stipple.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_storagebuf.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_tess.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_texture.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_atom_viewport.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_bitmap.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_bitmap_shader.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_blit.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_bufferobjects.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_clear.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_compute.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_condrender.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_copyimage.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_drawpixels.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_drawpixels_shader.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_drawtex.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_eglimage.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_fbo.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_feedback.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_flush.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_memoryobjects.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_msaa.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_perfmon.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_program.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_queryobj.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_rasterpos.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_readpixels.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_strings.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_syncobj.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_texturebarrier.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_texture.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_viewport.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_cb_xformfb.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_context.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_copytex.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_debug.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_draw.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_draw_feedback.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_extensions.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_format.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_gen_mipmap.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_glsl_to_nir.cpp \
	$(VBOX_MESA)/src/mesa/state_tracker/st_glsl_to_tgsi.cpp \
	$(VBOX_MESA)/src/mesa/state_tracker/st_glsl_to_tgsi_private.cpp \
	$(VBOX_MESA)/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp \
	$(VBOX_MESA)/src/mesa/state_tracker/st_glsl_types.cpp \
	$(VBOX_MESA)/src/mesa/state_tracker/st_manager.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_mesa_to_tgsi.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_nir_lower_builtin.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_nir_lower_tex_src_plane.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_pbo.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_program.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_sampler_view.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_scissor.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_shader_cache.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_texture.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_tgsi_lower_yuv.c \
	$(VBOX_MESA)/src/mesa/state_tracker/st_vdpau.c
VBoxMesaLib_SOURCES += \
	$(VBOX_MESA)/src/mesa/program/arbprogparse.c \
	$(VBOX_MESA)/src/mesa/program/ir_to_mesa.cpp \
	$(VBOX_MESA)/src/mesa/program/lex.yy.c \
	$(VBOX_MESA)/src/mesa/program/prog_cache.c \
	$(VBOX_MESA)/src/mesa/program/prog_execute.c \
	$(VBOX_MESA)/src/mesa/program/prog_instruction.c \
	$(VBOX_MESA)/src/mesa/program/prog_noise.c \
	$(VBOX_MESA)/src/mesa/program/prog_opt_constant_fold.c \
	$(VBOX_MESA)/src/mesa/program/prog_optimize.c \
	$(VBOX_MESA)/src/mesa/program/prog_parameter.c \
	$(VBOX_MESA)/src/mesa/program/prog_parameter_layout.c \
	$(VBOX_MESA)/src/mesa/program/prog_print.c \
	$(VBOX_MESA)/src/mesa/program/program.c \
	$(VBOX_MESA)/src/mesa/program/programopt.c \
	$(VBOX_MESA)/src/mesa/program/program_parse_extra.c \
	$(VBOX_MESA)/src/mesa/program/program_parse.tab.c \
	$(VBOX_MESA)/src/mesa/program/prog_statevars.c \
	$(VBOX_MESA)/src/mesa/program/symbol_table.c
VBoxMesaLib_SOURCES += \
	$(VBOX_MESA)/src/mesa/main/accum.c \
	$(VBOX_MESA)/src/mesa/main/api_arrayelt.c \
	$(VBOX_MESA)/src/mesa/main/api_exec.c \
	$(VBOX_MESA)/src/mesa/main/api_loopback.c \
	$(VBOX_MESA)/src/mesa/main/api_validate.c \
	$(VBOX_MESA)/src/mesa/main/arbprogram.c \
	$(VBOX_MESA)/src/mesa/main/arrayobj.c \
	$(VBOX_MESA)/src/mesa/main/atifragshader.c \
	$(VBOX_MESA)/src/mesa/main/attrib.c \
	$(VBOX_MESA)/src/mesa/main/barrier.c \
	$(VBOX_MESA)/src/mesa/main/bbox.c \
	$(VBOX_MESA)/src/mesa/main/blend.c \
	$(VBOX_MESA)/src/mesa/main/blit.c \
	$(VBOX_MESA)/src/mesa/main/bufferobj.c \
	$(VBOX_MESA)/src/mesa/main/buffers.c \
	$(VBOX_MESA)/src/mesa/main/clear.c \
	$(VBOX_MESA)/src/mesa/main/clip.c \
	$(VBOX_MESA)/src/mesa/main/colortab.c \
	$(VBOX_MESA)/src/mesa/main/compute.c \
	$(VBOX_MESA)/src/mesa/main/condrender.c \
	$(VBOX_MESA)/src/mesa/main/context.c \
	$(VBOX_MESA)/src/mesa/main/convolve.c \
	$(VBOX_MESA)/src/mesa/main/copyimage.c \
	$(VBOX_MESA)/src/mesa/main/cpuinfo.c \
	$(VBOX_MESA)/src/mesa/main/debug.c \
	$(VBOX_MESA)/src/mesa/main/debug_output.c \
	$(VBOX_MESA)/src/mesa/main/depth.c \
	$(VBOX_MESA)/src/mesa/main/dlist.c \
	$(VBOX_MESA)/src/mesa/main/drawpix.c \
	$(VBOX_MESA)/src/mesa/main/drawtex.c \
	$(VBOX_MESA)/src/mesa/main/enable.c \
	$(VBOX_MESA)/src/mesa/main/enums.c \
	$(VBOX_MESA)/src/mesa/main/errors.c \
	$(VBOX_MESA)/src/mesa/main/eval.c \
	$(VBOX_MESA)/src/mesa/main/execmem.c \
	$(VBOX_MESA)/src/mesa/main/extensions.c \
	$(VBOX_MESA)/src/mesa/main/extensions_table.c \
	$(VBOX_MESA)/src/mesa/main/externalobjects.c \
	$(VBOX_MESA)/src/mesa/main/fbobject.c \
	$(VBOX_MESA)/src/mesa/main/feedback.c \
	$(VBOX_MESA)/src/mesa/main/ff_fragment_shader.cpp \
	$(VBOX_MESA)/src/mesa/main/ffvertex_prog.c \
	$(VBOX_MESA)/src/mesa/main/fog.c \
	$(VBOX_MESA)/src/mesa/main/format_fallback.c \
	$(VBOX_MESA)/src/mesa/main/format_pack.c \
	$(VBOX_MESA)/src/mesa/main/format_unpack.c \
	$(VBOX_MESA)/src/mesa/main/formatquery.c \
	$(VBOX_MESA)/src/mesa/main/formats.c \
	$(VBOX_MESA)/src/mesa/main/format_utils.c \
	$(VBOX_MESA)/src/mesa/main/framebuffer.c \
	$(VBOX_MESA)/src/mesa/main/get.c \
	$(VBOX_MESA)/src/mesa/main/genmipmap.c \
	$(VBOX_MESA)/src/mesa/main/getstring.c \
	$(VBOX_MESA)/src/mesa/main/glformats.c \
	$(VBOX_MESA)/src/mesa/main/glthread.c \
	$(VBOX_MESA)/src/mesa/main/hash.c \
	$(VBOX_MESA)/src/mesa/main/hint.c \
	$(VBOX_MESA)/src/mesa/main/histogram.c \
	$(VBOX_MESA)/src/mesa/main/image.c \
	$(VBOX_MESA)/src/mesa/main/imports.c \
	$(VBOX_MESA)/src/mesa/main/light.c \
	$(VBOX_MESA)/src/mesa/main/lines.c \
	$(VBOX_MESA)/src/mesa/main/marshal.c \
	$(VBOX_MESA)/src/mesa/main/marshal_generated.c \
	$(VBOX_MESA)/src/mesa/main/matrix.c \
	$(VBOX_MESA)/src/mesa/main/mipmap.c \
	$(VBOX_MESA)/src/mesa/main/mm.c \
	$(VBOX_MESA)/src/mesa/main/multisample.c \
	$(VBOX_MESA)/src/mesa/main/objectlabel.c \
	$(VBOX_MESA)/src/mesa/main/objectpurge.c \
	$(VBOX_MESA)/src/mesa/main/pack.c \
	$(VBOX_MESA)/src/mesa/main/pbo.c \
	$(VBOX_MESA)/src/mesa/main/performance_monitor.c \
	$(VBOX_MESA)/src/mesa/main/performance_query.c \
	$(VBOX_MESA)/src/mesa/main/pipelineobj.c \
	$(VBOX_MESA)/src/mesa/main/pixel.c \
	$(VBOX_MESA)/src/mesa/main/pixelstore.c \
	$(VBOX_MESA)/src/mesa/main/pixeltransfer.c \
	$(VBOX_MESA)/src/mesa/main/points.c \
	$(VBOX_MESA)/src/mesa/main/polygon.c \
	$(VBOX_MESA)/src/mesa/main/program_resource.c \
	$(VBOX_MESA)/src/mesa/main/querymatrix.c \
	$(VBOX_MESA)/src/mesa/main/queryobj.c \
	$(VBOX_MESA)/src/mesa/main/rastpos.c \
	$(VBOX_MESA)/src/mesa/main/readpix.c \
	$(VBOX_MESA)/src/mesa/main/remap.c \
	$(VBOX_MESA)/src/mesa/main/renderbuffer.c \
	$(VBOX_MESA)/src/mesa/main/robustness.c \
	$(VBOX_MESA)/src/mesa/main/samplerobj.c \
	$(VBOX_MESA)/src/mesa/main/scissor.c \
	$(VBOX_MESA)/src/mesa/main/shaderapi.c \
	$(VBOX_MESA)/src/mesa/main/shaderimage.c \
	$(VBOX_MESA)/src/mesa/main/shaderobj.c \
	$(VBOX_MESA)/src/mesa/main/shader_query.cpp \
	$(VBOX_MESA)/src/mesa/main/shared.c \
	$(VBOX_MESA)/src/mesa/main/state.c \
	$(VBOX_MESA)/src/mesa/main/stencil.c \
	$(VBOX_MESA)/src/mesa/main/syncobj.c \
	$(VBOX_MESA)/src/mesa/main/texcompress.c \
	$(VBOX_MESA)/src/mesa/main/texcompress_bptc.c \
	$(VBOX_MESA)/src/mesa/main/texcompress_cpal.c \
	$(VBOX_MESA)/src/mesa/main/texcompress_etc.c \
	$(VBOX_MESA)/src/mesa/main/texcompress_fxt1.c \
	$(VBOX_MESA)/src/mesa/main/texcompress_rgtc.c \
	$(VBOX_MESA)/src/mesa/main/texcompress_s3tc.c \
	$(VBOX_MESA)/src/mesa/main/texenv.c \
	$(VBOX_MESA)/src/mesa/main/texformat.c \
	$(VBOX_MESA)/src/mesa/main/texgen.c \
	$(VBOX_MESA)/src/mesa/main/texgetimage.c \
	$(VBOX_MESA)/src/mesa/main/teximage.c \
	$(VBOX_MESA)/src/mesa/main/texobj.c \
	$(VBOX_MESA)/src/mesa/main/texparam.c \
	$(VBOX_MESA)/src/mesa/main/texstate.c \
	$(VBOX_MESA)/src/mesa/main/texstorage.c \
	$(VBOX_MESA)/src/mesa/main/texstore.c \
	$(VBOX_MESA)/src/mesa/main/texturebindless.c \
	$(VBOX_MESA)/src/mesa/main/textureview.c \
	$(VBOX_MESA)/src/mesa/main/transformfeedback.c \
	$(VBOX_MESA)/src/mesa/main/uniform_query.cpp \
	$(VBOX_MESA)/src/mesa/main/uniforms.c \
	$(VBOX_MESA)/src/mesa/main/varray.c \
	$(VBOX_MESA)/src/mesa/main/vdpau.c \
	$(VBOX_MESA)/src/mesa/main/version.c \
	$(VBOX_MESA)/src/mesa/main/viewport.c \
	$(VBOX_MESA)/src/mesa/main/vtxfmt.c \
	$(VBOX_MESA)/src/mesa/main/es1_conversion.c
VBoxMesaLib_SOURCES += \
	$(VBOX_MESA)/src/mesa/math/m_debug_clip.c \
	$(VBOX_MESA)/src/mesa/math/m_debug_norm.c \
	$(VBOX_MESA)/src/mesa/math/m_debug_xform.c \
	$(VBOX_MESA)/src/mesa/math/m_eval.c \
	$(VBOX_MESA)/src/mesa/math/m_matrix.c \
	$(VBOX_MESA)/src/mesa/math/m_translate.c \
	$(VBOX_MESA)/src/mesa/math/m_vector.c
VBoxMesaLib_SOURCES += \
	$(VBOX_MESA)/src/mesa/vbo/vbo_context.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_exec_api.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_exec_array.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_exec.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_exec_draw.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_exec_eval.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_minmax_index.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_noop.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_primitive_restart.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_rebase.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_save_api.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_save.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_save_draw.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_save_loopback.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_split.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_split_copy.c \
	$(VBOX_MESA)/src/mesa/vbo/vbo_split_inplace.c
VBoxMesaLib_SOURCES += \
	$(VBOX_MESA)/src/compiler/blob.c \
	$(VBOX_MESA)/src/compiler/glsl_types.cpp \
	$(VBOX_MESA)/src/compiler/nir_types.cpp \
	$(VBOX_MESA)/src/compiler/shader_enums.c \
	$(VBOX_MESA)/src/compiler/glsl/ast_array_index.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ast_expr.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ast_function.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ast_to_hir.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ast_type.cpp \
	$(VBOX_MESA)/src/compiler/glsl/builtin_functions.cpp \
	$(VBOX_MESA)/src/compiler/glsl/builtin_types.cpp \
	$(VBOX_MESA)/src/compiler/glsl/builtin_variables.cpp \
	$(VBOX_MESA)/src/compiler/glsl/generate_ir.cpp \
	$(VBOX_MESA)/src/compiler/glsl/glsl_parser_extras.cpp \
	$(VBOX_MESA)/src/compiler/glsl/glsl_symbol_table.cpp \
	$(VBOX_MESA)/src/compiler/glsl/glsl_to_nir.cpp \
	$(VBOX_MESA)/src/compiler/glsl/hir_field_selection.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_array_refcount.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_basic_block.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_builder.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_clone.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_constant_expression.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_equals.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_expression_flattening.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_function_can_inline.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_function_detect_recursion.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_function.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_hierarchical_visitor.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_hv_accept.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_print_visitor.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_reader.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_rvalue_visitor.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_set_program_inouts.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_validate.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_variable_refcount.cpp \
	$(VBOX_MESA)/src/compiler/glsl/linker.cpp \
	$(VBOX_MESA)/src/compiler/glsl/link_atomics.cpp \
	$(VBOX_MESA)/src/compiler/glsl/link_functions.cpp \
	$(VBOX_MESA)/src/compiler/glsl/link_interface_blocks.cpp \
	$(VBOX_MESA)/src/compiler/glsl/link_uniforms.cpp \
	$(VBOX_MESA)/src/compiler/glsl/link_uniform_initializers.cpp \
	$(VBOX_MESA)/src/compiler/glsl/link_uniform_block_active_visitor.cpp \
	$(VBOX_MESA)/src/compiler/glsl/link_uniform_blocks.cpp \
	$(VBOX_MESA)/src/compiler/glsl/link_varyings.cpp \
	$(VBOX_MESA)/src/compiler/glsl/loop_analysis.cpp \
	$(VBOX_MESA)/src/compiler/glsl/loop_unroll.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_blend_equation_advanced.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_buffer_access.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_const_arrays_to_uniforms.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_cs_derived.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_discard.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_discard_flow.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_distance.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_if_to_cond_assign.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_instructions.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_int64.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_jumps.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_mat_op_to_vec.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_noise.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_offset_array.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_packed_varyings.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_named_interface_blocks.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_packing_builtins.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_subroutine.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_tess_level.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_texture_projection.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_variable_index_to_cond_assign.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_vec_index_to_cond_assign.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_vec_index_to_swizzle.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_vector.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_vector_derefs.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_vector_insert.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_vertex_id.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_output_reads.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_shared_reference.cpp \
	$(VBOX_MESA)/src/compiler/glsl/lower_ubo_reference.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_algebraic.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_array_splitting.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_conditional_discard.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_constant_folding.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_constant_propagation.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_constant_variable.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_copy_propagation.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_copy_propagation_elements.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_dead_builtin_variables.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_dead_builtin_varyings.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_dead_code.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_dead_code_local.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_dead_functions.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_flatten_nested_if_blocks.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_flip_matrices.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_function_inlining.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_if_simplification.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_minmax.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_noop_swizzle.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_rebalance_tree.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_redundant_jumps.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_structure_splitting.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_swizzle_swizzle.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_tree_grafting.cpp \
	$(VBOX_MESA)/src/compiler/glsl/opt_vectorize.cpp \
	$(VBOX_MESA)/src/compiler/glsl/propagate_invariance.cpp \
	$(VBOX_MESA)/src/compiler/glsl/s_expression.cpp \
	$(VBOX_MESA)/src/compiler/glsl/string_to_uint_map.cpp \
	$(VBOX_MESA)/src/compiler/glsl/shader_cache.cpp \
	$(VBOX_MESA)/src/compiler/glsl/ir_builder_print_visitor.cpp \
	$(VBOX_MESA)/src/compiler/glsl/glsl_lexer.cpp \
	$(VBOX_MESA)/src/compiler/glsl/glsl_parser.cpp \
	$(VBOX_MESA)/src/compiler/glsl/glcpp/pp.c \
	$(VBOX_MESA)/src/compiler/glsl/glcpp/glcpp-lex.c \
	$(VBOX_MESA)/src/compiler/glsl/glcpp/glcpp-parse.c \
	$(VBOX_MESA)/src/compiler/nir/nir_constant_expressions.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opcodes.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_algebraic.c \
	$(VBOX_MESA)/src/compiler/nir/nir.c \
	$(VBOX_MESA)/src/compiler/nir/nir_clone.c \
	$(VBOX_MESA)/src/compiler/nir/nir_control_flow.c \
	$(VBOX_MESA)/src/compiler/nir/nir_dominance.c \
	$(VBOX_MESA)/src/compiler/nir/nir_from_ssa.c \
	$(VBOX_MESA)/src/compiler/nir/nir_gather_info.c \
	$(VBOX_MESA)/src/compiler/nir/nir_gs_count_vertices.c \
	$(VBOX_MESA)/src/compiler/nir/nir_inline_functions.c \
	$(VBOX_MESA)/src/compiler/nir/nir_instr_set.c \
	$(VBOX_MESA)/src/compiler/nir/nir_intrinsics.c \
	$(VBOX_MESA)/src/compiler/nir/nir_linking_helpers.c \
	$(VBOX_MESA)/src/compiler/nir/nir_liveness.c \
	$(VBOX_MESA)/src/compiler/nir/nir_loop_analyze.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_64bit_packing.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_alpha_test.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_alu_to_scalar.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_atomics.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_atomics_to_ssbo.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_bitmap.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_clamp_color_outputs.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_clip.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_clip_cull_distance_arrays.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_constant_initializers.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_double_ops.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_drawpixels.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_global_vars_to_local.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_gs_intrinsics.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_load_const_to_scalar.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_locals_to_regs.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_idiv.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_indirect_derefs.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_int64.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_io.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_io_to_temporaries.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_io_to_scalar.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_io_types.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_passthrough_edgeflags.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_patch_vertices.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_phis_to_scalar.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_read_invocation_to_scalar.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_regs_to_ssa.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_returns.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_samplers.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_samplers_as_deref.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_system_values.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_tex.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_to_source_mods.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_two_sided_color.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_uniforms_to_ubo.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_vars_to_ssa.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_var_copies.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_vec_to_movs.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_wpos_center.c \
	$(VBOX_MESA)/src/compiler/nir/nir_lower_wpos_ytransform.c \
	$(VBOX_MESA)/src/compiler/nir/nir_metadata.c \
	$(VBOX_MESA)/src/compiler/nir/nir_move_vec_src_uses_to_dest.c \
	$(VBOX_MESA)/src/compiler/nir/nir_normalize_cubemap_coords.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_conditional_discard.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_constant_folding.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_copy_prop_vars.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_copy_propagate.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_cse.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_dce.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_dead_cf.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_gcm.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_global_to_local.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_if.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_intrinsics.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_loop_unroll.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_move_comparisons.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_peephole_select.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_remove_phis.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_trivial_continues.c \
	$(VBOX_MESA)/src/compiler/nir/nir_opt_undef.c \
	$(VBOX_MESA)/src/compiler/nir/nir_phi_builder.c \
	$(VBOX_MESA)/src/compiler/nir/nir_print.c \
	$(VBOX_MESA)/src/compiler/nir/nir_propagate_invariant.c \
	$(VBOX_MESA)/src/compiler/nir/nir_remove_dead_variables.c \
	$(VBOX_MESA)/src/compiler/nir/nir_repair_ssa.c \
	$(VBOX_MESA)/src/compiler/nir/nir_search.c \
	$(VBOX_MESA)/src/compiler/nir/nir_split_var_copies.c \
	$(VBOX_MESA)/src/compiler/nir/nir_sweep.c \
	$(VBOX_MESA)/src/compiler/nir/nir_to_lcssa.c \
	$(VBOX_MESA)/src/compiler/nir/nir_validate.c \
	$(VBOX_MESA)/src/compiler/nir/nir_worklist.c
VBoxMesaLib_SOURCES += \
	$(VBOX_MESA)/src/mapi/glapi/glapi_dispatch.c \
	$(VBOX_MESA)/src/mapi/glapi/glapi_entrypoint.c \
	$(VBOX_MESA)/src/mapi/glapi/glapi_getproc.c \
	$(VBOX_MESA)/src/mapi/glapi/glapi_nop.c \
	$(VBOX_MESA)/src/mapi/glapi/glapi.c \
	$(VBOX_MESA)/src/mapi/u_current.c \
	$(VBOX_MESA)/src/mapi/u_execmem.c
# Not used
#	$(VBOX_MESA)/src/compiler/glsl/standalone_scaffolding.cpp
#	$(VBOX_MESA)/src/compiler/glsl/standalone.cpp

# Disable optimization for some files, because it takes over 2 minutes to compile them with MSC otherwise.
$(VBOX_MESA)/src/mesa/main/format_unpack.c_CFLAGS.release += -Od
$(VBOX_MESA)/src/mesa/main/format_utils.c_CFLAGS.release  += -Od
$(VBOX_MESA)/src/mesa/main/mipmap.c_CFLAGS.release        += -Od

# 32 bit lib for 64 bit build
VBoxMesaLib-x86_EXTENDS      = VBoxMesaLib
VBoxMesaLib-x86_BLD_TRG_ARCH = x86


#
# VBoxMesaWglLib
#
VBoxMesaWglLib_TEMPLATE = VBoxMesa3DGuestR3Lib
VBoxMesaWglLib_SOURCES  = \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_context.c \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_device.c \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_ext_context.c \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_ext_extensionsstring.c \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_ext_rendertexture.c \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_ext_swapinterval.c \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_framebuffer.c \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_getprocaddress.c \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_nopfuncs.c \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_pixelformat.c \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_st.c \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_tls.c \
	$(VBOX_MESA)/src/gallium/state_trackers/wgl/stw_wgl.c

# 32 bit lib for 64 bit build
VBoxMesaWglLib-x86_EXTENDS      = VBoxMesaWglLib
VBoxMesaWglLib-x86_BLD_TRG_ARCH = x86


#
# VBoxMesaGalliumAuxLib
#
VBoxMesaGalliumAuxLib_TEMPLATE = VBoxMesa3DGuestR3Lib
VBoxMesaGalliumAuxLib_SOURCES  = \
	$(VBOX_MESA)/src/gallium/auxiliary/cso_cache/cso_cache.c \
	$(VBOX_MESA)/src/gallium/auxiliary/cso_cache/cso_context.c \
	$(VBOX_MESA)/src/gallium/auxiliary/cso_cache/cso_hash.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_context.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_fs.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_gs.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_aaline.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_aapoint.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_clip.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_cull.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_flatshade.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_offset.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_pstipple.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_stipple.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_twoside.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_unfilled.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_util.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_validate.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_vbuf.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_wide_line.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pipe_wide_point.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_prim_assembler.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pt.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pt_emit.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pt_fetch.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pt_post_vs.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pt_so_emit.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pt_util.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_pt_vsplit.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_vertex.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_vs.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_vs_exec.c \
	$(VBOX_MESA)/src/gallium/auxiliary/draw/draw_vs_variant.c \
	$(VBOX_MESA)/src/gallium/auxiliary/hud/font.c \
	$(VBOX_MESA)/src/gallium/auxiliary/hud/hud_context.c \
	$(VBOX_MESA)/src/gallium/auxiliary/hud/hud_cpu.c \
	$(VBOX_MESA)/src/gallium/auxiliary/hud/hud_nic.c \
	$(VBOX_MESA)/src/gallium/auxiliary/hud/hud_cpufreq.c \
	$(VBOX_MESA)/src/gallium/auxiliary/hud/hud_diskstat.c \
	$(VBOX_MESA)/src/gallium/auxiliary/hud/hud_sensors_temp.c \
	$(VBOX_MESA)/src/gallium/auxiliary/hud/hud_driver_query.c \
	$(VBOX_MESA)/src/gallium/auxiliary/hud/hud_fps.c \
	$(VBOX_MESA)/src/gallium/auxiliary/indices/u_primconvert.c \
	$(VBOX_MESA)/src/gallium/auxiliary/os/os_misc.c \
	$(VBOX_MESA)/src/gallium/auxiliary/os/os_process.c \
	$(VBOX_MESA)/src/gallium/auxiliary/os/os_time.c \
	$(VBOX_MESA)/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c \
	$(VBOX_MESA)/src/gallium/auxiliary/pipebuffer/pb_buffer_malloc.c \
	$(VBOX_MESA)/src/gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c \
	$(VBOX_MESA)/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c \
	$(VBOX_MESA)/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c \
	$(VBOX_MESA)/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c \
	$(VBOX_MESA)/src/gallium/auxiliary/pipebuffer/pb_bufmgr_ondemand.c \
	$(VBOX_MESA)/src/gallium/auxiliary/pipebuffer/pb_bufmgr_pool.c \
	$(VBOX_MESA)/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c \
	$(VBOX_MESA)/src/gallium/auxiliary/pipebuffer/pb_cache.c \
	$(VBOX_MESA)/src/gallium/auxiliary/pipebuffer/pb_slab.c \
	$(VBOX_MESA)/src/gallium/auxiliary/pipebuffer/pb_validate.c \
	$(VBOX_MESA)/src/gallium/auxiliary/postprocess/pp_celshade.c \
	$(VBOX_MESA)/src/gallium/auxiliary/postprocess/pp_colors.c \
	$(VBOX_MESA)/src/gallium/auxiliary/postprocess/pp_init.c \
	$(VBOX_MESA)/src/gallium/auxiliary/postprocess/pp_mlaa.c \
	$(VBOX_MESA)/src/gallium/auxiliary/postprocess/pp_program.c \
	$(VBOX_MESA)/src/gallium/auxiliary/postprocess/pp_run.c \
	$(VBOX_MESA)/src/gallium/auxiliary/rbug/rbug_connection.c \
	$(VBOX_MESA)/src/gallium/auxiliary/rbug/rbug_context.c \
	$(VBOX_MESA)/src/gallium/auxiliary/rbug/rbug_core.c \
	$(VBOX_MESA)/src/gallium/auxiliary/rbug/rbug_demarshal.c \
	$(VBOX_MESA)/src/gallium/auxiliary/rbug/rbug_shader.c \
	$(VBOX_MESA)/src/gallium/auxiliary/rbug/rbug_texture.c \
	$(VBOX_MESA)/src/gallium/auxiliary/rtasm/rtasm_cpu.c \
	$(VBOX_MESA)/src/gallium/auxiliary/rtasm/rtasm_execmem.c \
	$(VBOX_MESA)/src/gallium/auxiliary/rtasm/rtasm_x86sse.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_aa_point.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_build.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_dump.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_exec.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_emulate.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_info.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_iterate.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_lowering.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_parse.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_point_sprite.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_sanity.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_scan.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_strings.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_text.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_transform.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_two_side.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_ureg.c \
	$(VBOX_MESA)/src/gallium/auxiliary/tgsi/tgsi_util.c \
	$(VBOX_MESA)/src/gallium/auxiliary/translate/translate.c \
	$(VBOX_MESA)/src/gallium/auxiliary/translate/translate_cache.c \
	$(VBOX_MESA)/src/gallium/auxiliary/translate/translate_generic.c \
	$(VBOX_MESA)/src/gallium/auxiliary/translate/translate_sse.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_bitmask.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_blit.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_blitter.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_cache.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_cpu_detect.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_debug.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_debug_describe.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_debug_flush.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_debug_image.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_debug_memory.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_debug_refcnt.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_debug_stack.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_debug_symbol.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_dl.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_draw.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_draw_quad.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_dump_defines.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_dump_state.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_format.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_format_etc.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_format_latc.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_format_other.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_format_rgtc.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_format_s3tc.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_format_tests.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_format_yuv.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_format_zs.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_framebuffer.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_gen_mipmap.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_handle_table.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_hash_table.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_helpers.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_index_modify.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_linear.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_math.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_mm.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_network.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_prim_restart.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_pstipple.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_resource.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_ringbuffer.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_sampler.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_simple_shaders.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_suballoc.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_surface.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_surfaces.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_tests.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_texture.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_tile.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_transfer.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_upload_mgr.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_vbuf.c
# Auto-generated
VBoxMesaGalliumAuxLib_SOURCES += \
	$(VBOX_MESA)/src/gallium/auxiliary/indices/u_indices_gen.c \
	$(VBOX_MESA)/src/gallium/auxiliary/indices/u_unfilled_gen.c \
	$(VBOX_MESA)/src/gallium/auxiliary/util/u_format_table.c

# 32 bit lib for 64 bit build
VBoxMesaGalliumAuxLib-x86_EXTENDS      = VBoxMesaGalliumAuxLib
VBoxMesaGalliumAuxLib-x86_BLD_TRG_ARCH = x86


#
# VBoxMesaNineLib
#
VBoxMesaNineLib_TEMPLATE   = VBoxMesa3DGuestR3Lib
VBoxMesaNineLib_INCS       = \
	$(VBOX_MESA)/include/D3D9
VBoxMesaNineLib_DEFS.win   = COBJMACROS INC_OLE2
# -wd4028: formal parameter 4 different from declaration
#    'nine_context_set_vertex_shader_constant_f' parameter is declared 'const unsigned pConstantData_size'
#    but autogenerated code produces 'unsigned pConstantData_size'.
VBoxMesaNineLib_CFLAGS.win = -wd4028
VBoxMesaNineLib_SOURCES    = \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/adapter9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/authenticatedchannel9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/basetexture9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/buffer9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/cryptosession9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/cubetexture9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/device9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/device9ex.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/device9video.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/guid.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/indexbuffer9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/iunknown.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/nine_buffer_upload.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/nine_debug.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/nine_dump.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/nineexoverlayextension.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/nine_ff.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/nine_helpers.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/nine_lock.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/nine_pipe.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/nine_quirk.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/nine_queue.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/nine_shader.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/nine_state.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/pixelshader9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/query9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/resource9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/stateblock9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/surface9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/swapchain9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/swapchain9ex.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/texture9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/threadpool.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/vertexbuffer9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/vertexdeclaration9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/vertexshader9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/volume9.c \
	$(VBOX_MESA)/src/gallium/state_trackers/nine/volumetexture9.c

# 32 bit lib for 64 bit build
VBoxMesaNineLib-x86_EXTENDS      = VBoxMesaNineLib
VBoxMesaNineLib-x86_BLD_TRG_ARCH = x86


#
# VBoxMesaSVGALib
#
VBoxMesaSVGALib_TEMPLATE = VBoxMesa3DGuestR3Lib
VBoxMesaSVGALib_INCS     = \
	$(VBOX_MESA)/src/gallium/drivers/svga/include
VBoxMesaSVGALib_SOURCES  = \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_cmd.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_cmd_vgpu10.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_context.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_draw_arrays.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_draw.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_draw_elements.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_format.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_link.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_msg.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_blend.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_blit.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_clear.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_constants.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_depthstencil.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_draw.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_flush.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_fs.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_gs.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_misc.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_query.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_rasterizer.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_sampler.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_streamout.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_vertex.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_pipe_vs.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_resource_buffer.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_resource_buffer_upload.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_resource.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_resource_texture.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_sampler_view.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_screen.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_screen_cache.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_shader.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_state.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_state_constants.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_state_framebuffer.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_state_fs.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_state_gs.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_state_need_swtnl.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_state_rss.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_state_sampler.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_state_tgsi_transform.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_state_tss.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_state_vdecl.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_state_vs.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_surface.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_swtnl_backend.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_swtnl_draw.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_swtnl_state.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_tgsi.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_tgsi_insn.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svga_tgsi_vgpu10.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svgadump/svga_dump.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svgadump/svga_shader_dump.c \
	$(VBOX_MESA)/src/gallium/drivers/svga/svgadump/svga_shader_op.c

# 32 bit lib for 64 bit build
VBoxMesaSVGALib-x86_EXTENDS      = VBoxMesaSVGALib
VBoxMesaSVGALib-x86_BLD_TRG_ARCH = x86


#
# VBoxMesaSVGAWinsysLib
#
VBoxMesaSVGAWinsysLib_TEMPLATE = VBoxMesa3DGuestR3Lib
VBoxMesaSVGAWinsysLib_INCS    += \
	$(VBOX_MESA)/src/gallium/drivers/svga/include \
	$(VBOX_MESA)/src/gallium/drivers/svga
VBoxMesaSVGAWinsysLib_SOURCES  = \
	$(VBOX_MESA)/src/gallium/winsys/svga/drm/pb_buffer_simple_fenced.c \
	$(VBOX_MESA)/src/gallium/winsys/svga/drm/vmw_buffer.c \
	$(VBOX_MESA)/src/gallium/winsys/svga/drm/vmw_context.c \
	$(VBOX_MESA)/src/gallium/winsys/svga/drm/vmw_fence.c \
	$(VBOX_MESA)/src/gallium/winsys/svga/drm/vmw_screen_pools.c \
	$(VBOX_MESA)/src/gallium/winsys/svga/drm/vmw_screen_svga.c \
	$(VBOX_MESA)/src/gallium/winsys/svga/drm/vmw_surface.c \
	$(VBOX_MESA)/src/gallium/winsys/svga/drm/vmw_shader.c \
	$(VBOX_MESA)/src/gallium/winsys/svga/drm/vmw_query.c

# These will be reimplemented for WDDM
#VBoxMesaSVGAWinsysLib_SOURCES += \
#	$(VBOX_MESA)/src/gallium/winsys/svga/drm/vmw_screen.c \
#	$(VBOX_MESA)/src/gallium/winsys/svga/drm/vmw_screen_dri.c \
#	$(VBOX_MESA)/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c

# 32 bit lib for 64 bit build
VBoxMesaSVGAWinsysLib-x86_EXTENDS      = VBoxMesaSVGAWinsysLib
VBoxMesaSVGAWinsysLib-x86_BLD_TRG_ARCH = x86


include $(FILE_KBUILD_SUB_FOOTER)