summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
21 hoursci/freedreno: Test with non-redistributable tracesAntonio Caggiano2-0/+57
Add a job to test with traces that we cannot redistribute, listed in a separate file. Since those traces might not be accessible by everyone, this job is created only when the pipeline is triggered by `marge-bot`. This job is optional because otherwise it could be blocking a merge request of someone who cannot really debug the issue due to lack of access to these traces. The documentation available under `docs/ci` goes into more details explaining the rationale behind optional traces. Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6441>
21 hoursgallium/vl: don't leak fd in vl_dri3_screen_createZhu Yuliang1-0/+3
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12092>
26 hoursradeonsi: preserve derivatives after discards for ARB shadersPierre-Eric Pelloux-Prayer1-1/+2
Contrary to the GLSL spec, the ARB fp spec doesn't explicitely states that derivatives are undefined after discards. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5018 Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11972>
26 hoursmesa: move gl_program::is_arb_asm to shader_infoPierre-Eric Pelloux-Prayer7-18/+21
This will be used from radeonsi in the next commit. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11972>
26 hourslavapipe: do not assert on more than 32 samplersErik Faye-Lund1-0/+3
We can have more than 32 samplers, but the code below will assert in that case. The return value is not used for samplers, so let's just return zero early and be done with it. Fixes: c18ff60087e ("lavapipe: emit correct textures_used for texture-arrays") Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11845>
33 hoursvulkan/wsi/x11: do not inherit last_present_modeChia-I Wu1-26/+29
Under XWayland, the first present after a window resize is sometimes completed with COPY (seems to happen when the previous present with the old size is pending; not really sure). The following presents are completed with FLIP. When a swapchain is created with an old swapchain, and old_chain->last_present_mode is FLIP, chain->last_present_mode is set to FLIP as well. This causes the new swapchain to be marked VK_SUBOPTIMAL_KHR, which is sticky, if the first present is completed with COPY. Instead of inheriting, treat each swapchain as independent. We will miss the case where an old swapchain is flipping but a new swapchain is copying. But swapchain reallocation normally happens in response to present engine state change. If the newly allocated swapchain is copying, another reallocation is unlikely to fix that. Fixes: 61309c2a727 ("vulkan/wsi/x11: Return VK_SUBOPTIMAL_KHR for X11") Signed-off-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12030>
34 hourszink: rework buffer mappingMike Blumenkrantz1-20/+35
this collects a bunch of changes which need to be made but which can't be split up incrementally without breaking things: * move map offset to zink_transfer::offset for consistent handling * fix stream uploader map rules to only apply for discard cases so the stream uploader doesn't explode * fix the staging buffer map rules to apply to any non-staging readback * stop making huge staging buffers for readback * break out the DONTBLOCK case since this is only coming from qbo readback * add explicit read-only sync for maps to stall on writes Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12090>
34 hourszink: use MAP_ONCE for qbo readbackMike Blumenkrantz1-1/+1
this implies that the buffer can be unmapped Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12090>
34 hourspan/va: Allow floating-point swizzles on ATESTAlyssa Rosenzweig1-1/+1
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Align staging registers on ValhallAlyssa Rosenzweig1-2/+21
This handles the following from the Valhall specification (that I wrote): If multiple subsequent staging registers are accessed, the base must be aligned to 2. However, even if 4 registers are accessed, it is not necessary to align to 4, only to 2. This restriction allows the hardware to use a 64-bit data path without handling unaligned access, which is more efficient. This restriction does not apply if only a single register is accessed. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Clarify the logic of bi_reconverge_branchesAlyssa Rosenzweig1-3/+3
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Clean up and export bi_reconverge_branchesAlyssa Rosenzweig3-26/+29
Decides when we need "branch reconvergence" (canonical term), the logical opposite of "back-to-back execution" (non-canonical term, this is old code in Bifrost terms). So invert the return value, rename, and export so we can use it when packing Valhall instructions. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Add branch_offset immediateAlyssa Rosenzweig1-0/+1
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Garbage collect stuff in bi_layout.cAlyssa Rosenzweig2-21/+1
Predates clause scheduling. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Fix UBO push with nir_opt_shrink_vectorsAlyssa Rosenzweig1-2/+6
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Add constant folding unit testAlyssa Rosenzweig2-0/+111
I just played with the implementation, let's ensure I didn't break it. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Refactor constant folding for testabilityAlyssa Rosenzweig2-17/+16
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Use bi_apply_swizzle in constant foldingAlyssa Rosenzweig1-22/+4
Much more legible now. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Add helper to swizzle a constantAlyssa Rosenzweig1-0/+34
Instead of open-coding special cases in multiple places, just keep a canonical version that handles every case. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Add strip_index helperAlyssa Rosenzweig1-0/+14
Needed to correctly lower sources to moves, used in the FAU lowering. Technically, the issue is already present on Bifrost, but it's hidden because Bifrost packing doesn't validate the absense of unsupported modifiers. Valhall packing adds more safety, which caught this issue. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Rename CLPER_V7 back to CLPERAlyssa Rosenzweig5-6/+6
v6 is really the oddball here. CLPER on v9 supports a superset of v7. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Rename NOP.i32 to NOPAlyssa Rosenzweig3-4/+4
Simpler and matches the syntax of Valhall I've picked out. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Fix typo in FAU enumAlyssa Rosenzweig1-1/+1
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Model Valhall special values as FAUAlyssa Rosenzweig1-0/+9
Not sure if this is "really" FAU but it's convenient to treat it as such. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Model RSCALE for ValhallAlyssa Rosenzweig1-0/+30
Faster than FMA_RSCALE. We'll want to optimize this (e.g. for exp2). Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Model *ADD_IMM instructions in IRAlyssa Rosenzweig1-0/+25
Needed for Valhall. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Remove unused BIR_FAU_HIAlyssa Rosenzweig1-1/+0
Redundant with offset. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Add discard flag to bi_indexAlyssa Rosenzweig2-0/+14
Needed to model Valhall instructions. Should also be useful to RA if we ever get around to doing something SSA based. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: DCE after bifrost_nir_lower_algebraic_lateAlyssa Rosenzweig1-0/+1
Needed for sat_signed to fuse, since we run modifier prop before backend DCE. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Constify BIR manipulationAlyssa Rosenzweig3-11/+11
For use in Valhall packing. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Remove redundant check in clamp fusingAlyssa Rosenzweig1-1/+0
Already checked above. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Add instruction unit test macroAlyssa Rosenzweig1-0/+16
Checks for instruction equality. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Add instruction equality helperAlyssa Rosenzweig1-0/+10
Useful for unit testing. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Add helpers for unit testingAlyssa Rosenzweig2-21/+62
At some point I should stop reinventing GTest but, look, writing tests at all is big for me, one thing at a time, ok? 😋 Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Output binaries from standalone compilerAlyssa Rosenzweig1-0/+8
Useful for shader replacement. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Only call clause code on BifrostAlyssa Rosenzweig1-22/+35
Valhall will have its own simpler code path. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Add quirks for Mali G78Alyssa Rosenzweig1-4/+9
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Do more mesa/st stuff in standalone compilerAlyssa Rosenzweig1-0/+82
From freedreno. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Zero initialize shader_infoAlyssa Rosenzweig1-1/+1
Fixes the following assert with the standalone compiler bifrost_compiler: ../src/panfrost/bifrost/bi_opt_push_ubo.c:134: bi_opt_push_ubo: Assertion `ctx->info->push.count == 0' failed. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Parse file names in standalone compilerAlyssa Rosenzweig1-10/+44
Would like to compile compute shaders too. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Remove unused optionAlyssa Rosenzweig1-5/+2
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
34 hourspan/bi: Remove unused pointer from bi_instrAlyssa Rosenzweig1-3/+0
Yikes. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
35 hourszink: use dynamic line stippleMike Blumenkrantz4-27/+24
save those pipeline bits! Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12011>
35 hoursci: add another zink job with timelines disabledMike Blumenkrantz1-1/+11
this codepath needs to be maintained for *vague handwaving* Acked-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12089>
35 hourszink: add env var to disable timelinesMike Blumenkrantz1-0/+3
for ci use only Acked-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12089>
36 hourszink: export PIPE_CAP_TGSI_BALLOTMike Blumenkrantz1-0/+3
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11990>
36 hourszink: remove VK_EXT_shader_subgroup_ballot from device infoMike Blumenkrantz1-1/+0
restrict this to 1.2 only Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11990>
36 hourszink: implement compiler handling for subgroup ballot builtins/intrinsicsMike Blumenkrantz1-0/+55
these are all lowered and unremarkable Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11990>
36 hourszink: lower subgroup ballot instructionsMike Blumenkrantz1-0/+11
this handles rewrites of ballot-related instructions/builtins to spirv vec4 types from the native GLSL U64 type Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11990>
36 hourszink: change descriptor flushing to assertMike Blumenkrantz5-53/+21
there should never be flushing due to pool depletion; instead, trigger an oom flush and stall to replenish the pool after the draw/compute Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12012>