aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* mesa: remove FLUSH_CURRENT calls that have no effectMarek Olšák2020-02-115-11/+1
| | | | | Reviewed-by: Mathias Fröhlich <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766>
* mesa: fix incorrect uses of FLUSH_CURRENTMarek Olšák2020-02-112-4/+4
| | | | | | | | | FLUSH_CURRENT is used to copy attributes from the vbo module to Current.Attrib. It flushes vertices too, but that's a side effect, not the intent. Reviewed-by: Mathias Fröhlich <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766>
* glx: print FPS with 2 decimal placesMarek Olšák2020-02-102-2/+2
| | | | | | | | useful if FPS is low. Reviewed-by: Bas Nieuwenhuizen <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3590> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3590>
* radeonsi: don't update states for the DCC MSAA bug on GFX6-7Marek Olšák2020-02-101-2/+2
| | | | | | Reviewed-by: Bas Nieuwenhuizen <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3646> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3646>
* radeonsi: fix the DCC MSAA bug workaroundMarek Olšák2020-02-101-1/+1
| | | | | | Cc: 19.3 20.0 <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3646>
* r600/sfn: Add some documentationGert Wollny2020-02-101-0/+69
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: Add .editorconfig fileGert Wollny2020-02-101-0/+2
| | | | | Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: Add support for SSBO load and storeGert Wollny2020-02-103-0/+99
| | | | | Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: Add support for atomic instructionsGert Wollny2020-02-106-0/+228
| | | | | | | v2: fix compilation with gcc-6 Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600: Make sure LLVM is not used for DRAWGert Wollny2020-02-101-0/+5
| | | | | | | | | For some reasone that is not yet clear the piglit gl-1.0-rendermode-feedback makes use of the LLVM pipe draw module and fails there with an assertion. Explicietly disabling LLVM fixes this. Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: Add lowering UBO access to r600 specific codesGert Wollny2020-02-104-2/+115
| | | | | | | | | | r600 reads vec4 from the UBO, but the offsets in nir are evaluated to the component. If the offsets are not literal then all non-vec4 reads must resolve the component after reading a vec4 component (TODO: figure out whether there is a consistent way to deduct the component that is actually read). Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: Add GDS instructionsGert Wollny2020-02-104-0/+504
| | | | | Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: Add compute shader skeletonGert Wollny2020-02-107-0/+223
| | | | | | | | | | | This adds some very basic compute shader support. v2: fix compilation with gcc-6 v3: rebase: correct barrier intrinstic Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: Add VS for TCS shader skeletonGert Wollny2020-02-102-0/+27
| | | | | | | This adds the VS shader type that handles the output to tesselation shaders Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: Add support for geometry shaderGert Wollny2020-02-107-1/+459
| | | | | | | v2: fix compilation with gcc-6 Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: add emitVertex instructionsGert Wollny2020-02-103-0/+45
| | | | | | | More preparation for GS support Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: Add MemRingOut instructionsGert Wollny2020-02-103-1/+143
| | | | | | | Preparing support for Geometry shaders. Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: Add a load GDS result instructionGert Wollny2020-02-102-0/+32
| | | | | | | This is required to read results for atomic SSBO instructions Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: Add lowering arrays to scratch and according instructionsGert Wollny2020-02-1010-4/+281
| | | | | | | | | Make use of the scratch space for arrays that are larger then 100 elements. Since for IO r600 is vector based, there is a bit of a scratch space waste here for arrays that use types smaller then vec4. Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: add register remappingGert Wollny2020-02-1012-0/+171
| | | | | | | | | Make use of the live range evaluation to merge registers. Since the live ranges are evaluated for register indices, the algorithm is not optimal, but for most piglits up to glsl-3.3 it does the job. Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: add live range evaluation for the GPRGert Wollny2020-02-1013-1/+1571
| | | | | | | | The algoritm is basically a copy of the TGSI implementation without the array bits. Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: Add the WaitAck instructionGert Wollny2020-02-106-0/+115
| | | | | Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: Add the VS in and FS out vectorizationGert Wollny2020-02-109-0/+993
| | | | | | | | | Since the nir default implementation doesn't support vectorizing the VS inputs and FS outputs, additional lowering passes are added here to do just that. The work is based on the Timothy Arceri's related work. Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600: enable NIR backend DEBUG flag for supported architecturesGert Wollny2020-02-103-27/+115
| | | | | | | | When NIR is enabled, a few features that are not yet supported will be explicitely disabled. Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600/sfn: Add a basic nir shader backendGert Wollny2020-02-1047-6/+12955
| | | | | | | | | | | | | This commit adds support for vertex and fragment shaders from NIR, and support for most TEX and ALU instructions. Thanks Dave Airlied for adding support for a number of ALU instructions. v2: fix compilation with gcc-6 v3: rebase: use mesa/core glsl_type_size function Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600: Update state code to accept NIR shadersGert Wollny2020-02-104-24/+67
| | | | | | | v2: Correct commit message (Konstantin Kharlamov) Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600: Add NIR compiler optionsGert Wollny2020-02-101-0/+29
| | | | | Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600: Increase space for IO values to agree with PIPE_MAX_SHADER_IN/OUTPUTSGert Wollny2020-02-101-2/+2
| | | | | Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* r600: force new CF with TEX only if any texture value is writtenGert Wollny2020-02-101-1/+3
| | | | | | | This works aound splitting the CF when the gradient is set. Signed-off-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
* svga: Use pipe_shader_state_from_tgsi to set shader stateNeha Bhende2020-02-101-1/+1
| | | | | | | | | | | | Use pipe_shader_state_from_tgsi() to set shader state for transformed shader so that we get all correct data for respective shader state. This fixes several regressed glretrace, piglit crashes found during merging upsteam mesa Fixes: bf12bc2dd7a2 (draw: add nir info gathering and building support) Reviewed-by: Charmaine Lee <[email protected]>
* svga: fix size of format_conversion_table[]Neha Bhende2020-02-101-0/+2
| | | | | | | | | | Since we are now using sparse matrix for format_conversion_table, we have to make sure we have last entry in table which gives the sense of required size of format_conversion_table Fixes: 84db6ba7 ("svga: Drop unsupported formats from the format table") Reviewed-by: Charmaine Lee <[email protected]>
* gallium/swr: simplify environmental variabled expansion codeKrzysztof Raszkowski2020-02-101-29/+0
| | | | | | | | | | There were 2 versions of code doing the same thing. Since std::regexp are locale-sensitive better is to leave old good way to do this. Reviewed-by: Jan Zielinski <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3761> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3761>
* aco: fix waiting for scalar stores before "writing back" data on GFX8-GFX9Samuel Pitoiset2020-02-101-6/+9
| | | | | | | | | | | | | | | | | | | | | Seems required also on GFX8-GFX9 to achieve correct behaviour. This is an undocumented behaviour but it makes real sense to me. pipeline-db on GFX9: Totals from affected shaders: SGPRS: 1018 -> 1018 (0.00 %) VGPRS: 516 -> 516 (0.00 %) Code Size: 40516 -> 40636 (0.30 %) bytes Max Waves: 280 -> 280 (0.00 %) This fixes some sort of sun flickering with Assassins Creed Origins. Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2488 Cc: <[email protected]> Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3750> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3750>
* Vulkan overlay: use the corresponding image index for each swapchainGeorg Lehmann2020-02-101-3/+8
| | | | | | | | | | pImageIndices should be a pointer to the current image index otherwise every swapchain but the first one could have a wrong image index Cc: <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3741> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3741>
* zink: only inspect dual-src limit if feature enabledErik Faye-Lund2020-02-101-0/+2
| | | | | Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3689> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3689>
* zink: emit blend-target indexErik Faye-Lund2020-02-103-0/+11
| | | | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3689>
* zink: replace unset buffer with a dummy-bufferErik Faye-Lund2020-02-103-5/+18
| | | | | | | This fixes a crash in spec@!opengl 1.1@ppgtt_memory_alignment Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3673> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3673>
* gitlab-ci: disable a630 tests as mesa-cheza is down (again)Samuel Pitoiset2020-02-101-6/+6
| | | | | | Signed-off-by: Samuel Pitoiset <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3758> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3758>
* radeonsi: don't report that multi-plane formats are supportedMarek Olšák2020-02-071-7/+0
| | | | | | | | | Fixes: a554b45d - st/mesa: don't lower YUV when driver supports it natively Closes: #2376 Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3632> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3632>
* zink: fixup sampler-usageErik Faye-Lund2020-02-072-15/+19
| | | | | | | | | | | | | | | | It seems I got this stuff all wrong, and looked at driver_location rather than the binding. But since we mess with the binding, we need to adjust things a bit to get things right. This still isn't great as-is, but it seems to work. In the future, we should move to having samplers always at bindings 0 and up, and just update the bindings that are used by either of the stages. But this band-aid should be OK for now. This fixes 0AD for me. Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3668> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3668>
* zink: lower away fdphErik Faye-Lund2020-02-072-0/+4
| | | | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3668>
* etnaviv: enable texture upload memory throttlingChristian Gmeiner2020-02-071-0/+16
| | | | | | | | | | Fixes oom-killer during piglit's streaming-texture-upload on a SolidRun CuBox-i with 2GB of RAM. Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Lucas Stach <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3745> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3745>
* freedreno/ir3: Fold const only when the type is floatHyunjun Ko2020-02-071-0/+11
| | | | | Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3737> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3737>
* freedreno/ir3: put the conversion back for half const to the right place.Hyunjun Ko2020-02-071-6/+6
| | | | | | | | | | | | | The previous commit leads to match immed values unexpectedly. This makes constlen for each shader including bvert wrong. Also fixes atan2 for mediump deqp tests. Fixes: cbd1f47433b ("freedreno/ir3: convert back to 32-bit values for half constant registers.") v2: Move conversion up above fabs/fneg modifier handling as well. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3737>
* freedreno/ir3: Add cat4 mediump opcodesHyunjun Ko2020-02-072-0/+18
| | | | | | v2: Reworked to assign half-opcodes in ir3_ra.c (krh). Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3737>
* freedreno/ir3: fold const conversion into consumerRob Clark2020-02-072-1/+20
| | | | | | | | | | | | | | A sequence like: (nop3)cov.f32f16 hr0.x, c0.x mul.f hr4.y, hr1.z, hr0.x can be turned into: mul.f hr4.y, hr1.z, hc0.x Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3737>
* freedreno/ir3: fix printing half constant registers.Hyunjun Ko2020-02-071-3/+4
| | | | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3737>
* freedreno/ir3: Set IR3_REG_HALF flag on src as well in immediate MOVKristian H. Kristensen2020-02-071-1/+1
| | | | | | | | This lets is_same_type_reg() recognize that the dst and src of the immediate MOV are the same and unblocks fp16 constant propagation. Signed-off-by: Kristian H. Kristensen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3737>
* docs: Mark 20.0-rc2 as doneDylan Baker2020-02-071-7/+1
| | | | | Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3751> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3751>
* freedreno: android: fix build of perfcounters.Martin Fuzzey2020-02-072-4/+5
| | | | | | | Some dependencies were missing on android causing a build failure. Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3736> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3736>