Rhys Perry
cc802cab7c
radv: add RADV_DEBUG=splitfma
...
This splits application-provided FMA in vertex/geometry/tesselation/mesh
shaders.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14458 >
2022-01-12 23:50:35 +00:00
Christian Gmeiner
b2ae4b2ac4
lima: remove not needed lie about PIPE_CAP_OCCLUSION_QUERY
...
Occlusion queries are supported always but only the number of
supported samples differ.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com >
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14361 >
2022-01-12 23:19:22 +00:00
Christian Gmeiner
2a90f2702c
i915: remove not needed lie about PIPE_CAP_OCCLUSION_QUERY
...
Occlusion queries are supported always but only the number of
supported samples differ. This also removes I915_LIE debug
option.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14361 >
2022-01-12 23:19:22 +00:00
Christian Gmeiner
b497e454b3
vc4: remove not needed lie about PIPE_CAP_OCCLUSION_QUERY
...
Occlusion queries are supported always but only the number of
supported samples differ.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com >
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14361 >
2022-01-12 23:19:22 +00:00
Christian Gmeiner
41179b665b
broadcom/ci: use .test-manual-mr
...
Allow the jobs to be available for MRs.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com >
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14361 >
2022-01-12 23:19:22 +00:00
Christian Gmeiner
0186e9e1c5
mesa: always support occlusion queries
...
Excerpt from ARB_occlusion_query.txt:
An implementation can either set QUERY_COUNTER_BITS_ARB to the
value 0, or to some number greater than or equal to n. If an
implementation returns 0 for QUERY_COUNTER_BITS_ARB, then the
occlusion queries will always return that zero samples passed the
occlusion test, and so an application should not use occlusion queries
on that implementation.
This looks more sane for drivers wanting desktop gl 1.5 without real
hw support then just faking it.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Reviewed-by: Emma Anholt <emma@anholt.net >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14361 >
2022-01-12 23:19:22 +00:00
Daniel Stone
56886459c5
Revert "ci: disable vs2019 windows build"
...
This reverts commit 567a9550d7 .
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14513 >
2022-01-12 21:45:11 +00:00
Thomas H.P. Andersen
315d6ee66f
freedreno: drop dead assignment
...
width0 was introduced in e11a239e8c
Its use was dropped in 979e7e3680
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14500 >
2022-01-12 21:20:23 +00:00
Thomas H.P. Andersen
d71c6eebe2
freedreno: silence sometimes-uninitialized warning
...
Clang does not see that this is unreachable and thus
thinks that opc will be used uninitialized later.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14500 >
2022-01-12 21:20:23 +00:00
Ruijing Dong
50d4e44fa4
radeon/vcn: enable dynamic dpb Tier2 for hevc dec vaapi path
...
keep omx hevc decoding using the current mode, set dpb Tier2 for
vaapi hevc decoding mode as default.
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14484 >
2022-01-12 20:16:50 +00:00
Ruijing Dong
be28a475c7
radeon/vcn: enable dynamic dpb Tier2 support for h264 dec vaapi path
...
By disabling h264 enxtension flag to let vaapi application manage the
dpb buffers. The calculation of the non_exist_flags for h264 reference
frames needs to consider both frame number and POC in the reference
picture list, set this flag only if both of the frame number and POC
are not existed in the valid reference lists; otherwise, that reference
frame is considered valid.
Also enabled drm buffer in dynamic dpb Tier2.
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14484 >
2022-01-12 20:16:50 +00:00
Ruijing Dong
2efddb5db0
frontends/va: preparing to disable h264 extension flag in vaapi dec path
...
In frame reference frame, the top/bottom field reference flag also needs
to be set, so does the long term reference flag.
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14484 >
2022-01-12 20:16:50 +00:00
Ruijing Dong
fb1d1d3b1f
frontends/omx: preserve omx to keep current mode for avc decoding
...
Preparing to disable h264 extension flag in vaapi path, and this change
will not affect omx.
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14484 >
2022-01-12 20:16:50 +00:00
Mike Blumenkrantz
2af033fd54
zink: ci updates
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14397 >
2022-01-12 18:39:56 +00:00
Mike Blumenkrantz
d3bb5b5dd1
zink: use even more accurate stride values for query result copies
...
this shouldn't be used at all, but some drivers get it wrong and I don't want
to have to fix every driver
Fixes: 039ed2de94 ("zink: always use type size for query result copy stride")
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14397 >
2022-01-12 18:39:56 +00:00
Mike Blumenkrantz
2fa1bf60d6
Revert "zink: when performing an implicit reset, sync qbos"
...
this appeared to fix some sort of bug related to preserving qbo data,
but really there shouldn't have been any sort of bug anyway since the qbos
all get read back, and thus the data is already preserved
instead, it just preserved the query id, which overloaded the pools and crashed
This reverts commit 79790e276f .
fixes #5669
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14397 >
2022-01-12 18:39:56 +00:00
Mike Blumenkrantz
b7a4faea9b
zink: skip readback of qbos with no results
...
this is a no-op and also crashes
Fixes: 93190be1b9 ("zink: rewrite query internals")
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14397 >
2022-01-12 18:39:56 +00:00
Mike Blumenkrantz
f8d2770737
zink: fix availability buffer sizing/copying for xfb queries
...
xfb queries have 2 results, and the availability bit is a 3rd result, so
the buffer size has to be at least that big and the copy offset has to reflect
the number of xfb results in the src offset
cc: mesa-stable
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14397 >
2022-01-12 18:39:56 +00:00
Mike Blumenkrantz
bf9ac4dfcd
zink: always set number of timestamp results to 1 for internal qbo
...
timestamp queries don't accumulate results
Fixes: 93190be1b9 ("zink: rewrite query internals")
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14397 >
2022-01-12 18:39:56 +00:00
Mike Blumenkrantz
8b46d83637
zink: add a better threshold for clamping query pool resets on suspend
...
these pools should be dumped even if they aren't used
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14397 >
2022-01-12 18:39:56 +00:00
Daniel Schürmann
8a78706643
nir: refactor nir_opt_move
...
This patch is a rewrite of nir_opt_move.
Differently from the previous version, each instruction is checked
if it can be moved downwards and then inserted before the first user
of the definition. The advantage is that less insert operations are
performed, the original order is kept if two movable instructions have
the same first user, and instructions without user in the same block
are moved towards the end.
v2: Only return true if an instruction really changed the position.
Don't care for discards, this will be handled by another MR.
v3: fix self-referring phis and update according to nir_can_move_instr().
v4: use nir_can_move_instr() and nir_instr_ssa_def()
v5: deduplicate some code
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3657 >
2022-01-12 13:41:54 +00:00
Lionel Landwerlin
8ef9350ff0
intel/devinfo: drop num_eus_per_subslice field
...
This field is an average computation that is not actually useful for
any of our driver code.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14510 >
2022-01-12 12:53:21 +00:00
Lionel Landwerlin
5d5a1b660b
intel/devinfo: add a helper to check for slice availability
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14510 >
2022-01-12 12:53:21 +00:00
Lionel Landwerlin
1c5b206366
intel/devinfo: printout devinfo struct size
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14510 >
2022-01-12 12:53:21 +00:00
Lionel Landwerlin
574ba30fb4
intel/devinfo: printout pixel pipes in info printout
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14510 >
2022-01-12 12:53:21 +00:00
Pierre-Eric Pelloux-Prayer
d8ba48e447
radeonsi/tests: add expected results for vega20
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14454 >
2022-01-12 11:39:53 +00:00
Pierre-Eric Pelloux-Prayer
d299d81919
radeonsi/tests: update expected results
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14454 >
2022-01-12 11:39:53 +00:00
Pierre-Eric Pelloux-Prayer
86262b6eac
radeonsi,radv: fix usages of surf_pitch
...
For linear textures, pitch[level] should be used instead.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14454 >
2022-01-12 11:39:53 +00:00
Pierre-Eric Pelloux-Prayer
2f8982df0e
radeonsi/gfx10: fix si_texture_get_offset for mipmapped tex
...
Pitch can be different per-level so adjust stride and offset.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5792
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14454 >
2022-01-12 11:39:53 +00:00
Samuel Pitoiset
9cd8908c03
radv: fix computing the fb size in presence of dynamic VRS attachment
...
This fixes
dEQP-VK.fragment_shading_rate.dynamic_rendering.attachment_rate.*.
Fixes: e914a6710f ("radv: Expose the VK_KHR_dynamic_rendering extension.")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14421 >
2022-01-12 11:16:31 +00:00
Samuel Pitoiset
9c746157ae
radv: reset VRS if the current subpass doesn't have a VRS attachment
...
With a scenario like:
BeginRP(DS + VRS att)
Draw()
EndRP()
BeginRP(same DS)
Draw()
EndRP()
The second draw shouldn't use VRS but it did because the VRS bit
is always set during DS surface initialization if a surface can use VRS.
So, it would have been using the previous copied VRS rates.
Found by inspection.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14443 >
2022-01-12 10:22:29 +00:00
Samuel Pitoiset
ec4dcd53db
radv: stop checking if dynamic states changed
...
This is costly for the CPU and might hurt "good" applications that
already avoid that like DXVK/vkd3d-proton.
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5009
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12441 >
2022-01-12 09:48:29 +00:00
Lionel Landwerlin
567a9550d7
ci: disable vs2019 windows build
...
Failing with :
error during connect: In the default daemon configuration on
Windows, the docker client must be run with elevated privileges to
connect.: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/auth :
open //./pipe/docker_engine: The system cannot find the file
specified.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14509 >
2022-01-12 09:04:29 +00:00
Nanley Chery
912acbf963
anv,iris: Flush HDC before color fast clears
...
Needed for XeHP (see Bspec 47704).
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Rohan Garg <rohan.garg@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14024 >
2022-01-12 01:30:34 +00:00
Nanley Chery
f3c629733f
anv,iris: PSS Stall Sync around color fast clears
...
Needed for XeHP (see Bspec 47704).
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Rohan Garg <rohan.garg@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14024 >
2022-01-12 01:30:34 +00:00
Nanley Chery
8ec8298ce4
intel: Rename the PSD bit in PIPE_CONTROL for XeHP
...
The name of the field now starts with PSS Stall instead of PSD.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Rohan Garg <rohan.garg@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14024 >
2022-01-12 01:30:34 +00:00
Nanley Chery
de5f1cdd31
anv,iris: Depth stall around color fast clears
...
Needed for TGL (see Bspec 47704).
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Rohan Garg <rohan.garg@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14024 >
2022-01-12 01:30:34 +00:00
Nanley Chery
34c8371e2a
anv,iris: Flush tile cache after color fast clears
...
Needed for TGL (see Bspec 47704).
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Rohan Garg <rohan.garg@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14024 >
2022-01-12 01:30:34 +00:00
Bas Nieuwenhuizen
38b3661b8f
radv: 256 byte push constants.
...
This helps vkd3d-proton, especially when indirecting more stuff.
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14485 >
2022-01-12 01:08:39 +00:00
Bas Nieuwenhuizen
43f8e07765
radv: Use 16-bits to store push constant indices.
...
Otherwise things horrible go wrong when we get 256 bytes of push
constants.
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14485 >
2022-01-12 01:08:39 +00:00
Bas Nieuwenhuizen
3a36d0b787
radv: Use MAX_PUSH_CONSTANTS_SIZE for saved push constants.
...
So that it can never again get out of sync.
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14485 >
2022-01-12 01:08:39 +00:00
Mike Blumenkrantz
b6499dff37
zink: use device-local heap for sparse backing allocations
...
backing allocations are real allocations, so they shouldn't be initialized
as sparse containers
Fixes: 40fdb3212c ("zink: add a suballocator")
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14394 >
2022-01-12 00:03:00 +00:00
Marcin Ślusarz
f286ecf906
nir: handle per-view clip/cull distances
...
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14263 >
2022-01-11 22:45:23 +00:00
Marcin Ślusarz
70a9710eee
spirv: mark [Clip|Cull]DistancePerViewNV variables as compact
...
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14263 >
2022-01-11 22:45:23 +00:00
Marcin Ślusarz
0d6f83cbf1
nir: remove invalid assert affecting per-view variables
...
per-view variables can have arbitrary (but > 0) number of array levels
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14263 >
2022-01-11 22:45:23 +00:00
Marcin Ślusarz
ce5a8bff77
spirv: handle multiview bits of SPV_NV_mesh_shader
...
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14263 >
2022-01-11 22:45:23 +00:00
Marcin Ślusarz
4fed440724
nir: add load_mesh_view_count and load_mesh_view_indices intrinsics
...
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14263 >
2022-01-11 22:45:23 +00:00
Marcin Ślusarz
e4ff7fd76a
spirv: add MeshViewCountNV/MeshViewIndidcesNV builtins from SPV_NV_mesh_shader
...
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14263 >
2022-01-11 22:45:23 +00:00
Marcin Ślusarz
561de760fd
compiler: add new MESH_VIEW_COUNT/MESH_VIEW_INDICES system values
...
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14263 >
2022-01-11 22:45:23 +00:00
Marcin Ślusarz
4cb7dcb097
spirv: handle ViewportMaskNV builtin/cap from SPV_NV_mesh_shader
...
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14263 >
2022-01-11 22:45:23 +00:00