Samuel Pitoiset
7de50e4c6c
radv: keep track of SPI_SHADER_COL_FORMAT for PS epilogs
...
To emit the related register.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20201 >
2023-01-10 09:55:29 +00:00
Samuel Pitoiset
c9f30c4aa0
radv: enable the PS epilogs cache when some ds3 states are enabled
...
These dynamic states need to compile PS epilogs on-demand.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20201 >
2023-01-10 09:55:29 +00:00
Samuel Pitoiset
75b0d6de04
radv: add support for a PS epilogs cache in the device
...
Similar to VS prologs.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20201 >
2023-01-10 09:55:29 +00:00
Eric Engestrom
c0f95913a0
ci/rpi4: add a couple of tests as flaky
...
Acked-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20591 >
2023-01-10 09:03:28 +00:00
Eric Engestrom
7931b4026f
ci/rpi3: add another test variant (draw-copypixels-sync) as flaky
...
Acked-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20591 >
2023-01-10 09:03:28 +00:00
Erik Faye-Lund
28d6caad60
gallium/draw: assert shader-stage
...
Nobody calls this for the wrong shader-stage. Let's turn that check into
an assert instead.
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20096 >
2023-01-10 08:22:17 +00:00
Erik Faye-Lund
7c1b9ee6b7
gallium/draw: use nir_shader_instructions_pass for nir_lower_aaline_fs
...
This just cuts away some needless boilerplate code.
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20096 >
2023-01-10 08:22:17 +00:00
Samuel Pitoiset
3897a233fb
radv: add a new dirty flag for the RB+ state
...
With PS epilogs on-demand, the non-compacted color format field won't
come from the pipeline and it seems easier to introduce a new dirty
flag for re-emitting this state.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18552 >
2023-01-10 07:59:33 +00:00
Yiwei Zhang
f1e06b46a9
lvp: avoid redundant sampler views and image views
...
Align the sampler view creation condition with the image and buffer
creation usage which maps to PIPE_BIND_SAMPLER_VIEW, which fixes the spam
of "Illegal sampler view creation without bind flag". Also fix the
PIPE_BIND_SHADER_IMAGE assignment for image usage bits and avoid setting
the image view struct if without PIPE_BIND_SHADER_IMAGE.
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20580 >
2023-01-10 05:49:34 +00:00
Mike Blumenkrantz
f18827e015
zink: stop using VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT
...
this used to be fine back when there was only one thread doing cache management,
but now the cache is used by precompile threads too, so let the driver do sync
fixes #7660
Fixes: 41ffb15de5
("zink: implement async gfx precompile")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20519 >
2023-01-10 05:33:10 +00:00
Alyssa Rosenzweig
2e9ac9278c
agx: Remove obsolete comment
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20559 >
2023-01-10 05:19:25 +00:00
Alyssa Rosenzweig
90dea84ef6
agx: Remove dead arg
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20559 >
2023-01-10 05:19:25 +00:00
Alyssa Rosenzweig
17d1559036
agx: Use i0/i1 variables
...
Now that we've defined them.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20559 >
2023-01-10 05:19:25 +00:00
Alyssa Rosenzweig
1e61f13ffd
agx: Get rid of emit_alu_bool
...
Deduplicate lots of cases. Splitting this out was silly, bools aren't that
special.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20559 >
2023-01-10 05:19:25 +00:00
Alyssa Rosenzweig
5b25ee6cc7
agx: Use agx_subdivide_to for umul_high
...
Helpers!
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20559 >
2023-01-10 05:19:25 +00:00
Alyssa Rosenzweig
f6c5b2a5a3
agx: Remove dead code
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20559 >
2023-01-10 05:19:25 +00:00
Dmitry Osipenko
dd571ede85
docs/envvars: Document MESA_DISK_CACHE_COMBINE_RW_WITH_RO_FOZ
...
Add documentation for the MESA_DISK_CACHE_COMBINE_RW_WITH_RO_FOZ environment
variable.
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Reviewed-by: Juston Li <justonli@google.com >
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20595 >
2023-01-10 04:53:44 +00:00
Dmitry Osipenko
6c1c5d9ef0
util/disk_cache: Fix rw cache lookup when using combined ro+rw caches
...
When combining of ro+rw caches is enabled, at first the ro cache should be
looked up and if data isn't found there then rw cache should be checked.
The rw cache checking got lost by accident after the code rebase and there
was no unit test covering this condition. Fix the rw cache looking up and
add the unit test case.
Fixes: 32fe60e8c4
("util/disk_cache: Support combined foz ro and non-foz rw caches")
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Reviewed-by: Juston Li <justonli@google.com >
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20595 >
2023-01-10 04:53:44 +00:00
Jesse Natalie
8b79e6fb5e
dzn: No need to add another bind flag for clears if one is already present
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20400 >
2023-01-10 04:25:26 +00:00
Jesse Natalie
c59141d3c2
dzn: Lower tg4 offsets
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20400 >
2023-01-10 04:25:26 +00:00
Jesse Natalie
9a991cc52e
dzn: Implement point coord
...
Since we don't support wide points, this isn't a useful feature, but the CTS
requires a particular point coord value for the single rasterized pixel, based
on where the original point coord fell within the pixel. Since we're not doing
a quad, we don't get free interpolation like the GL driver does, so split the
logic between vertex (transform point center into screen space) and pixel
(compute delta between current pixel/sample and point center).
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20400 >
2023-01-10 04:25:26 +00:00
Jesse Natalie
03ce60ec7e
dzn: Lower fragcoord wtrans
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20400 >
2023-01-10 04:25:26 +00:00
Jesse Natalie
e8b12006bb
dzn: Use the right variable for heap slots when prepping resolves
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20400 >
2023-01-10 04:25:26 +00:00
Jesse Natalie
22b8e0c74c
microsoft/compiler: Set the advanced texture ops flag correctly
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20400 >
2023-01-10 04:25:26 +00:00
Jesse Natalie
a84208ee4d
microsoft/compiler: Fill out and sort the shader/module flags
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20400 >
2023-01-10 04:25:26 +00:00
Jesse Natalie
beeeb74a4c
microsoft/compiler: For Vulkan, centroid should be ignored on position
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20400 >
2023-01-10 04:25:26 +00:00
Jesse Natalie
d3cae18cb5
microsoft/compiler: For Vulkan, when shading at sample rate, pos is sample pos
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20400 >
2023-01-10 04:25:26 +00:00
Jesse Natalie
b0f3a387c9
nir_lower_fragcoord_wtrans: Support Vulkan shaders
...
In Vulkan shaders, you might not have all derefs pointing to a variable
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20400 >
2023-01-10 04:25:26 +00:00
Timothy Arceri
ac5af6c06d
util/driconf: add Dune: Spice Wars workaround
...
As per the bug report the game does not correctly handle a uniform
index of -1 being returned for the unused array element, which
results in rendering issues. So here we skip the uniform array
resizing optimisation.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6397
Cc: mesa-stable
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20579 >
2023-01-10 03:53:19 +00:00
Giancarlo Devich
e986d8c337
d3d12: Update hard-coded heap sizes and batch limit
...
Increasing the heap sizes and active batch count reduces flushing
churn when rendering runs out of descriptors.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20589 >
2023-01-10 03:22:26 +00:00
Daniel Stone
9c1fbc076a
Return 'Mesa' for GL_VENDOR for community drivers
...
Rather than a grab-bag of random values, return 'Mesa' as the GL_VENDOR
string for all community-supported drivers.
Drivers which are primarily developed/maintained by the hardware vendor
retain that vendor's name as the GL_VENDOR string.
Signed-off-by: Daniel Stone <daniels@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16064 >
2023-01-10 01:50:33 +00:00
WebsterEndymion
7d9eb64990
zink: fix the stencil write
...
Stencil writing also needs to be considered when setting the flag renderpass
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20245 >
2023-01-10 01:30:02 +00:00
WebsterEndymion
53c4ce495c
zink: add a condition to needs_write_s
...
Previously missing check on the stencil write, condition added to needs_write_s using util_writes_stencil
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20245 >
2023-01-10 01:30:02 +00:00
Mike Blumenkrantz
847d198c1f
lavapipe: add some safety asserts when beginning rendering
...
if the render area exceeds the attachment size, this is not only illegal,
it will crash later
cc: mesa-stable
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20583 >
2023-01-10 01:12:28 +00:00
Mike Blumenkrantz
b20df1abeb
zink: add a fs base key, fix optimal fs key packing
...
the optimal fs key gets at most 16 bits, so it's crucial to only use
the ones that are needed in order to conserve bits for things needed
by all drivers
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20585 >
2023-01-10 00:51:24 +00:00
Mike Blumenkrantz
8772651aa0
zink: use optimal key for pipeline library hash
...
this doesn't really change anything other than making the set collide less
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20585 >
2023-01-10 00:51:24 +00:00
Mike Blumenkrantz
19332b13e1
zink: unify some shadow tex code in match_tex_dests_instr()
...
no functional changes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20585 >
2023-01-10 00:51:24 +00:00
Mike Blumenkrantz
e6c6a59f56
zink: fix some weird indentation in zink_set_sampler_views
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20585 >
2023-01-10 00:51:24 +00:00
Mike Blumenkrantz
90cd9cd3d1
zink: simplify some depth texturing spv
...
the special-casing here is no longer necessary since multi-component
depth sample ops have already been rewritten by this point
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20585 >
2023-01-10 00:51:24 +00:00
Mike Blumenkrantz
b23877e7fa
zink: put line emulation stuff behind optimal_keys check in draw
...
these parts of the shader key can't be accessed in optimal_keys mode
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20585 >
2023-01-10 00:51:24 +00:00
Mike Blumenkrantz
c6f06901b7
zink: only flag modules_changed in optimal path if a change has occurred
...
this should save some cycles when a recalc is a no-op
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20585 >
2023-01-10 00:51:24 +00:00
Mike Blumenkrantz
b295accf07
zink: delete dead code
...
update_gfx_program_optimal() is the real version of this
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20585 >
2023-01-10 00:51:24 +00:00
Eric Engestrom
bc801c0808
meson/zink: use vk_api_xml variable instead of re-constructing the file path
...
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20568 >
2023-01-10 00:31:11 +00:00
Alyssa Rosenzweig
615c3a078b
asahi: Fix segfault with null drawbuffer
...
Fixes fbo-drawbuffers-none piglit.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20569 >
2023-01-10 00:17:12 +00:00
Alyssa Rosenzweig
9b67afb55d
agx: Fix missing #include
...
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20569 >
2023-01-10 00:17:12 +00:00
Alyssa Rosenzweig
b4d8be165b
asahi: Implement ARB_texture_mirror_clamp_to_edge
...
Guessing the enum value, passes texwrap piglit.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20560 >
2023-01-09 23:58:52 +00:00
Alyssa Rosenzweig
0e2d786579
asahi: Implement GL_CLAMP natively
...
Turns out there's a hardware mode for this. Apple's GL driver uses this.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20560 >
2023-01-09 23:58:52 +00:00
Lionel Landwerlin
8679956e63
ci/zink+anv: remove dEQP-GLES31.functional.layout_binding.ubo.*
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20555 >
2023-01-09 23:00:24 +00:00
Lionel Landwerlin
2d627f28c8
anv: use the null surface with unused push descriptor binding table entries
...
Some binding table entries have been identify as unused in the shaders
by the push constant analysis pass. We can just put the null entry in
there.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: b49b18f0b7
("anv: reduce BT emissions & surface state writes with push descriptors")
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20555 >
2023-01-09 23:00:24 +00:00
Lionel Landwerlin
bbfca4eb92
anv: return properly typed value for no ubo promoted
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Fixes: ff91c5ca42
("anv: add analysis for push descriptor uses and store it in shader cache")
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20555 >
2023-01-09 23:00:24 +00:00