Hyunjun Ko
58aa920706
vulkan: fix typo
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com >
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14105 >
2022-01-13 04:01:44 +00:00
Hyunjun Ko
f976f71fb0
turnip: Use the new common device lost tracking
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com >
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14105 >
2022-01-13 04:01:44 +00:00
Jianxun Zhang
14a4600b62
intel: add swizzle flag into driver uuid
...
Suggested by Lionel Landwerlin, we add has_bit6_swizzle as
another input when computing driver uuid.
Also fix miscalculation of the length of driver tag.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com >
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/13936 >
2022-01-13 03:09:36 +00:00
Jianxun Zhang
f43c7185e0
intel: remove chipset_id
...
The chipset_id should be named after i915 ioctl that's called
to get the device id. In user space this field holds pci device
id in reality. We now have a pci_device_id queried from drm
instead using the ioctl, so there is no much reason to keep
the chipset_id for the same purpose.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com >
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/13936 >
2022-01-13 03:09:36 +00:00
Jianxun Zhang
ddfa3924b3
intel: dump PCI info in intel_dev_info
...
Dump PCI bus and device info so that we can easily identify output
in a multi-gpu system.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com >
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/13936 >
2022-01-13 03:09:36 +00:00
Jianxun Zhang
3414ba9a81
anv: remove private pci fields
...
These fields are in the base device struct 'intel_device_info' now.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5489
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com >
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/13936 >
2022-01-13 03:09:36 +00:00
Jianxun Zhang
d86989bf73
intel: use PCI info to compute device uuid
...
With the new input from PCI bus and device fields, we can compute
device uuids in a multi-gpu system.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com >
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/13936 >
2022-01-13 03:09:36 +00:00
Jianxun Zhang
db8405670a
intel: provide pci bus and dev info in base device struct
...
Having PCI bus and dev info in the base struct
'intel_device_info' enables us to utilize the info across
multiple drivers for several purposes, such as computing
device uuids in a multi-gpu system.
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com >
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/13936 >
2022-01-13 03:09:36 +00:00
Yiwei Zhang
17b753459e
venus: VkExternalImageFormatProperties is optional
...
It's optional even if VkPhysicalDeviceExternalImageFormatInfo is there.
Fixes: 108f386a61 ("venus: initial support for VkPhysicalDevice commands")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Reviewed-by: Chia-I Wu <olvaffe@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14503 >
2022-01-13 02:59:51 +00:00
Eric Engestrom
cd6377741d
docs: update calendar and link releases notes for 21.3.4
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14526 >
2022-01-13 02:55:35 +00:00
Eric Engestrom
7240b37948
docs: add release notes for 21.3.4
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14526 >
2022-01-13 02:55:35 +00:00
Daniel Schürmann
79a987ad2a
nir/opt_if: also merge break statements with ones after the branch
...
This optimizations turns
loop {
...
if (cond1) {
if (cond2) {
do_work_1();
break;
} else {
do_work_2();
}
do_work_3();
break;
} else {
...
}
}
into:
loop {
...
if (cond1) {
if (cond2) {
do_work_1();
} else {
do_work_2();
do_work_3();
}
break;
} else {
...
}
}
As this optimizations moves code into the NIF statement,
it re-iterates on the branch legs in case of success.
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7587 >
2022-01-13 02:30:32 +00:00
Daniel Schürmann
dad609d152
nir/opt_if: merge two break statements from both branch legs
...
This optimization turns
loop {
...
if (cond) {
do_work_1();
break;
} else {
do_work_2();
break;
}
}
into:
loop {
...
if (cond) {
do_work_1();
} else {
do_work_2();
}
break;
}
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7587 >
2022-01-13 02:30:32 +00:00
Caleb Callaway
64a51293c8
vulkan/overlay: support Vulkan 1.2
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5602
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14465 >
2022-01-13 02:02:14 +00:00
Chia-I Wu
20db89b7c7
virgl: disable texture uploads with copy transfers
...
This disables cdc480585c ("virgl/drm: New optimization for uploading
textures") effectively.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
Reviewed-by: Lepton Wu <lepton@chromium.org >
Acked-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14497 >
2022-01-13 01:26:00 +00:00
Dylan Baker
d3398a8e03
docs: move the release for 22.0 out
...
Between a troubles with Marge and FD.O, and requests for a bit more
time for a few patches to land, we're going to bump the release out by
three weeks.
Acked-by: Caio Oliveira <caio.oliveira@intel.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14502 >
2022-01-13 01:21:16 +00:00
Emma Anholt
c638d6f3bf
ci: Add paraview traces to several drivers.
...
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14501 >
2022-01-13 00:22:54 +00:00
Emma Anholt
ec29a9391e
ci/llvmpipe: Add a trace for the game JVGS, which got regressed recently.
...
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14501 >
2022-01-13 00:22:54 +00:00
Emma Anholt
e46fa37cf4
ci/llvmpipe: Sort the list of traces.
...
so I don't have to deliberate about where to put new ones.
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14501 >
2022-01-13 00:22:54 +00:00
Rhys Perry
9675cef53b
radv: set radv_split_fma=true for Proton SotTR
...
The game seems to expect fma to be unfused. Fixes depth-prepass artifacts.
I haven't tested the D3D12 version, but I think it doesn't work and needs
sparse depth/stencil images.
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
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