aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* v3d_bufmgr: fix time_t printfPeter Seiderer2020-06-071-1/+1
| | | | | | | | | | Fixes: error: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘time_t’ {aka ‘long long int’} Signed-off-by: Peter Seiderer <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4279>
* pan_bo.h: add time.h include for time_tPeter Seiderer2020-06-071-0/+1
| | | | | | | | | | Fixes: ../src/gallium/drivers/panfrost/pan_bo.h:93:9: error: unknown type name ‘time_t’ Signed-off-by: Peter Seiderer <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4279>
* vc4_bufmgr: fix time_t printfPeter Seiderer2020-06-071-1/+1
| | | | | | | | | | Fixes: error: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘time_t’ {aka ‘long long int’} Signed-off-by: Peter Seiderer <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4279>
* glsl: fix potential slow compile times for GLSLOptimizeConservativelyTimothy Arceri2020-06-071-1/+14
| | | | | | | | | | | | See code comment for full description of the change. Fixes: 0a5018c1a483 ("mesa: add gl_constants::GLSLOptimizeConservatively") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3034 Tested-by: Witold Baryluk <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5346>
* llvmpipe: do not enable tessellation shader without llvm coroutines supportCharmaine Lee2020-06-061-1/+2
| | | | | | | | | | | | | | | | Tessellation shader in llvmpipe depends on llvm coroutines support. So do not advertise tessellation shader support in llvmpipe if GALLIVM_HAVE_CORO is FALSE. This fixes assertion in LLVMTokenTypeInContext() running tessellation shader tests with llvm version < 6. Fixes: eb522717 "llvmpipe: add support for tessellation shaders" Reviewed-by: Roland Scheidegger <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Neha Bhende <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5366>
* intel/compiler: fix Android buildMarcin Ślusarz2020-06-061-0/+1
| | | | | | | | | Signed-off-by: Marcin Ślusarz <[email protected]> Fixes: 689acc739899 ("intel/compiler: Extract control barriers from scoped barriers") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3087 Reviewed-by: Sagar Ghuge <[email protected]> Reviewed-by: Boris Brezillon <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5354>
* intel/genxml: Migrate from deprecated xml.etree.ElementTree getchildren.Vinson Lee2020-06-061-6/+6
| | | | | | | | | xml.etree.ElementTree getchildren was deprecated since Python 2.7 and will be removed in Python 3.9. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5348>
* android: svga: fix build for GL4.1 supportMauro Rossi2020-06-061-0/+2
| | | | | | | | | | | | | | Fixes the following building errors: external/mesa/src/gallium/drivers/svga/svga_context.c:184: error: undefined reference to 'svga_init_ts_functions' external/mesa/src/gallium/drivers/svga/svga_context.c:100: error: undefined reference to 'svga_cleanup_tcs_state' out/target/product/x86_64/obj_x86/STATIC_LIBRARIES/libmesa_pipe_svga_intermediates/libmesa_pipe_svga.a(svga_state.o):svga_state.c:hw_draw_state_sm5: error: undefined reference to 'svga_hw_tes' out/target/product/x86_64/obj_x86/STATIC_LIBRARIES/libmesa_pipe_svga_intermediates/libmesa_pipe_svga.a(svga_state.o):svga_state.c:hw_draw_state_sm5: error: undefined reference to 'svga_hw_tcs' Fixes: ccb4ea5a "svga: Add GL4.1(compatibility profile) support in svga driver" Signed-off-by: Mauro Rossi <[email protected]> Reviewed-by: Charmaine Lee <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5364>
* android: util: fix build for GL4.1 supportMauro Rossi2020-06-061-0/+2
| | | | | | | | | | | | Fixes the following building errors: external/mesa/src/gallium/drivers/svga/svga_state_tgsi_transform.c:154: error: undefined reference to 'tgsi_write_vpos' external/mesa/src/gallium/drivers/svga/svga_state_tgsi_transform.c:201: error: undefined reference to 'tgsi_remove_dynamic_indexing' Fixes: 48a7456f ("util: Add util functionality for GL4.1 support") Signed-off-by: Mauro Rossi <[email protected]> Reviewed-by: Charmaine Lee <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5364>
* Switch from cElementTree to ElementTree.Vinson Lee2020-06-0511-11/+11
| | | | | | | | | | | | | | The xml.etree.cElementTree module will be removed in Python 3.9. Since Python 3.3 the xml.etree.cElementTree module has been deprecated, the xml.etree.ElementTree module uses a fast implementation whenever available. Builds using Python 2.7 can still work but with the slower implementation. Signed-off-by: Vinson Lee <[email protected]> Acked-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5349>
* Revert "panfrost: Keep cached BOs mmap'd"Icecream952020-06-051-5/+17
| | | | | | | | | | This reverts commit 794c239a990e08b5a42d42607e9c5e5b0921390c. A kernel bug causes cached BOs to not be unmapped correctly, triggering "bad page cache" kernel messages and causing short hangs. Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5355>
* pan/midgard: Use a signed value for checking inline constantsIcecream952020-06-052-9/+1
| | | | | | | | Inline constants are sign extended, so we should use a int16_t instead of an unsigned type. Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5351>
* freedreno/ir3: Handle cases where we decide not to lower UBO 0 loads.Eric Anholt2020-06-051-39/+39
| | | | | | | | We advertize 4096 vec4s of GL uniform storage, but the HW can only store 512 vec4s in the const buffer. Closes: #3049 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5273>
* freedreno/ir3: Drop the max_const on a6xx to 512.Eric Anholt2020-06-051-1/+4
| | | | | | | | | | | | | | | | | | The GLES blob on the p3a limits constlen to 512 between VS and FS across a6xx gpu ids (615, 630, 640, and 650). Experimentally, exceeding that limit in any one stage results in rendering corruption or GPU hangs (though my most detailed testing had a loop limit in a uniform, so that may the cause of the hang). Clamp the limit we use inside of a shader so we don't exceed it within a stage. This commit doesn't resovle limiting inter-stage. Experimentally, I've found that I can push up to a total of ~768 vec4s between VS and FS on a630, with or without uniform updates between each draw. We'll need to do some shader key-based limiting of constlen at draw time to respect that limit, but that's left for future work, and this commit is enough for the google earth case that initiated this work. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5273>
* freedreno/ir3: Account for driver params in UBO max const upload.Eric Anholt2020-06-053-7/+26
| | | | | | | The const state setup needs to be able to push its driver params, so account for them in the analyze_ubo_ranges. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5273>
* freedreno/ir3: Stop shifting UBO 1 down to be UBO 0.Eric Anholt2020-06-053-25/+12
| | | | | | | | | | | It turns out the GL uniforms file is larger than the hardware constant file, so we need to limit how many UBOs we lower to constbuf loads. To do actual UBO loads, we'll need to be able to upload UBO 0's pointer or descriptor. No difference on nohw 1 UBO update drawoverhead case (n=35). Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5273>
* freedreno/ir3: Drop unnecessary alignment of pushed UBO size.Eric Anholt2020-06-051-1/+1
| | | | | | | The analysis pass gives us vec4-aligned size, and all of our other constbuf allocations here are in vec4 units, so we can just divide by 16. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5273>
* freedreno/ir3: Stop pushing immediates once we've filled the constbuf.Eric Anholt2020-06-051-1/+8
| | | | | | | If we filled the constbuf up with UBOs, we may need to avoid generating more immediate push constants. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5273>
* freedreno/ir3: Refactor ir3_cp's lower_immed().Eric Anholt2020-06-051-20/+24
| | | | | | There was duplicated handling in the callers that we can just move inside. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5273>
* freedreno: Upload gallium constbufs as needed when referenced as a UBO.Eric Anholt2020-06-052-6/+34
| | | | | | | | For now we never ask to set up UBO 0 as a real UBO, so this doesn't trigger, but it gets us ready for handling the case where UBO 0 is too big to be push constants in the HW. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5273>
* freedreno/a6xx: Add support for ALPHA_TO_ONE.Eric Anholt2020-06-051-0/+1
| | | | | | Fixes piglit ext_framebuffer_multisample-draw-buffers-alpha-to-one Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5343>
* turnip: Add support for alphaToOne.Eric Anholt2020-06-053-4/+4
| | | | | | | | | Comparing a blob trace using the feature to one not, the difference was pretty obvious and in the spot you'd expect compared to alphaToCoverage. The SP_ reg didn't have a corresponding bit set, though it also has an alphaToCoverage. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5343>
* turnip: Use tu_cs_emit_regs() for BLEND_CONTROL.Eric Anholt2020-06-051-23/+13
| | | | | | Just a cleanup since I was in the area. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5343>
* radv: set keep_statistic_info with RADV_DEBUG=shaderstatsRhys Perry2020-06-051-1/+3
| | | | | | | | | Needed for RADV_DEBUG=shaderstats to dump ACO statistics. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5358>
* intel: fix gen_sort_tags.pyEric Engestrom2020-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | The script was failing for me (python 3.8), not sure if this is a recent python version break or not as I don't know how often people have been running this script: Processing ./gen9.xml... Traceback (most recent call last): File "./gen_sort_tags.py", line 177, in <module> main() File "./gen_sort_tags.py", line 170, in main genxml[:] = enums + sorted_structs.values() + instructions + registers TypeError: can only concatenate list (not "odict_values") to list Turning the odict into a list fixes it for me, and the resulting xml file are identical to before :) Fixes: 903e142f0d35bc550ffd ("genxml: add a sorting script") Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5352>
* radv/aco: enable VK_KHR_shader_subgroup_extended_types on GFX6-GFX7Samuel Pitoiset2020-06-052-2/+2
| | | | | | | | | | CTS pass on Pitcairn (GFX6). This extension isn't really useful without 8-bit/16-bit storage though but this is going to be exposed soon. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5327>
* aco: fix nir_intrinsic_quad_* with 8-bit in GFX6-GFX7Samuel Pitoiset2020-06-051-2/+8
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5327>
* aco: fix sign-extend 8-bit subgroup operations on GFX6-GFX7Samuel Pitoiset2020-06-051-9/+21
| | | | | | | | SDWA is GFX8+. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5327>
* aco: use v_bfe_u32 for unsigned reductions sign-extension on GFX6-GFX7Samuel Pitoiset2020-06-051-1/+8
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5327>
* intel/genxml: drop sort_xml.sh and move the loop directly in gen_sort_tags.pyEric Engestrom2020-06-053-19/+12
| | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5353>
* radv: Use ac_surface to allocate aux surfaces.Bas Nieuwenhuizen2020-06-051-104/+18
| | | | | | | For consistency and a bunch of codesharing. Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5194>
* amd/common: Add total alignment calculation.Bas Nieuwenhuizen2020-06-052-0/+6
| | | | | | Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5194>
* radv: Allocate values/predicates at the end of the image.Bas Nieuwenhuizen2020-06-051-17/+26
| | | | | Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5194>
* radv: Disable HTILE in ac_surface.Bas Nieuwenhuizen2020-06-051-10/+11
| | | | | Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5194>
* radv: Disable DCC in ac_surface.Bas Nieuwenhuizen2020-06-051-29/+22
| | | | | Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5194>
* radv: Use offsets in surface struct.Bas Nieuwenhuizen2020-06-055-37/+33
| | | | | Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5194>
* radv: Rely on ac_surface for avoiding cmask for linear images.Bas Nieuwenhuizen2020-06-052-3/+2
| | | | | | Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5194>
* radv: Enforce the contiguous memory for DCC layers in ac_surface.Bas Nieuwenhuizen2020-06-053-16/+11
| | | | | | Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5194>
* radv: Pass no_metadata_planes info in to ac_surface.Bas Nieuwenhuizen2020-06-051-33/+34
| | | | | | | | | | Also do not allocate aux surfaces for multi-plane images. I may have messed up and used plane 1 offsets for the other planes as well. I cannot imagine that sharing aux surfaces between the planes will work well. Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5194>
* radv: Use ac_surface to determine fmask enable.Bas Nieuwenhuizen2020-06-051-8/+11
| | | | | Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5194>
* ci: add U-Boot specific fetch stringsChristian Gmeiner2020-06-051-1/+5
| | | | | | | | | | | | | U-Boot's fastboot over udp generates the following output: Listening for fastboot command on x.y.z.w Also add a general 'data abort' error string seen with an too old U-Boot version: https://github.com/u-boot/u-boot/commit/95712af Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5258>
* ci: extend expect-output.shChristian Gmeiner2020-06-053-6/+27
| | | | | | | | | | | We need to support different fastboot fetch strings for different bootloader solutions. Lets extend expect-output.sh to support multiple fetch strings (-f) and add support for error catch strings (-e) to stop the CI run early. Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5258>
* freedreno/computerator: fix missing dependency on generated headerRob Clark2020-06-051-0/+1
| | | | | | | | | | | | | | | Fixes: ``` ../mesa-freedreno-20.2.0_pre/src/freedreno/computerator/ir3_asm.c:25:10: fatal error: 'ir3/ir3_parser.h' file not found #include "ir3/ir3_parser.h" ^~~~~~~~~~~~~~~~~~ 1 error generated. ``` Fixes: da467817e3e ("freedreno/ir3: Move ir3 assembler to backend compiler") Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5340>
* glapi: remove deprecated .getchildren() that has been replace with an iteratorEric Engestrom2020-06-052-6/+6
| | | | | | | | Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3086 Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Vinson Lee <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5342>
* radv/aco: enable 64-bit atomic features if RADV is linked with LLVM 8Samuel Pitoiset2020-06-052-3/+3
| | | | | | | | Just in case someone links RADV with this old LLVM 8 and wants ACO. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5331>
* svga: Performance fixesNeha Bhende2020-06-0541-717/+1141
| | | | | | | | | | | | | | | | | | | | | | | | This is a squash commit of in house performance fixes and misc bug fixes for GL4.1 support. Performance fixes: * started using system memory for constant buffer to gain 3X performance boost with metro redux Misc bug fixes: * fixed usage of vertexid in shader * added empty control point phase in hull shader for zero ouput control point * misc shader signature fixes * fixed clip_distance input declaration * clearing the dirty bit for the surface while using direct map if surface is already flushed and there is no pending primitive This patch also uses SVGA_RETRY macro for commands retries. Part of it is already used in previous patch. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Charmaine Lee <[email protected]> Signed-off-by: Neha Bhende <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5317>
* svga: Add GL4.1(compatibility profile) support in svga driverNeha Bhende2020-06-0561-1521/+8033
| | | | | | | | | This patch is a squash commit of a very long in-house patch series. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Charmaine Lee <[email protected]> Signed-off-by: Neha Bhende <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5317>
* svga/include: Headers for GL4.1 supportNeha Bhende2020-06-056-59/+605
| | | | | | | | | | This brings in the new types, enums and #defines for GL 4.1 features in the virtual device. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Charmaine Lee <[email protected]> Signed-off-by: Neha Bhende <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5317>
* winsys/drm: Add GL4.1 support in drm winsysNeha Bhende2020-06-054-6/+34
| | | | | | | | | This is to check whether virtual hardware has SM5 support Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Charmaine Lee <[email protected]> Signed-off-by: Neha Bhende <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5317>
* util: Add util functionality for GL4.1 supportNeha Bhende2020-06-058-0/+680
| | | | | | | | | | | | | | | | | | This patch adds the following tgsi utilities * tgsi_dynamic_indexing: This utility flattens out the dyanamic indexing of constant buffers * tgsi_vpos: This utility writes zeros to position at index 0 in vertex shader. This utility can be used if there is no shader output in vertex shader * util_make_tess_ctrl_passthrough_shader: This adds passthough tessellation control shader. Input of passthrough tess ctrl shader is output of vertex shader and output is input of tessellation eval shader. If program has tessellation eval shader but no tessellation control shader, this utility can be used to create passthrough tessellation control shader. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Charmaine Lee <[email protected]> Signed-off-by: Neha Bhende <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5317>