aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* 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-191-1/+1
| | | | | | | | | | 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>
* 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>
* llvmpipe/interp: fix interpolating frag pos for sample shadingDave Airlie2020-05-191-2/+11
| | | | | Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5050>
* llvmpipe: use per-sample position not sample id for interpDave Airlie2020-05-191-1/+1
| | | | | Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5050>
* llvmpipe: don't use sample mask with 0 samplesDave Airlie2020-05-191-8/+0
| | | | | | | | | | | piglit: spec/arb_sample_shading/builtin-gl-sample-mask 0 spec/arb_sample_shading/builtin-gl-sample-mask-simple 0 CTS: KHR-GL45.sample_variables.mask.rgba8.samples_0.mask_zero Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5050>
* r600/sfn: add emit if start cayman supportDave Airlie2020-05-181-2/+2
| | | | | Reviewed-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5084>
* r600/sfn: add callstack non-evergreen supportDave Airlie2020-05-181-6/+34
| | | | | Reviewed-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5084>
* r600/sfn: cayman fix int trans op2Dave Airlie2020-05-181-9/+29
| | | | | | | Fix integer multiplies Reviewed-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5084>
* r600/sfn: fix cayman float instruction emission.Dave Airlie2020-05-182-4/+23
| | | | | | | This is enough to get glxgears working. Reviewed-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5084>
* r600/sfn: plumb the chip class into the instruction emissionDave Airlie2020-05-1819-34/+59
| | | | | | | | In order to emit the correct instruction sequences for cayman we need this info. Reviewed-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5084>
* r600: enable TEXCOORD semantic for TGSI.Dave Airlie2020-05-186-34/+35
| | | | | | | This should make intergrating with NIR easier Reviewed-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5083>
* iris: Initialise stub iris_seqno to 0Chris Wilson2020-05-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | We create a stub never-signaled seqno to force the iris_fence to use the fence fd, but we need to fully initialise the iris_seqno struct so that the unset pointers are NULL and we do not try to destroy them later. ==38644== Conditional jump or move depends on uninitialised value(s) ==38644== at 0xF7FBFAA: pipe_resource_reference (u_inlines.h:142) ==38644== by 0xF7FC22F: iris_seqno_destroy (iris_seqno.c:38) ==38644== by 0xF7E8930: iris_seqno_reference (iris_seqno.h:89) ==38644== by 0xF7E8BC3: iris_fence_destroy (iris_fence.c:131) ==38644== by 0xF7E8C41: iris_fence_reference (iris_fence.c:143) ==38644== by 0xEF24525: dri2_destroy_fence (dri_helpers.c:176) ==38644== by 0x4865DC2: dri2_egl_unref_sync (egl_dri2.c:3302) ==38644== by 0x48661E8: dri2_destroy_sync (egl_dri2.c:3433) ==38644== by 0x4855BA4: _eglDestroySync (eglapi.c:1952) ==38644== by 0x4855CF5: eglDestroySyncKHR (eglapi.c:1972) ==38644== by 0x402628: test_cleanup (egl_khr_fence_sync.c:232) ==38644== by 0x40421E: test_eglCreateSyncKHR_native_from_fd (egl_khr_fence_sync.c:1521) Closes: #2909 Fixes: fd1907efb385a6f66897 ("iris: Convert fences to using lightweight seqno") Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5004>
* freedreno/a3xx: fix rasterizer discardIlia Mirkin2020-05-181-1/+3
| | | | | Signed-off-by: Ilia Mirkin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5080>
* etnaviv: don't expose timer queriesLucas Stach2020-05-181-3/+1
| | | | | | | | | We don't support any timer queries, so stop lying about our ability to do so. Signed-off-by: Lucas Stach <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5086>
* freedreno: fix off-by-one in assertions checking for const sizesIlia Mirkin2020-05-174-5/+5
| | | | | | | | | Caused assertions to trip even though everything was fine. The number of constants can be equal to length, so we need less-than-or-equal. Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5077>
* freedreno/a3xx: fix const footprintIlia Mirkin2020-05-171-2/+2
| | | | | | | | | | In commit 5d8f40a53a5, the change was done incorrectly, switching from max_const to constlen + 1. Instead it should have been constlen - 1, which is the analog to the former max_const. Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5077>
* freedreno/a3xx: reinstate rgb10_a2ui texture formatIlia Mirkin2020-05-171-1/+1
| | | | | | | | | | | Rendering doesn't work, but having the format in place avoids an assert when selecting the texture format in st_format. I believe it's required for GLES3, so more tracing is required to determine what bit we're missing to make rendering work. Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5073>
* freedreno/a3xx: there's no r8i/ui rb format, only rg8i/rg8uiIlia Mirkin2020-05-171-4/+4
| | | | | | | | | | | | | | This fixes a number of dEQP tests: dEQP-GLES3.functional.fbo.blit.conversion.r8* dEQP-GLES3.texture.specification.basic_teximage2d.r8* and others. The reason why this enum showed up in traces for R8 is that it was an "upgraded" texture to R8G8. Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5073>
* lima/ppir: optimize tex loads with single successorErico Nunes2020-05-162-2/+18
| | | | | | | | These don't need a mov, and can be used directly with pipeline output. Signed-off-by: Erico Nunes <[email protected]> Reviewed-by: Vasily Khoruzhick <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4975>
* lima/ppir: rework tex loweringErico Nunes2020-05-163-63/+66
| | | | | | | | | Move steps from lowering to emit, since they can be done earlier in a single place, rather than in two-steps. Signed-off-by: Erico Nunes <[email protected]> Reviewed-by: Vasily Khoruzhick <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4975>