Lionel Landwerlin
ba5c0f0ffd
anv: rework Wa_14017076903 to only apply with occlusion queries
...
Fixes KHR-GL46.transform_feedback.* tests with zink+anv on DG2
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: c34916f841
("anv: implement occlusion query related Wa_14017076903")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22586 >
(cherry picked from commit 56840e4c89
)
2023-04-26 17:37:25 +01:00
Patrick Lerda
0b47ece7ae
r600/sfn: fix memory leak related to sh_info->arrays
...
For instance, with "piglit/bin/shader_runner tests/spec/glsl-1.10/execution/glsl-vs-arrays-2.shader_test -auto -fbo":
Direct leak of 12 byte(s) in 1 object(s) allocated from:
#0 0x7f33c3f3d097 in operator new[](unsigned long) (/usr/lib64/libasan.so.6+0xb3097)
#1 0x7f33b9af1e5b in r600::ValueFactory::get_shader_info(r600_shader*) ../src/gallium/drivers/r600/sfn/sfn_valuefactory.cpp:1056
#2 0x7f33b9a96860 in r600::Shader::get_shader_info(r600_shader*) ../src/gallium/drivers/r600/sfn/sfn_shader.cpp:1445
#3 0x7f33b99ddd07 in r600_shader_from_nir ../src/gallium/drivers/r600/sfn/sfn_nir.cpp:1032
#4 0x7f33b9c3e701 in r600_pipe_shader_create ../src/gallium/drivers/r600/r600_shader.c:231
Fixes: 79ca456b48
("r600/sfn: rewrite NIR backend")
Signed-off-by: Patrick Lerda <patrick9876@free.fr >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22262 >
(cherry picked from commit e45fa939b0
)
2023-04-26 17:37:25 +01:00
Michel Zou
49eb067746
mesa/draw: fix -Wformat warning
...
fixes: 5791826b
cc @pepp @mareko
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22605 >
(cherry picked from commit a1098a1e45
)
2023-04-26 17:37:25 +01:00
Rob Clark
cec5bf6040
freedreno/a6xx: Fix valid_format_cast logic for newer a6xx
...
Fixes a pile of
dEQP-GLES31.functional.copy_image.non_compressed.viewclass_32_bits.*
on a6xx gen2 and later.
Fixes: 87978c3933
("freedreno/a6xx: Allow z24s8 format casts")
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22610 >
(cherry picked from commit b83af7e5b8
)
2023-04-26 17:37:25 +01:00
Jordan Justen
b8a7fba41f
intel/compiler/gfx12.5+: Lower 64-bit cluster_broadcast with 32-bit ops
...
For MTL (verx10 == 125), float64 is supported, but int64 is not.
Therefore we need to lower cluster broadcast using 32-bit int ops.
For gfx12.5+ platforms that support int64, the register regions
used by cluster broadcast aren't supported by the 64-bit pipeline.
On MTL, dEQP-VK.subgroups.clustered.*_double* and
dEQP-VK.subgroups.clustered.*_dvec* were failing to validate the
compiled shader in debug mode, and reportedly gpu-hanging in release
mode.
With this change dEQP-VK.subgroups.clustered.*_double* passed all 48
tests and dEQP-VK.subgroups.clustered.*_dvec* passed all 140 tests on
MTL.
Rework:
* Move from generator to brw_fs_lower_regioning.cpp. (Suggested by
Francisco)
* Apply to verx10 >= 125.. (Suggested by Francisco)
Cc: 23.1 <mesa-stable>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com > (v1)
Reviewed-by: Francisco Jerez <currojerez@riseup.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22569 >
(cherry picked from commit fcb72ffd0c
)
2023-04-26 17:37:25 +01:00
Samuel Pitoiset
38da1ae68a
radv: update binning settings to work around GPU hangs
...
Ported from RadeonSI, but it seems PAL always use 1 for both
parameters as well.
This should fix random GPU hangs with small chips (eg. NAVI24, GFX1103),
though all chips might have been affected.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8046
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8597
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8683
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22528 >
(cherry picked from commit 74ab940156
)
2023-04-26 17:37:24 +01:00
Michel Zou
3556a3e600
vk/entry_points:: fix mingw build
...
MinGW does not play well either with weak symbols and crashes at runtime without a trace
fixes: 7e833713d8
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22474 >
(cherry picked from commit cb282b6a81
)
2023-04-26 17:37:24 +01:00
Juan A. Suarez Romero
b9e8c2443b
v3d: use primitive type to get stream output offset
...
So far we were only considering the number of vertices to draw to
compute the offset in a stream output buffer.
But this is not correct, as it depends on the primitive type too. For
instance, with 4 vertices, if we use a triangle strip primitive, then 2
triangles are generated from those 4 vertices, so 6 vertices will be
captured.
This fixes spec@!opengl es
3.0@gles-3.0-transform-feedback-uniform-buffer-object.
CC: 23.1
Reviewed-by: Emma Anholt <emma@anholt.net >
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22607 >
(cherry picked from commit a86d18a8c4
)
2023-04-26 17:37:24 +01:00
Hans-Kristian Arntzen
5db4186d97
wsi/x11: Fix present ID signal when IDLE comes before COMPLETE.
...
It appears to be possible that IDLE is observed before COMPLETE.
In this case, an application may access present_id in subsequent
QueuePresentKHR and race against the fence worker reading present_id.
Solve this by adding a separate signal_present_id that is used when
completing to avoid the race.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no >
Reviewed-by: Adam Jackson <ajax@redhat.com >
(cherry picked from commit 32f7ff2c20
)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22637 >
2023-04-26 17:37:24 +01:00
Eric Engestrom
72d01ab287
.pick_status.json: Update to a18a51a708
2023-04-26 17:37:24 +01:00
Mike Blumenkrantz
555679c071
zink: check for extendedDynamicState3DepthClipNegativeOneToOne for ds3 support
...
somehow this was forgotten
Fixes: c7f46d2ad6
("zink: use dynamic state3 rasterization states when available")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22603 >
(cherry picked from commit 3017d01c9d
)
2023-04-26 17:37:24 +01:00
Mike Blumenkrantz
e694097441
drisw: don't leak the winsys
...
if a winsys is allocated by the frontend, it should be freed by the frontend
rather than the driver to ensure it doesn't leak if it doesn't reach
the driver
cc: mesa-stable
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22396 >
(cherry picked from commit 1e6e3427f0
)
2023-04-26 17:37:24 +01:00
Mike Blumenkrantz
3697d19ecf
zink: don't bitcast bool deref loads/stores
...
a bool can only be a bool, and OpBitCast requires the src type to be
different than the dst type, so this is illegal
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22577 >
(cherry picked from commit 9bf4db8ebb
)
2023-04-26 17:37:24 +01:00
Samuel Pitoiset
316c217cd9
radv: fix usage flag for 3D compressed 128 bpp images on GFX9
...
VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BIT is equal to
VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT but we want COLOR_ATTACHMENT_BIT.
Found by inspection.
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22540 >
(cherry picked from commit 72a522fb36
)
2023-04-26 17:37:24 +01:00
Samuel Pitoiset
6ae14d1808
radv: do not allow 1D block-compressed images with (extended) storage on GFX6
...
For some reasons this seems broken only on GFX6. Note that PAL doesn't
allowed block-compressed with 1D on all GPUs.
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22540 >
(cherry picked from commit 8a2fab66de
)
2023-04-26 17:37:24 +01:00
Qiang Yu
b920bab497
aco: fix nir_f2u64 translation
...
mantissa needs to be at the lower part for shift left.
This fixes large integer value conversion.
Cc: mesa-stable
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/22570 >
(cherry picked from commit 6a39d35df0
)
2023-04-26 17:37:24 +01:00
Michel Zou
5d5d1a17fc
vulkan/wsi: fix -Wnarrowing warning
...
else I get this output:
[11/600] Compiling C++ object src/vulkan/wsi/libvulkan_wsi.a.p/wsi_common_win32.cpp.obj
../src/vulkan/wsi/wsi_common_win32.cpp: In function 'VkResult wsi_win32_surface_create_swapchain_dxgi(wsi_win32_surface*, VkDevice, wsi_win32*, const VkSwapchainCreateInfoKHR*, wsi_win32_swapchain*)':
../src/vulkan/wsi/wsi_common_win32.cpp:757:65: warning: narrowing conversion of '((((int)chain->wsi_win32_swapchain::base.wsi_swapchain::present_mode) == ((int)VK_PRESENT_MODE_IMMEDIATE_KHR)) ? ((int)DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING) : 0)' from 'int' to 'UINT' {aka 'unsigned int'} [-Wnarrowing]
757 | chain->base.present_mode == VK_PRESENT_MODE_IMMEDIATE_KHR ?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
758 | DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING : 0
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fixes: d7730fcf22
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22475 >
(cherry picked from commit d5871d21a5
)
2023-04-26 17:37:24 +01:00
Mike Blumenkrantz
7dc2f320f3
util/debug: move null checks out of debug message macro
...
this otherwise causes tons of compiler warnings
cc: mesa-stable
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22196 >
(cherry picked from commit a6c8d74cd7
)
2023-04-26 17:37:24 +01:00
Mike Blumenkrantz
8184c0335a
zink: only print copy box warning once per resource
...
this otherwise gets spammy
cc: mesa-stable
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22196 >
(cherry picked from commit 366b79fa10
)
2023-04-26 17:37:24 +01:00
Mike Blumenkrantz
31170a8586
zink: emit demote cap when using demote
...
VUID-VkShaderModuleCreateInfo-pCode-01377(ERROR / SPEC): msgNum: 1478567243 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-01377 ] Object 0: handle = 0x55f304e851c0, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x5821254b | SPIR-V module not valid: Opcode DemoteToHelperInvocation requires one of these capabilities: DemoteToHelperInvocation
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22582 >
(cherry picked from commit 6ddfc5087c
)
2023-04-26 17:37:24 +01:00
Filip Gawin
6f9c1af4a0
nine: add fallback for D3DFMT_D16 in d3d9_to_pipe_format_checked
...
Helps with avoing crash in winetests on crocus.
Cc: mesa-stable
Reviewed-by: Axel Davy <davyaxel0@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20121 >
(cherry picked from commit 421d3e3c8e
)
2023-04-26 17:37:24 +01:00
Marek Olšák
32c5980e63
nir: fix 2 bugs in nir_create_passthrough_tcs
...
- VAR31 was ignored.
- Only a half of the 16-bit slot was passed through, though I'm not sure
if nir_lower_io handles vec8. The slots are only for GLES and I don't
think a passthrough TCS is possible with GLES.
Fixes: a8e84f50bc
- nir: Add helper to create passthrough TCS shader
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Reviewed-by: Qiang Yu <yuq825@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21861 >
(cherry picked from commit ace8a7068e
)
2023-04-26 17:37:24 +01:00
Charmaine Lee
cf9829388a
translate: do not clamp element index in generic_run
...
The buffer max_index value in translate_generic struct is relevant for
indexed draw only. So do not clamp the element index in generic_run() as it
is called for non-indexed draw only.
This patch passes index_size to the common generic_run_one function
so index clamping is only performed when a non-zero index_size is specified.
This fixes a text selection bug with kitty terminal emulator running on ARM
when it falls back to the generic translate path for unsigned byte vertex
array.
cc: mesa-stable
Reviewed-by: Jose Fonseca <jfonseca@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22568 >
(cherry picked from commit 13e885842a
)
2023-04-26 17:37:24 +01:00
Rhys Perry
c09f63087b
aco: remove SMEM_instruction::prevent_overflow
...
This doesn't seem useful anymore, and it seems we forgot to set it in a
few places.
This commit changes the behaviour of the optimizer so that
prevent_overflow is always true.
fossil-db (navi21):
Totals from 7421 (5.47% of 135636) affected shaders:
Instrs: 5402823 -> 5440126 (+0.69%); split: -0.00%, +0.69%
CodeSize: 28731300 -> 28974152 (+0.85%); split: -0.00%, +0.85%
VGPRs: 317528 -> 317552 (+0.01%)
SpillSGPRs: 419 -> 415 (-0.95%)
Latency: 40712478 -> 40783115 (+0.17%); split: -0.01%, +0.19%
InvThroughput: 7612708 -> 7616751 (+0.05%); split: -0.00%, +0.06%
VClause: 123824 -> 123848 (+0.02%); split: -0.09%, +0.11%
SClause: 161915 -> 172741 (+6.69%); split: -0.03%, +6.71%
Copies: 393015 -> 394429 (+0.36%); split: -0.20%, +0.56%
PreSGPRs: 288658 -> 289603 (+0.33%); split: -0.04%, +0.36%
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Qiang Yu <yuq825@gmail.com >
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8864
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22553 >
(cherry picked from commit 1a6095b36e
)
2023-04-26 17:37:24 +01:00
Daniel Schürmann
1ae2c1ae9c
radv/rt: fix total stack size computation
...
Fixes: 2649a1f272
('radv/rt: introduce and set rt_pipeline->stack_size ')
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22526 >
(cherry picked from commit b288ec803c
)
2023-04-26 17:37:24 +01:00
Mike Blumenkrantz
c3f69d784e
zink: fix non-db bindless texture buffers
...
the db members are only populated in db mode
fixes Dawn of War 3 crash on launch
Fixes: 99ba529fee
("zink: implement descriptor buffer handling of bindless texture")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22566 >
(cherry picked from commit 96a0b1e988
)
2023-04-26 17:37:24 +01:00
Mike Blumenkrantz
7830c29f6e
nir/lower_alpha_test: rzalloc state slots
...
this otherwise leads to uninitialized memory
cc: mesa-stable
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22558 >
(cherry picked from commit 24555f5462
)
2023-04-26 17:37:24 +01:00
Mike Blumenkrantz
c39e3319ca
zink: avoid recursion during msrtss blits from flushing clears
...
if an attachment other than the msrtss blit attachment has clears pending,
unbinding the other attachment will trigger a clear flush, which will then
recurse into the msrtss blit that's being triggered
instead, save/restore these clears around the msrtss blit since they
can be executed during the normal renderpass
(cherry picked from commit 82add9f2e9
)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22598 >
2023-04-26 17:37:24 +01:00
Mike Blumenkrantz
839320beaa
zink: skip msrtss replicate if the attachment will be full-cleared
...
this should be unnecessary and avoids a perf hit
(cherry picked from commit 8ea506e94b
)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22598 >
2023-04-26 17:37:24 +01:00
Mike Blumenkrantz
aac9dd69da
zink: handle 'blitting' flag better in msrtss replication
...
barriers are illegal while 'blitting' is set, so unset it temporarily
for the replication barriers and then also re-set the layouts after
(cherry picked from commit 1e7cb4642e
)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22598 >
2023-04-26 17:35:01 +01:00
Mike Blumenkrantz
9c24784b7c
zink: manually re-set framebuffer after msrtss replicate blit
...
with the new zsbuf elimination handling, the fb state calculated in
u_blitter's fb restore may be incorrect if the zsbuf has indeed been
eliminated, so ensure the right fb is stored to be reapplied so that
misrenders will be avoided
fixes some crashes/misrenders in webgl
(cherry picked from commit ec0860b401
)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22598 >
2023-04-26 17:34:41 +01:00
Eric Engestrom
475cc6a516
.pick_status.json: Update to 3017d01c9d
2023-04-26 17:34:04 +01:00
Eric Engestrom
d6d94ccb59
v3d: add flake spec@ext_framebuffer_blit@fbo-sys-sub-blit
...
https://gitlab.freedesktop.org/mesa/mesa/-/jobs/39905522
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22486 >
(cherry picked from commit 5b376664e7
)
2023-04-19 19:11:03 +01:00
Mike Blumenkrantz
fc2d749a10
iris: use util_framebuffer_get_num_samples when setting ps dispatch samples
...
pipe_framebuffer_state::samples may be zero, which is why this helper exists
cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22563 >
(cherry picked from commit 543b6ca7c4
)
2023-04-19 14:37:57 +01:00
Mike Blumenkrantz
bf988cdafa
zink: avoid zero-sized memcmp for descriptor layouts
...
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22559 >
(cherry picked from commit cbac02b7d3
)
2023-04-19 14:37:57 +01:00
Eric Engestrom
9d8fdeb296
vk/util: fix buggy usage of unreachable()
...
Cc: mesa-stable
Signed-off-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22529 >
(cherry picked from commit 5863bafbdc
)
2023-04-19 14:37:57 +01:00
Eric Engestrom
c90c223c98
pvr: fix buggy usage of unreachable()
...
Cc: mesa-stable
Signed-off-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22529 >
(cherry picked from commit 2f9520a5d0
)
2023-04-19 14:37:56 +01:00
Eric Engestrom
f2911b79e5
compiler: fix buggy usage of unreachable()
...
Cc: mesa-stable
Signed-off-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22529 >
(cherry picked from commit f5ed1c79ae
)
2023-04-19 14:37:56 +01:00
Eric Engestrom
0a0822e601
amd: fix buggy usage of unreachable()
...
Cc: mesa-stable
Signed-off-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22529 >
(cherry picked from commit 0a0e485421
)
2023-04-19 14:37:56 +01:00
Lionel Landwerlin
3eeb4bedfa
isl: fix a number of errors on storage format support on Gfx9/12.5
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Cc: mesa-stable
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22302 >
(cherry picked from commit d4f498a583
)
2023-04-19 14:37:56 +01:00
Tapani Pälli
0ffe4381b1
isl: disable mcs (and mcs+ccs) for color msaa on gfxver 125
...
Same/similar issues are seen on MTL platform as DG2 so disable for both.
Cc: mesa-stable
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Acked-by: Nanley Chery <nanley.g.chery@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22435 >
(cherry picked from commit d561bac6bb
)
2023-04-19 14:37:56 +01:00
Jesse Natalie
27404a8617
d3d12: Respect buffer offsets for sampler views
...
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22542 >
(cherry picked from commit 81595cc823
)
2023-04-19 14:37:56 +01:00
Lionel Landwerlin
846080db5d
isl: don't set inconsistent fields for depth when using stencil only
...
Since Gfx12+ 3DSTATE_STENCIL_BUFFER gained its own
Width/Depth/Format/etc... fields. So don't set those fields but leave
the address/pitch to 0.
Issue found on simulation.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Reviewed-by: Emma Anholt <emma@anholt.net >
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15637 >
(cherry picked from commit 3ca1fdc8b5
)
2023-04-19 14:37:56 +01:00
Patrick Lerda
e6eb4df338
lima: fix refcnt imbalance related to framebuffer
...
Indeed, the current framebuffer hardcoded cleanup
is not sufficient.
For instance, this issue is triggered with:
"piglit/bin/fbo-depthstencil clear default_fb -samples=2 -auto"
while setting GALLIUM_REFCNT_LOG=refcnt.log.
cc: mesa-stable
Signed-off-by: Patrick Lerda <patrick9876@free.fr >
Reviewed-by: Erico Nunes <nunes.erico@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22234 >
(cherry picked from commit 035b84f308
)
2023-04-19 14:37:56 +01:00
Nanley Chery
db5c94d170
iris/bufmgr: Handle flat_ccs for BO_ALLOC_ZEROED
...
We can't map the CCS memory region. So, rely on the kernel's zeroing of
new allocations. This is helpful when creating dmabufs that use
compression.
Cc: mesa-stable
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22487 >
(cherry picked from commit b2d7386631
)
2023-04-19 14:37:56 +01:00
Nanley Chery
808a95d24a
iris/bufmgr: Add and use zero_bo
...
This simplifies the next patch.
Cc: mesa-stable
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22487 >
(cherry picked from commit 215fbbb604
)
2023-04-19 14:37:56 +01:00
Nanley Chery
612e6e6038
iris: Allocate ZEROED BOs for shared resources
...
A port of cbee2d1102
("i965/screen: Allocate ZEROED BOs for images").
Cc: mesa-stable
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22487 >
(cherry picked from commit 5e5faa1194
)
2023-04-19 14:37:56 +01:00
José Roberto de Souza
599749570c
iris: Fix close of exported bos
...
On commit 910e659e31
("iris: Add function to close gem bos") I used
iris_bo_close() to close exported bos with the wrong drm_fd.
Causing piglit ext_image_dma_buf_import.ext_image_dma_buf_import*
tests to crash during tear-down.
So here adding iris_bufmgr_bo_close() that will close bos that belongs
to bufmgr->fd and changing the parameters of iris_bo_close() to close
the bo of given fd.
Fixes: 910e659e31
("iris: Add function to close gem bos")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8836
Signed-off-by: José Roberto de Souza <jose.souza@intel.com >
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22501 >
(cherry picked from commit 670d4a2f71
)
2023-04-19 14:37:55 +01:00
Lionel Landwerlin
e5df9a1d74
vulkan/overlay: deal with unknown pNext structures
...
To implement some of the features of the layer, we need to enable some
of the feature bits at device/command_buffer creation. To do so, we
need to edit some of the structures coming from the application. Most
of those are const so we need to clone them before edition.
This change disables some of the layer features if we run into a
situation where one of the structure we need to clone is unknown such
that we can't make a copy of it (since we don't know its size).
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7677
Cc: mesa-stable
Reviewed-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19897 >
(cherry picked from commit b30a75a195
)
2023-04-19 14:37:55 +01:00
Patrick Lerda
eb3df9b189
r600: fix refcnt imbalance related to evergreen_set_shader_images()
...
Indeed, the reference was overwritten.
For instance, this issue is triggered with:
"piglit/bin/shader_runner tests/spec/arb_shader_image_load_store/execution/write-to-rendered-image.shader_test -auto -fbo"
while setting GALLIUM_REFCNT_LOG=refcnt.log.
Fixes: a6b3792843
("r600: add core pieces of image support.")
Signed-off-by: Patrick Lerda <patrick9876@free.fr >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22394 >
(cherry picked from commit 4f42d3b843
)
2023-04-19 14:37:55 +01:00