aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* freedreno/ir3/cp: report progressRob Clark2020-05-192-7/+15
| | | | | | | | | Later when we do this pass iteratively, we can drop some of the internal iteration and just rely on this pass getting run until there is no more progress. Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5048>
* freedreno/cf: report progressRob Clark2020-05-192-10/+15
| | | | | Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5048>
* freedreno/ir3/dce: report progressRob Clark2020-05-192-3/+6
| | | | | | | | Eventually we'll pull the iteration out of the pass itself, but the first step is to just report progress. Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5048>
* freedreno/ir3: juggle around ir3_debug_print()Rob Clark2020-05-192-11/+14
| | | | | | | | | In a later patch, this will get folded into an IR3_PASS() macro, at least for most passes. But to do that, it is better to standardize on printing the ir3 after the pass. Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5048>
* freedreno/ir3: remove Sethi-Ullman numbering passRob Clark2020-05-195-125/+1
| | | | | | | We haven't used this for a while. Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5048>
* radv: fix missing break in radv_GetPhysicalDeviceProperties2()Samuel Pitoiset2020-05-191-0/+1
| | | | | | | Fixes: 57e796a12a8 ("radv: Implement VK_EXT_custom_border_color") Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5097>
* aco: fix disassembly with LLVM 11Rhys Perry2020-05-191-0/+7
| | | | | | | | | SymbolInfoTy was modified in LLVM 11. It is also in MCDisassembler.h now and we don't have to duplicate it anymore. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5060>
* r600/sfn: Fix printing ALU op without destGert Wollny2020-05-191-1/+2
| | | | | | | | e.g. GROUP_BARRIER doesn't have a dest. Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Don't reorder outputs by locationGert Wollny2020-05-193-17/+0
| | | | | | | | | This was wrong, if anything it should be sorted by device_location, and NIR usually provides this. Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Fix splitting constants that come from different kcache banks.Gert Wollny2020-05-191-3/+4
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Fix clip vertex output as possible stream variableGert Wollny2020-05-192-2/+4
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: SSBO: Fix query of dest componentsGert Wollny2020-05-191-5/+5
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: use the per shader atomic baseGert Wollny2020-05-198-10/+16
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Add support for texture_samplesGert Wollny2020-05-192-0/+21
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: support indirect sampler buffer reads.Gert Wollny2020-05-191-1/+1
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: assert when alu dest is missingGert Wollny2020-05-191-0/+1
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: remove pointless checkGert Wollny2020-05-191-3/+0
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Don't reject VARYING_SLOT_PCNTGert Wollny2020-05-191-0/+2
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Add FS output sample_maskGert Wollny2020-05-191-2/+4
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Handle loading sample_posGert Wollny2020-05-193-0/+36
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Take FOGC, and backcolors into account im GS outputsGert Wollny2020-05-191-0/+3
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Add support for viewport index outputGert Wollny2020-05-192-2/+20
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Make 3vec loads skip possible movesGert Wollny2020-05-191-6/+2
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Fix handling of output register indexGert Wollny2020-05-191-4/+4
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Make allocate_reserved_registers forward to a virtual functionGert Wollny2020-05-1914-13/+21
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Fix RAT instruction assembly emissionGert Wollny2020-05-191-5/+9
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Fix GDS assembly emissionGert Wollny2020-05-191-21/+17
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Fix RING instruction assembly emissionGert Wollny2020-05-191-2/+2
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Fix memring print outputGert Wollny2020-05-191-1/+1
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: skip copying LOD if the target register is is the sameGert Wollny2020-05-191-1/+2
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: re-use an allocated register in lookupGert Wollny2020-05-191-1/+1
| | | | | | | | | For texture coordinates we always allocate all four components so that we can use these for LOD and, compare etc. Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Skip move instructions if they are only ssa and without modifiersGert Wollny2020-05-192-1/+26
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: rework getting a vector and uniforms from the value poolGert Wollny2020-05-1911-87/+151
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Handle CF index loading from non-X channelGert Wollny2020-05-193-10/+29
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600: Add support for loading index register from other than chan XGert Wollny2020-05-192-1/+2
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600: Lower lerp after tgsi_to_nirGert Wollny2020-05-191-0/+1
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600: Lower int64 ops from TGSI-to-NIR shaders tooGert Wollny2020-05-191-2/+11
| | | | | | | | | | r600 uses a TGSI shaders with 64 bit ints for a query compute shader. v2: Use screen version of tgsi_to_nir and fix compile error Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Fix printing vertex fetch instruction flagsGert Wollny2020-05-191-1/+1
| | | | | | | | | Fixes: f718ac62688b555a933c7112f656944288d04edb r600/sfn: Add a basic nir shader backend Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* r600/sfn: Unify semantic name and index query and use TEXCOORD semanticGert Wollny2020-05-196-20/+43
| | | | | | Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
* Revert "gallium/gallivm: fix compilation issues with llvm 11"Michel Dänzer2020-05-198-20/+13
| | | | | | | | | | | | This reverts commit e2a7436dd10df70ba14d18ab7cf8ad538f80e653. The corresponding LLVM changes were reverted. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2983 Acked-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5087>
* Revert "ac,radeonsi: fix compilations issues with LLVM 11"Michel Dänzer2020-05-195-19/+15
| | | | | | | | | | This reverts commit 42b1696ef627a5bfee29911a780fa0a4dbf04610. The corresponding LLVM changes were reverted. Acked-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5087>
* nir: Consider atomic counter intrinsics when setting writes_memoryCaio Marcelo de Oliveira Filho2020-05-181-0/+22
| | | | | | | | | | | | | | In i965 these get lowered after gather info, so let's consider them too. Fixes piglit.spec.arb_framebuffer_no_attachments.arb_framebuffer_no_attachments-atomic in Gen9, HSW and IVB. Fixes: 6a6c36e9776 ("intel/fs: Use writes_memory from shader_info") Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5093>
* llvmpipe: add gl_SampleMaskIn support.Dave Airlie2020-05-191-0/+10
| | | | | Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5050>
* gallivm/nir: add sample_mask_in supportDave Airlie2020-05-193-0/+5
| | | | | Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5050>
* llvmpipe/fs: hook up the interpolation APIs.Dave Airlie2020-05-191-0/+35
| | | | | | | This hooks the nir code to the interp code. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5050>
* llvmpipe: add interp instruction supportDave Airlie2020-05-193-0/+235
| | | | | | | | This allows interpolating an attribute at offset/sample/centroid locations. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5050>
* llvmpipe/interp: refactor out centroid calculationsDave Airlie2020-05-191-30/+39
| | | | | | | These will be reused in the interp instruction code. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5050>
* llvmpipe/interp: refactor out use of pixel center offsetDave Airlie2020-05-191-8/+9
| | | | | Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5050>
* gallivm/nir: add an interpolation interface.Dave Airlie2020-05-194-0/+74
| | | | | | | | This supports interpolating at a certain location, offsets, sample or centroid. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5050>
* llvmpipe: remove non-simple interpolation paths.Dave Airlie2020-05-192-353/+25
| | | | | | | | These are broken since adding multisample, and unused for quite a while. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5050>