head 1.1; branch 1.1.1; access; symbols netbsd-10-2-RELEASE:1.1.1.3 netbsd-9-5-RELEASE:1.1.1.1 netbsd-11-0-RELEASE:1.1.1.3 netbsd-11-0-RC7:1.1.1.3 netbsd-11-0-RC6:1.1.1.3 netbsd-11-0-RC5:1.1.1.3 netbsd-11-0-RC4:1.1.1.3 netbsd-11-0-RC3:1.1.1.3 netbsd-11-0-RC2:1.1.1.3 netbsd-11-0-RC1:1.1.1.3 netbsd-11:1.1.1.3.0.4 netbsd-11-base:1.1.1.3 netbsd-10-1-RELEASE:1.1.1.3 netbsd-9-4-RELEASE:1.1.1.1 netbsd-10-0-RELEASE:1.1.1.3 netbsd-10-0-RC6:1.1.1.3 netbsd-10-0-RC5:1.1.1.3 netbsd-10-0-RC4:1.1.1.3 netbsd-10-0-RC3:1.1.1.3 netbsd-10-0-RC2:1.1.1.3 netbsd-10-0-RC1:1.1.1.3 netbsd-10:1.1.1.3.0.2 netbsd-10-base:1.1.1.3 netbsd-9-3-RELEASE:1.1.1.1 mesa-21-3-7:1.1.1.3 netbsd-9-2-RELEASE:1.1.1.1 netbsd-9-1-RELEASE:1.1.1.1 netbsd-9-0-RELEASE:1.1.1.1 netbsd-9-0-RC2:1.1.1.1 netbsd-9-0-RC1:1.1.1.1 mesalib-19-1-7:1.1.1.2 netbsd-9:1.1.1.1.0.2 netbsd-9-base:1.1.1.1 mesa-18-3-6:1.1.1.1 mesa-18-3-4:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.1 date 2019.03.10.03.42.42; author mrg; state Exp; branches 1.1.1.1; next ; commitid r12jo1Nf3ebQKLeB; 1.1.1.1 date 2019.03.10.03.42.42; author mrg; state Exp; branches; next 1.1.1.2; commitid r12jo1Nf3ebQKLeB; 1.1.1.2 date 2019.09.24.17.00.56; author maya; state Exp; branches; next 1.1.1.3; commitid KJXusGl8fi9AAhEB; 1.1.1.3 date 2022.05.09.01.23.31; author mrg; state Exp; branches; next ; commitid UEBs6hNk81DdQjDD; desc @@ 1.1 log @Initial revision @ text @# Copyright © 2017 Rob Clark # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. ir3_nir_trig_c = custom_target( 'ir3_nir_trig.c', input : 'ir3/ir3_nir_trig.py', output : 'ir3_nir_trig.c', command : [ prog_python, '@@INPUT@@', '-p', join_paths(meson.source_root(), 'src/compiler/nir/'), ], capture : true, depend_files : nir_algebraic_py, ) files_libfreedreno = files( 'adreno_common.xml.h', 'adreno_pm4.xml.h', 'disasm.h', 'freedreno_batch.c', 'freedreno_batch.h', 'freedreno_batch_cache.c', 'freedreno_batch_cache.h', 'freedreno_blitter.c', 'freedreno_blitter.h', 'freedreno_context.c', 'freedreno_context.h', 'freedreno_draw.c', 'freedreno_draw.h', 'freedreno_fence.c', 'freedreno_fence.h', 'freedreno_gmem.c', 'freedreno_gmem.h', 'freedreno_perfcntr.h', 'freedreno_program.c', 'freedreno_program.h', 'freedreno_query.c', 'freedreno_query.h', 'freedreno_query_acc.c', 'freedreno_query_acc.h', 'freedreno_query_hw.c', 'freedreno_query_hw.h', 'freedreno_query_sw.c', 'freedreno_query_sw.h', 'freedreno_resource.c', 'freedreno_resource.h', 'freedreno_screen.c', 'freedreno_screen.h', 'freedreno_state.c', 'freedreno_state.h', 'freedreno_surface.c', 'freedreno_surface.h', 'freedreno_texture.c', 'freedreno_texture.h', 'freedreno_util.c', 'freedreno_util.h', 'drm/freedreno_bo.c', 'drm/freedreno_bo_cache.c', 'drm/freedreno_device.c', 'drm/freedreno_drmif.h', 'drm/freedreno_pipe.c', 'drm/freedreno_priv.h', 'drm/freedreno_ringbuffer.c', 'drm/freedreno_ringbuffer.h', 'drm/msm_bo.c', 'drm/msm_device.c', 'drm/msm_drm.h', 'drm/msm_pipe.c', 'drm/msm_priv.h', 'drm/msm_ringbuffer.c', 'drm/msm_ringbuffer_sp.c', 'a2xx/a2xx.xml.h', 'a2xx/disasm-a2xx.c', 'a2xx/fd2_blend.c', 'a2xx/fd2_blend.h', 'a2xx/fd2_compiler.c', 'a2xx/fd2_compiler.h', 'a2xx/fd2_context.c', 'a2xx/fd2_context.h', 'a2xx/fd2_draw.c', 'a2xx/fd2_draw.h', 'a2xx/fd2_emit.c', 'a2xx/fd2_emit.h', 'a2xx/fd2_gmem.c', 'a2xx/fd2_gmem.h', 'a2xx/fd2_program.c', 'a2xx/fd2_program.h', 'a2xx/fd2_rasterizer.c', 'a2xx/fd2_rasterizer.h', 'a2xx/fd2_screen.c', 'a2xx/fd2_screen.h', 'a2xx/fd2_texture.c', 'a2xx/fd2_texture.h', 'a2xx/fd2_util.c', 'a2xx/fd2_util.h', 'a2xx/fd2_zsa.c', 'a2xx/fd2_zsa.h', 'a2xx/instr-a2xx.h', 'a2xx/ir-a2xx.c', 'a2xx/ir-a2xx.h', 'a3xx/a3xx.xml.h', 'a3xx/fd3_blend.c', 'a3xx/fd3_blend.h', 'a3xx/fd3_context.c', 'a3xx/fd3_context.h', 'a3xx/fd3_draw.c', 'a3xx/fd3_draw.h', 'a3xx/fd3_emit.c', 'a3xx/fd3_emit.h', 'a3xx/fd3_format.c', 'a3xx/fd3_format.h', 'a3xx/fd3_gmem.c', 'a3xx/fd3_gmem.h', 'a3xx/fd3_program.c', 'a3xx/fd3_program.h', 'a3xx/fd3_query.c', 'a3xx/fd3_query.h', 'a3xx/fd3_rasterizer.c', 'a3xx/fd3_rasterizer.h', 'a3xx/fd3_screen.c', 'a3xx/fd3_screen.h', 'a3xx/fd3_texture.c', 'a3xx/fd3_texture.h', 'a3xx/fd3_zsa.c', 'a3xx/fd3_zsa.h', 'a4xx/a4xx.xml.h', 'a4xx/fd4_blend.c', 'a4xx/fd4_blend.h', 'a4xx/fd4_context.c', 'a4xx/fd4_context.h', 'a4xx/fd4_draw.c', 'a4xx/fd4_draw.h', 'a4xx/fd4_emit.c', 'a4xx/fd4_emit.h', 'a4xx/fd4_format.c', 'a4xx/fd4_format.h', 'a4xx/fd4_gmem.c', 'a4xx/fd4_gmem.h', 'a4xx/fd4_program.c', 'a4xx/fd4_program.h', 'a4xx/fd4_query.c', 'a4xx/fd4_query.h', 'a4xx/fd4_rasterizer.c', 'a4xx/fd4_rasterizer.h', 'a4xx/fd4_screen.c', 'a4xx/fd4_screen.h', 'a4xx/fd4_texture.c', 'a4xx/fd4_texture.h', 'a4xx/fd4_zsa.c', 'a4xx/fd4_zsa.h', 'a5xx/a5xx.xml.h', 'a5xx/fd5_blend.c', 'a5xx/fd5_blend.h', 'a5xx/fd5_blitter.c', 'a5xx/fd5_blitter.h', 'a5xx/fd5_compute.c', 'a5xx/fd5_compute.h', 'a5xx/fd5_context.c', 'a5xx/fd5_context.h', 'a5xx/fd5_draw.c', 'a5xx/fd5_draw.h', 'a5xx/fd5_emit.c', 'a5xx/fd5_emit.h', 'a5xx/fd5_format.c', 'a5xx/fd5_format.h', 'a5xx/fd5_gmem.c', 'a5xx/fd5_gmem.h', 'a5xx/fd5_image.c', 'a5xx/fd5_image.h', 'a5xx/fd5_perfcntr.c', 'a5xx/fd5_program.c', 'a5xx/fd5_program.h', 'a5xx/fd5_query.c', 'a5xx/fd5_query.h', 'a5xx/fd5_rasterizer.c', 'a5xx/fd5_rasterizer.h', 'a5xx/fd5_resource.c', 'a5xx/fd5_resource.h', 'a5xx/fd5_screen.c', 'a5xx/fd5_screen.h', 'a5xx/fd5_texture.c', 'a5xx/fd5_texture.h', 'a5xx/fd5_zsa.c', 'a5xx/fd5_zsa.h', 'a6xx/a6xx.xml.h', 'a6xx/fd6_blend.c', 'a6xx/fd6_blend.h', 'a6xx/fd6_blitter.c', 'a6xx/fd6_blitter.h', 'a6xx/fd6_context.c', 'a6xx/fd6_context.h', 'a6xx/fd6_draw.c', 'a6xx/fd6_draw.h', 'a6xx/fd6_emit.c', 'a6xx/fd6_emit.h', 'a6xx/fd6_format.c', 'a6xx/fd6_format.h', 'a6xx/fd6_gmem.c', 'a6xx/fd6_gmem.h', 'a6xx/fd6_image.c', 'a6xx/fd6_image.h', 'a6xx/fd6_program.c', 'a6xx/fd6_program.h', 'a6xx/fd6_query.c', 'a6xx/fd6_query.h', 'a6xx/fd6_rasterizer.c', 'a6xx/fd6_rasterizer.h', 'a6xx/fd6_resource.c', 'a6xx/fd6_resource.h', 'a6xx/fd6_screen.c', 'a6xx/fd6_screen.h', 'a6xx/fd6_texture.c', 'a6xx/fd6_texture.h', 'a6xx/fd6_zsa.c', 'a6xx/fd6_zsa.h', 'ir3/disasm-a3xx.c', 'ir3/instr-a3xx.h', 'ir3/ir3.c', 'ir3/ir3_cache.c', 'ir3/ir3_cache.h', 'ir3/ir3_compiler_nir.c', 'ir3/ir3_compiler.c', 'ir3/ir3_compiler.h', 'ir3/ir3_cp.c', 'ir3/ir3_depth.c', 'ir3/ir3_group.c', 'ir3/ir3.h', 'ir3/ir3_legalize.c', 'ir3/ir3_nir.c', 'ir3/ir3_nir.h', 'ir3/ir3_nir_lower_tg4_to_tex.c', 'ir3/ir3_print.c', 'ir3/ir3_ra.c', 'ir3/ir3_sched.c', 'ir3/ir3_shader.c', 'ir3/ir3_shader.h', ) freedreno_includes = [ inc_src, inc_include, inc_gallium, inc_gallium_aux, include_directories('ir3') ] freedreno_c_args = [] if cc.has_argument('-Wpacked-bitfield-compat') freedreno_c_args += '-Wno-packed-bitfield-compat' endif freedreno_cpp_args = [] if cpp.has_argument('-Wpacked-bitfield-compat') freedreno_cpp_args += '-Wno-packed-bitfield-compat' endif libfreedreno = static_library( 'freedreno', [files_libfreedreno, ir3_nir_trig_c], include_directories : freedreno_includes, c_args : [freedreno_c_args, c_vis_args], cpp_args : [freedreno_cpp_args, cpp_vis_args], dependencies : [ dep_libdrm, dep_valgrind, idep_nir_headers ], ) driver_freedreno = declare_dependency( compile_args : '-DGALLIUM_FREEDRENO', link_with : [libfreedrenowinsys, libfreedreno], dependencies : idep_nir, ) ir3_compiler = executable( 'ir3_compiler', 'ir3/ir3_cmdline.c', include_directories : freedreno_includes, dependencies : [ dep_libdrm, dep_valgrind, dep_thread, idep_nir, ], link_with : [ libfreedreno, libgallium, libglsl_standalone, libmesa_util, ], build_by_default : with_tools.contains('freedreno'), install : with_tools.contains('freedreno'), ) @ 1.1.1.1 log @from maya: Import mesa 18.3.4. Mesa 18.3.4 implements the OpenGL 4.5 API. Some drivers don't support all the features required in OpenGL 4.5. @ text @@ 1.1.1.2 log @Import mesa 19.1.7 New features in mesa 19.1.0: GL_ARB_parallel_shader_compile on all drivers. GL_EXT_gpu_shader4 on all GL 3.1 drivers. GL_EXT_shader_image_load_formatted on radeonsi. GL_EXT_texture_buffer_object on all GL 3.1 drivers. GL_EXT_texture_compression_s3tc_srgb on Gallium drivers and i965 (ES extension). GL_NV_compute_shader_derivatives on iris and i965. GL_KHR_parallel_shader_compile on all drivers. VK_EXT_buffer_device_address on Intel and RADV. VK_EXT_depth_clip_enable on Intel and RADV. VK_KHR_ycbcr_image_arrays on Intel. VK_EXT_inline_uniform_block on Intel and RADV. VK_EXT_external_memory_host on Intel. VK_EXT_host_query_reset on Intel and RADV. VK_KHR_surface_protected_capabilities on Intel and RADV. VK_EXT_pipeline_creation_feedback on Intel and RADV. VK_KHR_8bit_storage on RADV. VK_AMD_gpu_shader_int16 on RADV. VK_AMD_gpu_shader_half_float on RADV. VK_NV_compute_shader_derivatives on Intel. VK_KHR_shader_float16_int8 on Intel and RADV (RADV only supports int8). VK_KHR_shader_atomic_int64 on Intel. VK_EXT_descriptor_indexing on Intel. VK_KHR_shader_float16_int8 on Intel and RADV. GL_INTEL_conservative_rasterization on iris. VK_EXT_memory_budget on Intel. New features in mesa 19.0.0: GL_AMD_texture_texture4 on all GL 4.0 drivers. GL_EXT_shader_implicit_conversions on all drivers (ES extension). GL_EXT_texture_compression_bptc on all GL 4.0 drivers (ES extension). GL_EXT_texture_compression_rgtc on all GL 3.0 drivers (ES extension). GL_EXT_render_snorm on gallium drivers (ES extension). GL_EXT_texture_view on drivers supporting texture views (ES extension). GL_OES_texture_view on drivers supporting texture views (ES extension). GL_NV_shader_atomic_float on nvc0 (Fermi/Kepler only). Shader-based software implementations of GL_ARB_gpu_shader_fp64, GL_ARB_gpu_shader_int64, GL_ARB_vertex_attrib_64bit, and GL_ARB_shader_ballot on i965. VK_ANDROID_external_memory_android_hardware_buffer on Intel Fixed and re-exposed VK_EXT_pci_bus_info on Intel and RADV VK_EXT_scalar_block_layout on Intel and RADV VK_KHR_depth_stencil_resolve on Intel VK_KHR_draw_indirect_count on Intel VK_EXT_conditional_rendering on Intel VK_EXT_memory_budget on RADV Also, bug fixes. @ text @d21 12 d34 2 d74 16 d93 2 a102 1 'a2xx/fd2_perfcntr.c', a104 2 'a2xx/fd2_query.c', 'a2xx/fd2_query.h', a106 2 'a2xx/fd2_resource.c', 'a2xx/fd2_resource.h', d116 3 a118 8 'a2xx/ir2.c', 'a2xx/ir2.h', 'a2xx/ir2_assemble.c', 'a2xx/ir2_cp.c', 'a2xx/ir2_nir.c', 'a2xx/ir2_nir_lower_scalar.c', 'a2xx/ir2_private.h', 'a2xx/ir2_ra.c', d143 1 d168 1 d202 1 a206 2 'a6xx/fd6_compute.c', 'a6xx/fd6_compute.h', a218 1 'a6xx/fd6_perfcntr.c', d233 3 d238 16 a253 2 'ir3/ir3_gallium.c', 'ir3/ir3_gallium.h', a256 1 inc_mesa, inc_mapi, d258 1 a258 1 inc_freedreno, include_directories('ir3'), d261 1 a261 1 freedreno_c_args = [ c_vis_args, no_override_init_args ] d273 1 a273 1 [files_libfreedreno], d277 5 a281 1 dependencies : [dep_libdrm, idep_nir_headers], d286 1 a286 6 link_with : [ libfreedrenowinsys, libfreedreno, libfreedreno_drm, libfreedreno_ir3, ], d295 2 a301 2 libfreedreno_drm, libfreedreno_ir3, @ 1.1.1.3 log @initial import of mesa 21.3.7 main changes since 19.1.7 include: - more support for Vulkan functions - better supported for newer radeonsi (both amdgpu and radeon backends) - various bug fixes in many drivers - many fixes and enhancements for intel drivers - some fixes for nvidia - OpenGL 4.6 for some drivers (intel, radeonsi) - intel Tigerlake and Rocketlake support - Vulkan 1.2 for some drivers - OpenGL 4.5, GLES 3.2, and more on llvmpipe - working Panfrost and Midgard drivers - fix warnings in radeonsi vs newer llvm @ text @d22 1 a22 2 'freedreno_autotune.c', 'freedreno_autotune.h', d37 1 d60 1 d71 1 d88 1 d94 1 a114 2 'a3xx/fd3_resource.c', 'a3xx/fd3_resource.h', a138 2 'a4xx/fd4_resource.c', 'a4xx/fd4_resource.h', d163 1 a183 2 'a6xx/fd6_const.c', 'a6xx/fd6_const.h', d196 1 a208 2 'a6xx/fd6_vsc.c', 'a6xx/fd6_vsc.h', a212 1 'ir3/ir3_const.h', a216 15 freedreno_tracepoints = custom_target( 'freedreno_tracepoints.[ch]', input: 'freedreno_tracepoints.py', output: ['freedreno_tracepoints.c', 'freedreno_tracepoints.h'], command: [ prog_python, '@@INPUT@@', '-p', join_paths(meson.source_root(), 'src/util/perf/'), '-C', '@@OUTPUT0@@', '-H', '@@OUTPUT1@@', ], depend_files: u_trace_py, ) files_libfreedreno += freedreno_tracepoints d223 1 a223 1 freedreno_c_args = [no_override_init_args] a232 17 libfreedreno_dependencies = [ dep_libdrm, idep_mesautil, idep_nir_headers, idep_libfreedreno_common, idep_u_tracepoints, ] if with_perfetto libfreedreno_dependencies += dep_perfetto files_libfreedreno += 'freedreno_perfetto.cc' endif # The header file ends up part of the build (but just a stub) # in either case: files_libfreedreno += 'freedreno_perfetto.h' d235 1 a235 1 [files_libfreedreno, freedreno_xml_header_files], d237 3 a239 5 c_args : [freedreno_c_args], cpp_args : [freedreno_cpp_args], gnu_symbol_visibility : 'hidden', dependencies : libfreedreno_dependencies, override_options : ['cpp_std=c++17'], a247 1 libfreedreno_ir2, a248 6 libfreedreno_layout, libfreedreno_perfcntrs ], dependencies : [ idep_nir, idep_xmlconfig, d250 1 d258 1 a259 26 idep_mesautil, ], link_with : [ libfreedreno, libfreedreno_drm, libfreedreno_ir3, libfreedreno_layout, libgallium, libglsl_standalone, ], build_by_default : with_tools.contains('freedreno'), install : false, ) gmemtool = executable( 'gmemtool', [ 'gmemtool.c', freedreno_tracepoints[1] ], include_directories : freedreno_includes, dependencies : [ idep_nir, idep_mesautil, idep_u_tracepoints, idep_xmlconfig, a263 1 libfreedreno_ir2, a264 1 libfreedreno_layout, d267 1 a267 1 libfreedreno_perfcntrs, d270 1 a270 1 install : false, @