Rob Clark
679e9093e1
freedreno: Extract out shared LRZFC layout helpers
...
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30304 >
2024-07-28 18:25:18 +00:00
Rob Clark
beb5577e12
freedreno: Extract out common UBWC helper
...
And re-use in gallium driver.
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30304 >
2024-07-28 18:25:18 +00:00
Rob Clark
5c34a5e59a
freedreno: Move GENX/CALLX magic to common
...
And re-use them in the gallium driver
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30304 >
2024-07-28 18:25:18 +00:00
Rob Clark
a6c9f152cc
freedreno/drm: Handle a7xx case
...
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30304 >
2024-07-28 18:25:18 +00:00
Rob Clark
31302ca107
tu/drm/virtio: Add missing a7xx case
...
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30304 >
2024-07-28 18:25:17 +00:00
Rob Clark
8ff33a756d
freedreno/cffdec: Fix a7xx CP_EVENT_WRITE decoding
...
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30304 >
2024-07-28 18:25:17 +00:00
Rob Clark
10eaf06e47
freedreno/a7xx: Fix GRAS_UNKNOWN_80F4 writes
...
If this is a 64b reg, we should write both halves.
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30304 >
2024-07-28 18:25:17 +00:00
Rob Clark
1a3f041cd8
freedreno/a6xx: Implement reg stomper support
...
Useful to track down issues related to uninitialized regs.
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30304 >
2024-07-28 18:25:17 +00:00
Mike Blumenkrantz
1242f3ed3a
glx: unhackify inferring zink from dri3
...
this still needs to be broken up more
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
8994165e92
glx: consolidate some LIBGL_KOPPER_DISABLE checks
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
725875cdea
glx: move drisw dri3 handling for zink out to glxInitialize
...
this is much cleaner
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
82955b48aa
glx: use base screen has_multibuffer for drisw
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
e9aec758c6
glx: delete all driver-specific display handling
...
this no longer does anything
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
886af985f8
glx: move dri2 loader extensions to static vtable
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
d723438e0d
glx: move dri2 init checks to separate function
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
5f55da01db
glx: tweak dri2 init ordering
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
f79eb4730c
glx: move dri2Hash to base glx_display
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
6be546764a
glx: rework/simplify drisw zink handling
...
this pushes the logic further down so it's all in one place
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
08e2985e57
glx: move driwindows_display::event_base to driwindows_context
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
2126a48149
glx: move has_multibuffer to base glx_screen struct
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
54e234ee2b
glx: delete dri3_display::loader_extensions
...
this is just a static value
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
4e8740370a
glx: rework __glXInitialize
...
* add an enum of bits for determining which display connections to try
* collect bits and then do all setup in AllocAndFetchScreenConfigs()
in theory no functional changes
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
8078a938f5
glx: simplify zink init variables
...
no functional changes
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
0d78711cfb
glx: delete __GLXDRIdisplay
...
this is useless now
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Mike Blumenkrantz
78abf0d145
glx: tabs -> spaces
...
this almost makes things readable but not quite
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375 >
2024-07-28 13:11:07 +00:00
Georg Lehmann
a7c8eab63d
spirv: ignore more function param decorations
...
These caused log spam during vk-cts.
Fixes: 9b55dcca54
("spirv: initial parsing of function parameter decorations")
Reviewed-by: Karol Herbst <kherbst@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30391 >
2024-07-28 12:20:49 +00:00
Eric Engestrom
c3b25dd357
ci: remove llvmpipe in the job that disables llvm
...
Instead of removing it from all the arm build jobs and only adding it
back on arm64.
Fixes: 35cb0c350e
("ci: replace gallium-drivers=swrast with gallium-drivers=llvmpipe,softpipe")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30366 >
2024-07-28 06:34:39 +00:00
Eric Engestrom
5d84e6cf26
meson: improve wording of "incompatible llvm options" error
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30366 >
2024-07-28 06:34:39 +00:00
Eric Engestrom
77b69cdbc3
meson: don't select the deprecated swrast
option ourselves
...
Users get the deprecation warning but didn't do anything, they left
things to `auto` and we pick the deprecated `swrast`? Hardly seems fair!
(I forgot to do this when I added the deprecation warning to ajax's commit)
Fixes: 010b2f9497
("gallium/meson: Deconflate swrast/softpipe/llvmpipe")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30366 >
2024-07-28 06:34:39 +00:00
Konstantin Seurer
a211a51a4a
lavapipe: Fix box sorting during ray traversal
...
Fixes performance a bit.
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30348 >
2024-07-27 20:38:13 +00:00
Konstantin Seurer
a6930640a9
llvmpipe: Improve PIPE_QUERY_PIPELINE_STATISTICS accuracy
...
arb_pipeline_statistics_query-frag expects the reported value to be
reasonably accurate (no 100% error).
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28227 >
2024-07-27 22:13:48 +02:00
Sai Teja Pottumuttu
e7ee69b24d
docs: Match README installation guide with meson.rst
...
Sync the build and install instructions in README.rst from
meson.rst
Signed-off-by: Sai Teja Pottumuttu <saiteja13427@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30294 >
2024-07-27 11:53:53 +00:00
Sai Teja Pottumuttu
324de97f48
docs: Add required dependencies to meson.rst
...
Add the required dependencies to build and install mesa main
on linux.
Signed-off-by: Sai Teja Pottumuttu <saiteja13427@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30294 >
2024-07-27 11:53:53 +00:00
X512
828c3cf002
egl/haiku: fix synchronization problems, add missing header
...
`st_context_invalidate_state` call is required when changing buffer attachments.
Including header with BBitmap class definition is required to properly
call C++ destructor.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30372 >
2024-07-27 00:59:29 +00:00
Ian Romanick
fdb6afe71e
intel/elk: Fix undefined left shift of negative value in elk_texture_offset
...
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30333 >
2024-07-26 17:18:08 -07:00
Ian Romanick
f3f4a057b9
intel/elk: Fix undefined left shift of large UW value in elk_imm_uw
...
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30333 >
2024-07-26 17:18:06 -07:00
Ian Romanick
0e5ac7d6b0
intel/elk: Fix undefined left shift of negative value in update_uip_jip
...
v2: Add comment and assertion to explain why the shift is
safe. Suggested by Caio.
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30333 >
2024-07-26 17:18:04 -07:00
Ian Romanick
c2dda8c8e7
intel/elk: Fix undefined shift by 64 of uint64_t in elk_compute_first_urb_slot_required
...
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30333 >
2024-07-26 17:18:01 -07:00
Ian Romanick
e6669467b8
intel/brw: Fix undefined left shift of negative value in brw_texture_offset
...
When -fsanitize=shift is used, many instances of the following are
produced:
src/intel/compiler/brw_fs_nir.cpp:114:30: runtime error: left shift of negative value -1
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30333 >
2024-07-26 17:17:59 -07:00
Ian Romanick
4f24c2707f
intel/brw: Fix undefined left shift of large UW value in brw_imm_uw
...
When -fsanitize=shift is used, 'ninja test' would fail in several
Intel assembly tests (mul.asm and and.asm) with:
src/intel/compiler/brw_reg.h:703:22: runtime error: left shift of 65532 by 16 places cannot be represented in type 'int'
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30333 >
2024-07-26 17:17:56 -07:00
Ian Romanick
abb7c012ff
intel/brw: Fix undefined left shift of negative value in update_uip_jip
...
When -fsanitize=shift is used, many instances of the following are
produced:
src/intel/compiler/brw_eu_compact.c:2244:50: runtime error: left shift of negative value -306
v2: Add comment and assertion to explain why the shift is
safe. Suggested by Caio.
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30333 >
2024-07-26 17:17:53 -07:00
Ian Romanick
228e049db6
intel/brw: Fix undefined shift by 64 of uint64_t in brw_compute_first_urb_slot_required
...
When -fsanitize=shift is used, many instances of the following are
produced:
src/intel/compiler/brw_compiler.h:1661:44: runtime error: shift exponent 64 is too large for 64-bit type 'long long unsigned int'
I think this is an actual bug. It should check the sentinel value, but
the sentinel value is 64. The shift by 64 is treated as a shift by
0. The varying 0 is explicitly filtered by the rest of the
if-test. How does this work?
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30333 >
2024-07-26 17:17:15 -07:00
Sushma Venkatesh Reddy
455deacbce
intel/brw: Fix DEBUG_OPTIMIZER
...
Due to recent regression, adding INTEL_DEBUG=optimizer is dumping
shader optimization pass details to console rather than to respective
files.
Thank you, Kenneth W Graunke for helping me figure this out.
Fixes: 17b7e49089
("intel/brw: Move out of fs_visitor and rename print instructions")
Signed-off-by: Sushma Venkatesh Reddy <sushma.venkatesh.reddy@intel.com >
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30389 >
2024-07-26 22:22:58 +00:00
José Roberto de Souza
eb5a3617e2
anv: Handle internal shader compilation failure
...
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Signed-off-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30380 >
2024-07-26 21:58:21 +00:00
José Roberto de Souza
196b3d7b5b
anv: Improve error message when pipeline creation fails during shader compilation
...
Due the lack of SIMD8 in Xe2 platforms we are not able to compile
a shader for dEQP-VK.protected_memory.stack.stacksize_1024 that fits
into scratch space.
So before this patch when such failure happened it would return
VK_ERROR_OUT_OF_HOST_MEMORY error.
So here when available include the compiler error string to better
inform what the actual failure.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Signed-off-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30380 >
2024-07-26 21:58:21 +00:00
Daniel Stone
0b16d7ebb9
dri: Allow INVALID for modifier-less drivers
...
If the user passes in DRM_FORMAT_MOD_INVALID as an acceptable modifier,
we can progress with implicit modifiers. Add this to a more
comprehensive special case along with linear to make sure that we can
still allocate when users pass in a modifier list to a driver which
doesn't support modifiers.
Signed-off-by: Daniel Stone <daniels@collabora.com >
Fixes: 361f362258
("dri: Unify createImage and createImageWithModifiers")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30383 >
2024-07-26 21:28:01 +00:00
Jianxun Zhang
349e7a2919
intel/common: Remove blank lines in intel_set_ps_dispatch_state() (xe2)
...
Backport-to: 24.2
Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com >
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com >
Reviewed-by: Francisco Jerez <currojerez@riseup.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29907 >
2024-07-26 21:02:24 +00:00
Jianxun Zhang
cb7f816fc4
intel/common: Ensure SIMD16 for fast-clear kernel (xe2)
...
Add a restriction on SIMD mode for fast-clear pixel
shader according to the Bspec.
Backport-to: 24.2
Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com >
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com >
Reviewed-by: Francisco Jerez <currojerez@riseup.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29907 >
2024-07-26 21:02:24 +00:00
José Roberto de Souza
5fdacb56ed
anv: Propagate protected information to blorp_batch_isl_copy_usage()
...
This fixes protected tests that uses vkCmdCopyBuffer().
Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Signed-off-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30369 >
2024-07-26 20:36:32 +00:00
José Roberto de Souza
79f95a3711
isl: Fix Xe2 protected mask
...
BSpec 71045 and 57023 still points that protected/encrypted bit is still
bit 0, bit 1 should not be set or undesired MOCS index could be set.
Fixes: 7be8bc2c97
("isl: Add mocs for xe2")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Signed-off-by: José Roberto de Souza <jose.souza@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30369 >
2024-07-26 20:36:32 +00:00