Home | History | Annotate | Download | only in i965
      1 # Copyright  2017 Intel Corporation
      2 
      3 # Permission is hereby granted, free of charge, to any person obtaining a copy
      4 # of this software and associated documentation files (the "Software"), to deal
      5 # in the Software without restriction, including without limitation the rights
      6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
      7 # copies of the Software, and to permit persons to whom the Software is
      8 # furnished to do so, subject to the following conditions:
      9 
     10 # The above copyright notice and this permission notice shall be included in
     11 # all copies or substantial portions of the Software.
     12 
     13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
     19 # SOFTWARE.
     20 
     21 files_i965 = files(
     22   'brw_binding_tables.c',
     23   'brw_blorp.c',
     24   'brw_blorp.h',
     25   'brw_bufmgr.c',
     26   'brw_bufmgr.h',
     27   'brw_clear.c',
     28   'brw_clip.c',
     29   'brw_compute.c',
     30   'brw_conditional_render.c',
     31   'brw_context.c',
     32   'brw_context.h',
     33   'brw_cs.c',
     34   'brw_cs.h',
     35   'brw_curbe.c',
     36   'brw_defines.h',
     37   'brw_disk_cache.c',
     38   'brw_draw.c',
     39   'brw_draw.h',
     40   'brw_draw_upload.c',
     41   'brw_ff_gs.c',
     42   'brw_ff_gs_emit.c',
     43   'brw_ff_gs.h',
     44   'brw_formatquery.c',
     45   'brw_gs.c',
     46   'brw_gs.h',
     47   'brw_gs_surface_state.c',
     48   'brw_link.cpp',
     49   'brw_meta_util.c',
     50   'brw_meta_util.h',
     51   'brw_misc_state.c',
     52   'brw_multisample_state.h',
     53   'brw_nir_uniforms.cpp',
     54   'brw_object_purgeable.c',
     55   'brw_pipe_control.c',
     56   'brw_performance_query.h',
     57   'brw_performance_query.c',
     58   'brw_program.c',
     59   'brw_program.h',
     60   'brw_program_binary.c',
     61   'brw_program_cache.c',
     62   'brw_primitive_restart.c',
     63   'brw_queryobj.c',
     64   'brw_reset.c',
     65   'brw_sf.c',
     66   'brw_state.h',
     67   'brw_state_upload.c',
     68   'brw_structs.h',
     69   'brw_surface_formats.c',
     70   'brw_sync.c',
     71   'brw_tcs.c',
     72   'brw_tcs_surface_state.c',
     73   'brw_tes.c',
     74   'brw_tes_surface_state.c',
     75   'brw_urb.c',
     76   'brw_util.c',
     77   'brw_util.h',
     78   'brw_vs.c',
     79   'brw_vs.h',
     80   'brw_vs_surface_state.c',
     81   'brw_wm.c',
     82   'brw_wm.h',
     83   'brw_wm_surface_state.c',
     84   'gen4_blorp_exec.h',
     85   'gen6_clip_state.c',
     86   'gen6_constant_state.c',
     87   'gen6_depth_state.c',
     88   'gen6_multisample_state.c',
     89   'gen6_queryobj.c',
     90   'gen6_sampler_state.c',
     91   'gen6_sol.c',
     92   'gen6_urb.c',
     93   'gen7_l3_state.c',
     94   'gen7_misc_state.c',
     95   'gen7_sol_state.c',
     96   'gen7_urb.c',
     97   'gen8_depth_state.c',
     98   'gen8_multisample_state.c',
     99   'hsw_queryobj.c',
    100   'hsw_sol.c',
    101   'intel_batchbuffer.c',
    102   'intel_batchbuffer.h',
    103   'intel_blit.c',
    104   'intel_blit.h',
    105   'intel_buffer_objects.c',
    106   'intel_buffer_objects.h',
    107   'intel_buffers.c',
    108   'intel_buffers.h',
    109   'intel_copy_image.c',
    110   'intel_extensions.c',
    111   'intel_fbo.c',
    112   'intel_fbo.h',
    113   'intel_image.h',
    114   'intel_mipmap_tree.c',
    115   'intel_mipmap_tree.h',
    116   'intel_pixel_bitmap.c',
    117   'intel_pixel.c',
    118   'intel_pixel_copy.c',
    119   'intel_pixel_draw.c',
    120   'intel_pixel.h',
    121   'intel_pixel_read.c',
    122   'intel_screen.c',
    123   'intel_screen.h',
    124   'intel_state.c',
    125   'intel_tex.c',
    126   'intel_tex_copy.c',
    127   'intel_tex.h',
    128   'intel_tex_image.c',
    129   'intel_tex_obj.h',
    130   'intel_tex_validate.c',
    131   'intel_tiled_memcpy.c',
    132   'intel_tiled_memcpy.h',
    133   'intel_upload.c',
    134   'libdrm_macros.h',
    135 )
    136 
    137 i965_gen_libs = []
    138 foreach v : ['40', '45', '50', '60', '70', '75', '80', '90', '100']
    139   i965_gen_libs += static_library(
    140     'libi965_gen@0@'.format(v),
    141     ['genX_blorp_exec.c', 'genX_state_upload.c', gen_xml_pack],
    142     include_directories : [inc_common, inc_intel, inc_dri_common],
    143     c_args : [
    144       c_vis_args, no_override_init_args, '-msse2',
    145       '-DGEN_VERSIONx10=@0@'.format(v),
    146     ],
    147     dependencies : [dep_libdrm, idep_nir_headers],
    148   )
    149 endforeach
    150 
    151 i965_oa_sources = []
    152 foreach hw : ['hsw', 'bdw', 'chv', 'sklgt2', 'sklgt3', 'sklgt4', 'bxt',
    153               'kblgt2', 'kblgt3', 'glk', 'cflgt2', 'cflgt3']
    154   _name = 'brw_oa_@0@'.format(hw)
    155   i965_oa_sources += custom_target(
    156     _name,
    157     input : ['brw_oa.py', '@0@.xml'.format(_name)],
    158     output : ['@0@.c'.format(_name), '@0@.h'.format(_name)],
    159     command : [
    160       prog_python2, '@INPUT0@', '--chipset', hw, '--code', '@OUTPUT0@',
    161       '--header', '@OUTPUT1@', '@INPUT1@',
    162     ],
    163   )
    164 endforeach
    165 
    166 libi965 = static_library(
    167   'i965',
    168   [files_i965, i965_oa_sources, ir_expression_operation_h,
    169    xmlpool_options_h],
    170   include_directories : [
    171     inc_common, inc_intel, inc_dri_common, inc_util, inc_drm_uapi,
    172   ],
    173   c_args : [c_vis_args, no_override_init_args, '-msse2'],
    174   cpp_args : [cpp_vis_args, '-msse2'],
    175   link_with : [
    176     i965_gen_libs, libintel_common, libisl, libintel_compiler, libblorp,
    177   ],
    178   dependencies : [dep_libdrm, dep_valgrind, idep_nir_headers],
    179 )
    180 
    181 dri_drivers += libi965
    182 dri_link += 'i965_dri.so'
    183