Jordan Justen
cb6feae0b5
intel/devinfo: Add has_local_mem
...
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5599 >
2021-06-24 16:14:38 +00:00
Jason Ekstrand
8dc3c91a5c
include/drm-uapi: bump headers
...
From drm-next at the following commit:
commit 2a7005c8a3982ba27fab237d85c27da446484e9c (HEAD)
Merge: 0666cba1f5b2b 47c65b3853f88
Author: Dave Airlie <airlied@redhat.com >
Date: Fri Jun 11 13:34:42 2021 +1000
Merge tag 'drm-intel-gt-next-2021-06-10' of...
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5599 >
2021-06-24 16:14:38 +00:00
Simon Zeni
2fe2eb1911
radv: Implement VK_EXT_acquire_drm_display
...
Signed-off-by: Simon Zeni <simon@bl4ckb0ne.ca >
Reviewed-by: Simon Ser <contact@emersion.fr >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11014 >
2021-06-24 15:48:38 +00:00
Simon Zeni
f9944899a7
vulkan/wsi: Implement VK_EXT_acquire_drm_display
...
Implements the two functions defined in the extension
VK_EXT_acquire_drm_display, vkAcquireDrmDisplayEXT and vkGetDrmDisplayEXT.
Signed-off-by: Simon Zeni <simon@bl4ckb0ne.ca >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Reviewed-by: Simon Ser <contact@emersion.fr >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11014 >
2021-06-24 15:48:38 +00:00
Simon Zeni
fdf22aad73
vulkan/wsi: add drm_fd param to wsi_display_get_connector
...
Modifies the signature on `wsi_display_get_connector` to retrieve the
connector of an arbitrary DRM FD instead of the one taken from the
wsi_display.
Signed-off-by: Simon Zeni <simon@bl4ckb0ne.ca >
Reviewed-by: Simon Ser <contact@emersion.fr >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11014 >
2021-06-24 15:48:38 +00:00
Jason Ekstrand
7fb70ee2d5
docs/isl: Improve the bit[6] swizzling section of the tiling chapter
...
Suggested-by: Luis Strano <luis.strano@intel.com >
Acked-by: Luis Strano <luis.strano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11479 >
2021-06-24 13:57:40 +00:00
Jason Ekstrand
b8030ab1ea
isl,docs: Add a chapter on AUX state tracking
...
We also update and improve the docs in isl.h which get pulled into this
new chapter.
Acked-by: Luis Strano <luis.strano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11479 >
2021-06-24 13:57:40 +00:00
Jason Ekstrand
94a52bc85c
isl,iris: Move the extra_aux_surf logic into iris
...
This gets rid of the awkward interface for isl_surf_get_ccs_surf where
we passed it two aux surfaces and it was supposed to fill out the second
one based on whether or not the first one already had stuff in it.
Instead, we now pass it three well-labled surfaces: surf,
hiz_or_mcs_surf, and ccs_surf which have obvious meanings. This does
mean that iris has to carry a bit of logic and we have to flip
parameters around in all the callers. But the resulting interface is
much cleaner.
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11479 >
2021-06-24 13:57:40 +00:00
Jason Ekstrand
37f76aab1c
isl: Take a hiz_or_mcs_surf in isl_surf_supports_ccs
...
Whether or not a surface supports CCS on Tigerlake and later is
dependent not only on the main surface but also on the MCS or HiZ
surface, if any. We were doing some of these checks in
isl_get_ccs_surf based on the extra_aux parameter but not as many as we
probably should. In particular, we were really only checking HiZ
conditions and nothing for MCS. It also meant that, in spite of the
symmetry in names, the checks in isl_surf_get_ccs_surf were more
complete than in isl_surf_supports_ccs.
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11479 >
2021-06-24 13:57:40 +00:00
Jason Ekstrand
2d2590a879
isl: Assert some iris invariants in isl_surf_get_ccs_surf
...
The only driver which calls isl_surf_get_ccs_surf with extra_aux != NULL
is iris and it always calls it with two aux surfaces and never calls it
for CCS twice. We can turn those checks into asserts.
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11479 >
2021-06-24 13:57:40 +00:00
Vinson Lee
6fe82e6c1e
asahi: Fix macOS macro.
...
Fixes: 26b19bda30 ("asahi: Add device abstraction")
Fixes: 55c0956fd0 ("asahi: Add (clean room) IOKit uABI header")
Signed-off-by: Vinson Lee <vlee@freedesktop.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11569 >
2021-06-24 13:49:40 +00:00
Erik Faye-Lund
9aff548ff4
libgl-gdi: add missing include
...
Without this, I get the following error if I try to compile Zink without
any other drivers:
src/gallium/targets/libgl-gdi/libgl_gdi.c(210): error C2037: left of
'flush_frontbuffer' specifies undefined struct/union 'pipe_screen'
Fixes: fdfe4a4d30 ("libgl-gdi: add zink support")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11536 >
2021-06-24 09:30:20 +00:00
Erik Faye-Lund
fa784acbdf
zink: remove some needless moltenvk details
...
This removes a macro that we don't need, and removes a comment about a
detail that we don't care about in that location.
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Acked-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11554 >
2021-06-24 10:47:00 +02:00
Erik Faye-Lund
ccb9f8670e
zink: do not store moltenvk functions in screen
...
These functions are only used once anyway, no need to store them and
make the rest of Zink care.
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Acked-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11554 >
2021-06-24 10:46:55 +02:00
Erik Faye-Lund
95cbb560cf
zink: remove unused moltenvk functions
...
These functions were added, but never used. Let's get rid of them.
Fixes: c2cb2dd3bc ("zink: Added support for MacOS MoltenVK APIs.")
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Acked-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11554 >
2021-06-24 10:46:52 +02:00
Erik Faye-Lund
7b220f8694
zink: unbreak moltenvk code
...
These functions don't exist in the Khronos XML, so we don't generate
dispatch-table entries for them. So let's not try to call them in that
way.
Fixes: 5574868103 ("zink: use the dispatch tables")
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Acked-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11554 >
2021-06-24 10:46:31 +02:00
Erik Faye-Lund
e979ecbd45
zink: remove unused function-pointers
...
We also forgot to remove these when we stoped using them, more stuff to
delete, yeah!
Fixes: 5574868103 ("zink: use the dispatch tables")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11554 >
2021-06-24 10:46:13 +02:00
Erik Faye-Lund
efa863990a
zink: drop unused macros
...
We stopped using these without removing them, let's tidy that bit up.
Fixes: 5574868103 ("zink: use the dispatch tables")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11554 >
2021-06-24 10:45:18 +02:00
Dave Airlie
d2114bf413
crocus: fix another printf specifier.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11570 >
2021-06-24 07:10:49 +00:00
Dave Airlie
78c979dc93
crocus/gfx6: always be dirtying gs attachments for xfb
...
This fixes hangs seen with xfb and the deqp test
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11567 >
2021-06-24 06:50:49 +00:00
Dave Airlie
7399d6028f
crocus: Avoid replacing backing storage for buffers with no contents
...
Ported 97e9de1795 from iris
We might get asked to pitch the storage on a buffer that already has
no meaningful contents. In this case, the existing buffer is as good
as a new one.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11567 >
2021-06-24 06:50:49 +00:00
Dave Airlie
0fa4b64f6c
crocus: dirty blend state more often.
...
The blend state depends on wm_prog_data dual_src and it also
depends on the cbuf formats in can_emit_logic_op.
Dirty it in the correct places.
Fixes:
dEQP-GLES3.functional.fbo.invalidate*
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11567 >
2021-06-24 06:50:49 +00:00
Dave Airlie
a74c16e5f8
crocus/gfx6: fix sampler view first level.
...
The gfx6 state needs to dirty sampler state so that BaseMipLevel
gets updated properly.
Fixes:
dEQP-GLES3.functional.texture.mipmap.cube.base_level.*
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11567 >
2021-06-24 06:50:49 +00:00
Dave Airlie
0acd202858
intel/genxml: fix gfx6 GS SVB_INDEX encoding
...
This seems to match what the docs + 965 traces say
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11567 >
2021-06-24 06:50:49 +00:00
Dave Airlie
c282a082be
crocus/query: poll the syncobj in the no wait situation
...
In the no wait, poll the syncobj and bail if it's hasn't signalled.
This fixes a bunch of deqp xfb tests on sandybridge
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11567 >
2021-06-24 06:50:49 +00:00
Adam Jackson
9ca6abd424
vl/dri3: Don't leak regions on the X server
...
I can't tell from a quick read whether this clip region is actually just
the bounding box so could be skipped entirely. But the old code never
destroyed it, which means we'd leak a couple hundred bytes on the X
server side for every SwapBuffers until the client dies of XID
exhaustion, which is somewhere north of 2GB for typical systems so you
may or may not just run out of memory first.
Create the region at swap time and stash it in the drawable state.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11461 >
2021-06-24 03:18:06 +00:00
Adam Jackson
7e9424d91b
loader/dri3: Don't churn through xfixes regions in SwapBuffers
...
Regions are not expensive objects on the server side, it's very slightly
cheaper to update an existing one than to create a new one, and we can
garbage collect them when the drawable is destroyed. Worse, XID reuse
bugs exist, so the more we can do to not churn through XIDs the better.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11461 >
2021-06-24 03:18:06 +00:00
Adam Jackson
34e4622983
loader/dri3: Properly initialize the XFIXES extension
...
The server starts off assuming the only XFIXES request the client might
known is FixesQueryVersion, and based on the version number the client
supplies it unlocks additional requests. If you forget to do this then
xcb_xfixes_create_region will throw BadRequest and you will be very
confused. libXfixes would hide this for you in extension setup but xcb
is not so forgiving.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11461 >
2021-06-24 03:18:06 +00:00
Marek Olšák
888b7ba338
radeonsi: optimize set_inlinable_constants when they don't change
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11509 >
2021-06-23 22:37:34 -04:00
Marek Olšák
86355b5984
ac/gpu_info: adjust the condition for use_late_alloc
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11509 >
2021-06-23 22:37:32 -04:00
Marek Olšák
ff42fd1fdf
radeonsi: don't use NGG culling on 1 RB chips
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11509 >
2021-06-23 22:37:31 -04:00
Marek Olšák
f7afcc3d11
radeonsi: remove incorrect comment about hangs in gfx10_ngg_gs_emit_epilogue
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11509 >
2021-06-23 22:37:29 -04:00
Marek Olšák
593f3b3a5a
radeonsi: if shader culling culls all vertices, cull the primitive exports too
...
This was overlooked. It benefits triangle strips the most due to
GS fast launch.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11509 >
2021-06-23 22:37:27 -04:00
Marek Olšák
defc7c92d9
radeonsi: document why VBO descriptors in user SGPRs are beneficial
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11509 >
2021-06-23 22:37:23 -04:00
Mike Blumenkrantz
f99f7c06e7
lavapipe: implement multidraw ext
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11533 >
2021-06-24 01:35:33 +00:00
Mike Blumenkrantz
be0e34450b
zink: use depth/stencil-only layouts for depth/stencil-only formats
...
just kidding, this is banned by spec
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11389 >
2021-06-24 01:19:07 +00:00
Timothy Arceri
d22cdcd33a
util: add work around for the game We Happy Few
...
This is another Unreal engine game that requires the
allow_glsl_cross_stage_interpolation_mismatch workaround.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4966
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11558 >
2021-06-23 23:44:33 +00:00
Emma Anholt
a067f54f3e
ci/i915g: Skip the piglit glx tests since we're not running X.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11559 >
2021-06-23 19:54:55 +00:00
Emma Anholt
1ccb8ab801
i915g: Finish out blend factor overrides for both RGBx and A8.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11559 >
2021-06-23 19:54:55 +00:00
Emma Anholt
2683c7bf9a
i915g: Fix bad naming of depth texture formats.
...
Now matches classic's i915_reg.h and the spec.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11559 >
2021-06-23 19:54:55 +00:00
Connor Abbott
078030973b
ir3/ra: Fix corner case in collect handling
...
I ran into this when accidentally changing the scheduling order in the
hl2 trace.
Fixes: 0ffcb19 ("ir3: Rewrite register allocation")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11469 >
2021-06-23 17:20:29 +00:00
Connor Abbott
3dc8c59858
ir3: Remove IR3_REG_DEST
...
This was needed because code iterating the regs array needed to know
what was a destination and what wasn't, but now we have separate srcs
and dsts arrays so it's not needed.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11469 >
2021-06-23 17:20:29 +00:00
Connor Abbott
def96adaee
ir3: Remove regs array
...
Now that everything is converted over, switch to separate src/dst
arrays.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11469 >
2021-06-23 17:20:29 +00:00
Connor Abbott
57aeef5c13
ir3/frontend: Switch to srcs/dsts arrays
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11469 >
2021-06-23 17:20:29 +00:00
Connor Abbott
5785abb9ed
ir3/opts: Switch to srcs/dsts arrays
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11469 >
2021-06-23 17:20:29 +00:00
Connor Abbott
58fb0a01e1
ir3/validate: Switch to srcs/dsts arrays
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11469 >
2021-06-23 17:20:29 +00:00
Connor Abbott
050ec77d1b
ir3/print: Switch to srcs/dsts arrays
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11469 >
2021-06-23 17:20:29 +00:00
Connor Abbott
1b4990eea6
ir3/legalize: Switch to srcs/dsts arrays
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11469 >
2021-06-23 17:20:29 +00:00
Connor Abbott
abebc1f53f
ir3/array_to_ssa: Switch to srcs/dsts arrays
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11469 >
2021-06-23 17:20:29 +00:00
Connor Abbott
dd13081e03
ir3/parser: Switch to srcs/dsts arrays
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11469 >
2021-06-23 17:20:29 +00:00