Faith Ekstrand
99bbfbf7b2
nak: Implement uadd_sat
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26535 >
2023-12-06 06:10:30 +00:00
Faith Ekstrand
85462f7455
nak: Legalize immediates with source modifiers
...
We can just apply the source modifier to the immediate. Also, make
IAdd3X have I32 sources. They do get a bit odd in the high form but
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26535 >
2023-12-06 06:10:30 +00:00
Faith Ekstrand
5335a59bff
nak/legalize: Handle the src0/1 source mod condition for OpIAdd3X
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26535 >
2023-12-06 06:10:30 +00:00
Faith Ekstrand
b736cdcb83
nak: Rework the OpIAdd3/OpIAdd3X split
...
This lets us use the correct source types on OpIAdd3X
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26535 >
2023-12-06 06:10:30 +00:00
Faith Ekstrand
48917600fb
nak: Add a B32 source type
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26535 >
2023-12-06 06:10:30 +00:00
Dave Airlie
fab508da38
nvk/xfb: set correct counter buffer for writing stream out counters.
...
nvc0 does nvc0_hw_query_get(push, q, 0x00, 0x0d005002 | (q->index << 5));
which corresponds to sub report.
Just noticed in code review, don't know of any tests that will notice yet.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26513 >
2023-12-06 05:55:54 +00:00
Qiang Yu
7656251294
aco: fix set_wqm segfault when ps prolog
...
ps prolog does not have nir shader.
Fixes: 3b10547e67 ("aco: enable helper lanes if shader->info.fs.require_full_quads")
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26512 >
2023-12-06 05:34:30 +00:00
Faith Ekstrand
3bbd5357e9
nak: Advertise subgroupBroadcastDynamicId
...
This doesn't do anything yet because it's a Vulkan 1.2 core feature and
not in any extension but it will apply when we enable Vulkan 1.2 in the
future or if someone uses MESA_VK_VERSION_OVERRIDE=1.2/1.3.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26530 >
2023-12-06 05:18:30 +00:00
Faith Ekstrand
a3159bab98
nvk: Advertise VK_EXT_scalar_block_layout
...
https://gitlab.freedesktop.org/mesa/mesa/-/issues/9653
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26530 >
2023-12-06 05:18:30 +00:00
Sagar Ghuge
b223d33141
blorp: Handle stencil buffer compression on blitter engine
...
XY_BLOCK_COPY_BLT and XY_FAST_COLOR_BLT instruction supports AUX_CCS
surface mode. Stencil buffer compression is stencil data with CCS so we
can easily support that on blitter engine.
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26167 >
2023-12-06 04:39:09 +00:00
Sil Vilerino
28ad562a16
d3d12: Video Encoder: Support reporting non contiguous NALU, offsets for frontend extraction
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
bed54fc9b0
d3d12: Video Encoder - When setting rate control dirty flags take into account rolled back optional configs
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
960d86ef9a
d3d12: Fix max reference frames reporting when HW does not support B frame
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
d010364841
d3d12: d3d12_create_fence_win32 - Fix double refcount bump
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
81c8e89ff8
d3d12: Fix screen->winsys leak in d3d12_screen
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
7bd6a42d1f
d3d12: Fix d3d12_tcs_variant_cache_destroy leak in d3d12_context
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
ba85ca3721
d3d12: Improve error detection and reporting for video encoder
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
0233cdd00d
d3d12: Detect imported resource buffer unknown format
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
bf73d5551a
d3d12: Implement PIPE_VIDEO_CAP_ENC_H264_SUPPORTS_CABAC_ENCODE
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
bee68059cb
d3d12: Autodetect d3d12_video_buffer imported handle/resource format and dimensions when not passed
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
3f43b2eae5
d3d12: Implement PIPE_VIDEO_FEEDBACK_METADATA_TYPE_AVERAGE_FRAME_QP
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
364cc5d51d
d3d12: Fix max slice size and max frame size metadata reporting
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
25e2a7544b
d3d12: max_frame_poc workaround for infinite GOPs
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
c89766f416
d3d12: Use new pipe h264 encode ip_period param
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
8af080cec4
d3d12: Implement d3d12_video_encoder_get_encode_headers for out of band VPS, SPS, PPS
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
829e821aab
d3d12: Only pass texture dimensions to d3d12_video_encoder_update_current_encoder_config_state
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
05fe740374
d3d12: Implement fence_get_win32_handle to get HANDLE from d3d12_fence
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
942791b937
d3d12: Implement get_feedback_fence for encode async waiting on pipe_feedback_fence
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
0cc0220cce
d3d12: H264 encode - Allow CONSTRAINED_BASELINE profile to be written in headers
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
c80b35274f
d3d12: Do not increase active_seq_parameter_set_id on new SPS. Force PPS on new SPS
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
1032fc07b5
d3d12: Implement inserting optional new headers on each H264/HEVC IDR frame
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
9a927f21fb
vl_winsys_win32: call winsys->destroy(winsys) in error conditions
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
88f25f35e4
frontend/va: Use p_video_codec.get_feedback_fence to report errors on frame submission
...
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
e0345bff94
frontend/va: Add VACodedBufferSegment Average QP metadata
...
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
0c1ff82bc8
frontend/va: Add h264 encode ip_period param
...
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
413b466aea
pipe: Add PIPE_H264_MAX_REFERENCES
...
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
92b73aeb16
pipe: Add PIPE_VIDEO_CAP_ENC_H264_SUPPORTS_CABAC_ENCODE
...
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
c954830132
pipe: Add PIPE_VIDEO_FEEDBACK_METADATA_TYPE_AVERAGE_FRAME_QP
...
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
3f07c8c321
pipe: Add p_video_codec.get_encode_headers for out of band VPS, SPS, PPS
...
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:53 +00:00
Sil Vilerino
34d45cf7ed
pipe: Add fence_get_win32_handle to get HANDLE from pipe_fence_handle
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:52 +00:00
Sil Vilerino
d9bbae6a0c
pipe: Add get_feedback_fence for encode async waiting on pipe_feedback_fence
...
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:52 +00:00
Sil Vilerino
3ab25d6fb3
pipe: Support inserting new headers on each H264/HEVC IDR frame
...
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456 >
2023-12-06 03:58:52 +00:00
jphuang
02a873fa2a
dzn: Change dst image layout according to aspect
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26532 >
2023-12-06 03:36:07 +00:00
Eric Engestrom
cb6422765c
turnip: update symbols that have become aliases for newer ones
...
All of these have been renamed in the spec (usually by being promoted);
renamed them in our code too.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26493 >
2023-12-06 02:21:04 +00:00
Eric Engestrom
df8ea977be
radeonsi/ci: track changes to vpelib
...
According to `src/amd/meson.build`, radeonsi uses vpelib, so we should
track changes to it as well.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26479 >
2023-12-06 01:58:41 +00:00
Eric Engestrom
3a8da0b8bf
v3d: drop leftover from "move v3d_tiling to common"
...
Fixes: d198e26a1e ("broadcom/common: move v3d_tiling to common")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26525 >
2023-12-06 01:44:14 +00:00
Eric Engestrom
4dd8030b25
freedreno/ci: add more a630 flakes
...
Failed in https://gitlab.freedesktop.org/mesa/mesa/-/jobs/52405040 and passed
in the auto-retry https://gitlab.freedesktop.org/mesa/mesa/-/jobs/52405437
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26531 >
2023-12-06 01:22:30 +00:00
Jesse Natalie
d7f038e8de
microsoft/clc: Add a test which sinks image derefs
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26529 >
2023-12-06 01:07:24 +00:00
Jesse Natalie
c8895a4b85
microsoft/clc: Fix images with multiple derefs for real
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26529 >
2023-12-06 01:07:24 +00:00
Paulo Zanoni
bf0f261c1e
anv/sparse: document USAGE_2D_3D_COMPATIBLE as non-standard too
...
The standard block shapes (and by extension, the tiling formats they
require) are simply incompatible with getting a 2D view of a 3D image.
I couldn't find in the Vulkan spec anything related to what are the
expectations when trying to use both at the same time.
So here we "document" that this case is known non-standard. Please
notice that since we report residencyStandard3DBlockShape as true we
were actually supposed to support this case, but I can't see how this
would be possible, so set is_known_nonstandard_format to true so we
can avoid the assert() that comes right after.
Fixes the following when using Zink:
KHR-GL46.sparse_texture_tests.SparseTextureAllocation
Also "moves forward" the following test on Zink, so it now hits a
different assertion:
KHR-GL46.sparse_texture_tests.SparseTextureCommitment
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26454 >
2023-12-06 00:29:58 +00:00