Roman Stratiienko
|
6fee2715ce
|
turnip/android: Use DETECT_OS_ANDROID in tu_device
ANDROID definition is not available in some cases.
Fixes: 99753001f3 ("turnip: Support AHardwareBuffer")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11242
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29478>
|
2024-05-30 11:58:46 +00:00 |
|
Samuel Pitoiset
|
c1373239f2
|
radv: allow STORAGE for depth formats
Pass all new VKCTS test coverage for D16/D32.
Tested on PITCAIRN, POLARIS10, VEGA10 and NAVI21.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29239>
|
2024-05-30 11:30:23 +00:00 |
|
Samuel Pitoiset
|
f9af8e7a2b
|
radv: do not enable HTILE for depth/stencil storage images
STORAGE will be allowed for depth-only formats, but HTILE is unlikely
to be supported.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29239>
|
2024-05-30 11:30:22 +00:00 |
|
Samuel Pitoiset
|
b2fd49201e
|
radv: update VS input VGPRs on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
5636af1702
|
radv: update SDMA resource type on GFX12
It should be 0.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
d4d2578e91
|
radv: update global graphics shader pointers on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
aa0f9e356f
|
radv: update NUM_THREAD_FULL bitfields on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
45b6b0cafb
|
radv: enable GE_CNTL.DIS_PG_SIZE_ADJUST_FOR_STRIP on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
2ac7154189
|
radv: update configuring VGT_SHADER_STAGES_EN on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
bf936d0291
|
radv: update configuring the number of patch control points on GFX12
GFX12 uses VGT_PRIMITIVE_TYPE instead of LS_HS_CONFIG.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
d6ae8c689e
|
radv: emit SQ_NON_EVENT packets after drawing with streamout on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
9d50725ffe
|
radv: disallow merging multiple draws into one wave on GFX12
It's not supported.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
f25b2d179e
|
radv: update emitting stipple line on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
137b49ecd7
|
radv: update cache flush emission on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
bd95512e0a
|
radv: do not emulate clear state for shadowed regs on GFX12
There is no CLEAR_STATE on GFX12.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
ce6557cc04
|
aco: adjust loading local invocation ID for GS on GFX12
It uses gs_vtx_offset[0] instead.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
06598bc707
|
radv: update shader input arguments for GS stage on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
10b97836b9
|
radv: update emitting discard rectangles on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
f518bf1cb0
|
radv: update binning settings on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
18e6a9a6a8
|
radv: update configuring tess rings on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
19de04748e
|
radv: update configuring GFX preamble on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
a12373f462
|
radv: update configuring MSAA state on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
78e272432b
|
radv: update configuring occlusion query state on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
61e78fb143
|
radv: update configuring some CB states on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
b28107f46a
|
radv: update configuring rasterization states on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
0c019ff028
|
radv: update configuring DB states on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
f12c236625
|
radv: update configuring VGT states on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
5b4a50a3b7
|
radv: update configuring NGG states on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
2f5937dd36
|
radv: update configuring PS states on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:04 +00:00 |
|
Samuel Pitoiset
|
65df7248ff
|
radv: update configuring viewport/scissor on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:03 +00:00 |
|
Samuel Pitoiset
|
f015a4f453
|
radv: update configuring sample locations on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:03 +00:00 |
|
Samuel Pitoiset
|
a8ad33caac
|
radv: do not emit non-existent registers on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:03 +00:00 |
|
Samuel Pitoiset
|
087e49aadb
|
radv: enable GS_FAST_LAUNCH_2 by default on GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:03 +00:00 |
|
Samuel Pitoiset
|
c6ffde61cc
|
radv: update NUM_THREAD_FULL bitfields
They are similar but it avoids confusion when looking at RadeonSI.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:03 +00:00 |
|
Samuel Pitoiset
|
78b4d356f3
|
ac,radv,radeonsi: add ac_gpu_info::has_tc_compatible_htile
It's apparently not supported on GFX12.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:03 +00:00 |
|
Samuel Pitoiset
|
94a6eb20f9
|
amd/common: define SDMA v7.0 for GFX12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
|
2024-05-30 11:05:03 +00:00 |
|
Samuel Pitoiset
|
5ff1e59ba7
|
radv: only emit streamout enable for legacy streamout
Only for GFX6-10.3.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29460>
|
2024-05-30 10:43:25 +00:00 |
|
Boris Brezillon
|
6fe5129d3d
|
panvk: Override the default GetRender[in]AreaGranularityKHR()
Expose the real optimal render area granularity to users, so they can
optimize their rendering operations accordingly.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Suggested-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29443>
|
2024-05-30 12:16:40 +02:00 |
|
Boris Brezillon
|
8c2b4de386
|
panvk: Make sure replay of command buffers containing Dispatch calls works
In order to replay a command buffer, we need to reset the job status
fields of all previously executed jobs, which is done by walking the
the per-batch jobs array.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Cc: stable
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29443>
|
2024-05-30 12:16:40 +02:00 |
|
Boris Brezillon
|
0142fdf81c
|
panvk: Make sure we run the fragment shader if alpha_to_coverage is enabled
If alpha-to-coverage is enabled, we need to run the fragment shader even
if we don't have a color attachment, so depth/stencil updates can be
discarded if alpha, and thus coverage, is 0.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29443>
|
2024-05-30 12:16:40 +02:00 |
|
Boris Brezillon
|
98ab2d3436
|
panvk: Make sure we don't lose clear-only operations
The batch might contain just a clear operation on the color/depth/stencil
attachments. We need to make sure fragment jobs are emitted in that
case, which only happens if the framebuffer descriptor is != NULL.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29443>
|
2024-05-30 12:16:40 +02:00 |
|
Boris Brezillon
|
a1be9ee375
|
panvk: Fix dynamic rendering with images containing both depth and stencil
When the depth or stencil attachment points to an image that contains
both components and only one of those is updated, we need to preload
the other.
We also need to patch the ZS view to use the format with both components
when that happens.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29443>
|
2024-05-30 12:16:40 +02:00 |
|
Boris Brezillon
|
c82ce475d1
|
panvk: Skip depth/stencil attachments with non-matching aspect mask
Image views passed to the depth or stencil attachment might not have
the according depth/stencil aspect set in the image view. In that case,
we won't be able to preload or write the attachment, so let's just
act as if the attachment wasn't passed.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29443>
|
2024-05-30 12:16:40 +02:00 |
|
Boris Brezillon
|
e17e285b8f
|
panvk: Force a preload when the render area is not 32x32 aligned
If we don't do that, we lose the content that's outside the defined
render area but inside the 32x32 aligned render area.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29443>
|
2024-05-30 12:16:40 +02:00 |
|
Boris Brezillon
|
9ff5e56eb7
|
panvk: Take VK_RENDERING_{RESUM,SUSPEND}ING_BIT flags into account
Don't close the current batch when suspending a rendering pass, and
only open a new batch if the cur_batch was closed by a compute job
being queued in the middle.
We also don't re-init the FB info if we're resuming.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29443>
|
2024-05-30 12:16:40 +02:00 |
|
Boris Brezillon
|
6f8b691c2e
|
panvk: Add a render state to panvk_cmd_graphics_state
We will store information extracted from VkRenderingInfo there instead
of abusing the fb state, which is now part of the render state.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29443>
|
2024-05-30 12:16:40 +02:00 |
|
Rhys Perry
|
ac47ee1be7
|
meson: remove --depfile for aco_tests
This isn't needed right now and probably doesn't work. glsl_scraper.py
writes to the same depfile several times.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29348>
|
2024-05-30 09:44:52 +00:00 |
|
Karol Herbst
|
11e85c8ce0
|
gallium/drivers: do not link against libgalliumvl directly
libgalliumvl_stub was added so not all frontends have to link in full
video accleration support, shaving off around 100kB of binary size.
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26680>
|
2024-05-30 08:44:23 +00:00 |
|
Karol Herbst
|
b9ea6a3ab7
|
wgl: link against libgalliumvl_stub
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26680>
|
2024-05-30 08:44:23 +00:00 |
|
Karol Herbst
|
691a22f015
|
rusticl: link against libgalliumvl_stub
Fixes compiling rusticl with certain configurations
Cc: mesa-stable
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26680>
|
2024-05-30 08:44:23 +00:00 |
|