platform/upstream/mesa.git
2 years agogallivm: move to new pass manager to handle coroutines change.
Dave Airlie [Tue, 3 May 2022 01:42:24 +0000 (11:42 +1000)]
gallivm: move to new pass manager to handle coroutines change.

LLVM 15 ripped out the legacy coroutine passes. This means moving
to the new pass manager is the best option to move forward and is
long overdue.

I've tried to recreate the same set of passes in the new pass mgr
as the old, but I expect some tweaking may be needed to confirm this.

Acked-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16289>

2 years agov3d: allow TFU blitting for single layer textures
Juan A. Suarez Romero [Fri, 6 May 2022 11:56:17 +0000 (13:56 +0200)]
v3d: allow TFU blitting for single layer textures

TFU just handles 2D textures.

But for 2D array textures, cubemaps and 3D textures, if only one layer needs
to be blitted, then it is like a simple 2D texture, and thus we can also
use the TFU.

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16372>

2 years agoci: traces: virgl: reenable previously crashing Godot trace
David Heidelberg [Wed, 4 May 2022 15:23:43 +0000 (17:23 +0200)]
ci: traces: virgl: reenable previously crashing Godot trace

Visually verified, screenshot does look correctly.

Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16335>

2 years agosvga: Set lower_bitops for vpu9 screen.
Emma Anholt [Thu, 5 May 2022 00:16:47 +0000 (17:16 -0700)]
svga: Set lower_bitops for vpu9 screen.

Since these don't have native integers, nir_lower_io generating ishls
instead of amuls for uniform addressing math runs afoul of
nir_lower_int_to_float.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16339>

2 years agogallium/clover: pass -no-opaque-pointers to Clang
Thomas Debesse [Mon, 25 Apr 2022 07:01:01 +0000 (09:01 +0200)]
gallium/clover: pass -no-opaque-pointers to Clang

Clang opaque pointers have been enabled by default
but the Clover code currently expects them to be disabled.

Signed-off-by: Thomas Debesse <dev@illwieckz.net>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6342
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16129>

2 years agovulkan/wsi/x11: Ensure we have the required number of images for acquire.
Bas Nieuwenhuizen [Wed, 23 Feb 2022 01:27:46 +0000 (02:27 +0100)]
vulkan/wsi/x11: Ensure we have the required number of images for acquire.

For games that needs >1 at the same time the existing check wasn't enough.

Cc: mesa-stable
Reviewed-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15132>

2 years agowsi/x11: Don't leak xcb_get_geometry_reply_t.
Georg Lehmann [Sat, 7 May 2022 23:30:42 +0000 (01:30 +0200)]
wsi/x11: Don't leak xcb_get_geometry_reply_t.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6443
Fixes: 44a20baeb8b ("wsi/x11: Avoid using xcb_wait_for_special_event in FIFO modes")
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16384>

2 years agoradeonsi: Use nir_fold_16bit_image_load_store_conversions.
Georg Lehmann [Wed, 4 May 2022 10:42:00 +0000 (12:42 +0200)]
radeonsi: Use nir_fold_16bit_image_load_store_conversions.

Remove conversions using d16 image_load/image_store.

Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16319>

2 years agonir/lower_tex: Copy more fields in lower_tex_to_txd and friends
Icecream95 [Thu, 14 Apr 2022 01:30:39 +0000 (13:30 +1200)]
nir/lower_tex: Copy more fields in lower_tex_to_txd and friends

Fixes NIR validation errors for OpenMW on Panfrost.

Fixes: 1f97819fbe5 ("panfrost: Emulate GL_CLAMP on Bifrost")
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15939>

2 years agovenus: extend buffer cache to cover layering usage
Yiwei Zhang [Fri, 6 May 2022 19:30:01 +0000 (19:30 +0000)]
venus: extend buffer cache to cover layering usage

Layering clients, e.g. angle and zink, use wide sets of buffer usage
flags because they don't know what a resource will be used for in the
majority cases, which is on the other hand making it easier for layering
to optimize resource management.

This change adds a super-set usage to the buffer cache entries, that
will mostly ensure no cache-miss for non-sparsed buffer usages. Since
that involves usage bits from extensions, we'll mask out those disabled
ones upon querying but will use the static cache create info for
checking cache hit for code simplicity.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16379>

2 years agogallium/clover: LLVM setLangDefaults moved from clangFrontend to clangBasic
Thomas Debesse [Mon, 18 Apr 2022 02:21:02 +0000 (04:21 +0200)]
gallium/clover: LLVM setLangDefaults moved from clangFrontend to clangBasic

Signed-off-by: Thomas Debesse <dev@illwieckz.net>
Reviewed-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16002>

2 years agoanv: advertise rectangularLines only for Gen10+
Chia-I Wu [Thu, 17 Mar 2022 18:03:18 +0000 (11:03 -0700)]
anv: advertise rectangularLines only for Gen10+

We use the non-strict algorithm (with parallelograms) prior to Gen10 for
wide lines.  We can not advertise rectangularLines.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Fixes: f6e7de41d7b ("anv: Implement VK_EXT_line_rasterization")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15432>

2 years agollvmpipe: never infer early zs tests when fbfetch is active
Mike Blumenkrantz [Thu, 5 May 2022 13:55:28 +0000 (09:55 -0400)]
llvmpipe: never infer early zs tests when fbfetch is active

this breaks zs fbfetch

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16346>

2 years agonir/gather_info: flag fbfetch on subpass image loads
Mike Blumenkrantz [Thu, 5 May 2022 13:54:18 +0000 (09:54 -0400)]
nir/gather_info: flag fbfetch on subpass image loads

might not be able to determine which output is being read, but these
are definitely fbfetch uses (from lavapipe)

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16346>

2 years agoaco: split load_sbt_amd result
Rhys Perry [Fri, 25 Mar 2022 18:00:56 +0000 (18:00 +0000)]
aco: split load_sbt_amd result

fossil-db (Sienna Cichlid):
Totals from 11 (0.01% of 162293) affected shaders:
Instrs: 47857 -> 47738 (-0.25%)
CodeSize: 261556 -> 261080 (-0.18%)
Latency: 1176822 -> 1176245 (-0.05%)
InvThroughput: 784549 -> 784165 (-0.05%)
Copies: 5959 -> 5840 (-2.00%)

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16203>

2 years agoradv: use SMEM for a few load_global
Rhys Perry [Fri, 15 Apr 2022 12:30:41 +0000 (13:30 +0100)]
radv: use SMEM for a few load_global

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16203>

2 years agoradv: remove subtractions in address calculations
Rhys Perry [Fri, 15 Apr 2022 12:15:10 +0000 (13:15 +0100)]
radv: remove subtractions in address calculations

Additions by positive integers can more easily be combined into the
access.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16203>

2 years agoradv: allow LBVH on GFX6+
Rhys Perry [Fri, 15 Apr 2022 11:57:36 +0000 (12:57 +0100)]
radv: allow LBVH on GFX6+

Use integer atomics on GFX8/9.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16203>

2 years agoradv: add radv_has_shader_buffer_float_minmax
Rhys Perry [Thu, 5 May 2022 11:35:09 +0000 (12:35 +0100)]
radv: add radv_has_shader_buffer_float_minmax

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16203>

2 years agoaco/optimizer: re-combine and copy-propagate p_create_vector(p_split_vector)
Daniel Schürmann [Wed, 16 Mar 2022 14:14:29 +0000 (15:14 +0100)]
aco/optimizer: re-combine and copy-propagate p_create_vector(p_split_vector)

Totals from 309 (0.23% of 134913) affected shaders: (GFX10.3)
CodeSize: 1853812 -> 1857732 (+0.21%); split: -0.05%, +0.27%
Instrs: 340810 -> 341789 (+0.29%); split: -0.07%, +0.36%
Latency: 3301814 -> 3301774 (-0.00%); split: -0.02%, +0.02%
InvThroughput: 590473 -> 590914 (+0.07%); split: -0.00%, +0.08%
Copies: 28751 -> 29731 (+3.41%); split: -0.87%, +4.28%
PreSGPRs: 14010 -> 14028 (+0.13%); split: -0.01%, +0.14%

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15414>

2 years agoaco/ra: improve split_vector register assignment if the operand is not killed
Daniel Schürmann [Wed, 16 Mar 2022 16:25:35 +0000 (17:25 +0100)]
aco/ra: improve split_vector register assignment if the operand is not killed

This allows for more coalescing when lowering the copies.

Totals from 44801 (33.21% of 134913) affected shaders: (GFX10.3)
VGPRs: 1513264 -> 1513248 (-0.00%)
CodeSize: 113354240 -> 113172872 (-0.16%); split: -0.16%, +0.00%
Instrs: 21648793 -> 21603397 (-0.21%); split: -0.21%, +0.00%
Latency: 95762290 -> 95757403 (-0.01%); split: -0.01%, +0.00%
InvThroughput: 15427354 -> 15427341 (-0.00%); split: -0.00%, +0.00%
Copies: 2065330 -> 2019933 (-2.20%); split: -2.20%, +0.00%

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15414>

2 years agoaco: don't re-create vectors for load_barycentric_* intrinsics
Daniel Schürmann [Wed, 16 Mar 2022 14:49:05 +0000 (15:49 +0100)]
aco: don't re-create vectors for load_barycentric_* intrinsics

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15414>

2 years agozink: restore conditional ordering for query begin/end
Mike Blumenkrantz [Thu, 5 May 2022 13:08:33 +0000 (09:08 -0400)]
zink: restore conditional ordering for query begin/end

this is the case which (also) handles query[0] for primgen queries,
so it can't be an else case

Fixes: a9451f25995 ("zink: use VK_EXT_primitives_generated_query when available")

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16345>

2 years agoradv: emit fewer framebuffer registers
Mike Blumenkrantz [Thu, 10 Jun 2021 11:13:05 +0000 (07:13 -0400)]
radv: emit fewer framebuffer registers

only the changed cbuf index registers need to be updated, not all of them

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11299>

2 years agoutil/blitter: fix sampler restore with 0 saved samplers
Mike Blumenkrantz [Tue, 26 Apr 2022 12:32:54 +0000 (08:32 -0400)]
util/blitter: fix sampler restore with 0 saved samplers

in a sequence where a driver saves 0 sampler/views before calling
u_blitter, the previous state of having 0 sampler/views bound would
not be restored as expected, resulting in stale sampler/views which
could affect behavior before new sampler/views were bound

cc: mesa-stable

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16178>

2 years agointel: fix stall debug option
Lionel Landwerlin [Wed, 4 May 2022 23:37:27 +0000 (02:37 +0300)]
intel: fix stall debug option

Missing the parsing bit.

Fixes: 317512e0387a ("anv/intel: add a new debug flag for stalling after every draw/dispatch")
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16338>

2 years agofrontend/dri: allow swapped BGR->RGB channel order for MSAA color buffers
Marek Olšák [Sat, 2 Apr 2022 01:43:42 +0000 (21:43 -0400)]
frontend/dri: allow swapped BGR->RGB channel order for MSAA color buffers

This only applies to MSAA visuals. The MSAA channel order doesn't have to
match the visual, but some drivers don't support MSAA with BGR.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16327>

2 years agomesa: consider the sample count when choosing a texture format
Marek Olšák [Wed, 27 Apr 2022 11:35:48 +0000 (07:35 -0400)]
mesa: consider the sample count when choosing a texture format

The set of supported MSAA formats can be smaller than the set of supported
non-MSAA formats.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16326>

2 years agoglsl: Remove unused lower_variable_index_to_cond_assign.
Emma Anholt [Tue, 12 Apr 2022 17:46:42 +0000 (10:46 -0700)]
glsl: Remove unused lower_variable_index_to_cond_assign.

It's been replaced by nir_lower_indirect_derefs().

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agoglsl: Remove EmitNoLoops and the associated lower_jumps(lower_break=true) code.
Emma Anholt [Tue, 12 Apr 2022 05:15:46 +0000 (22:15 -0700)]
glsl: Remove EmitNoLoops and the associated lower_jumps(lower_break=true) code.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agocompiler/glsl: Remove the dead parts of build_program_resource_list().
Emma Anholt [Sat, 9 Apr 2022 00:54:24 +0000 (17:54 -0700)]
compiler/glsl: Remove the dead parts of build_program_resource_list().

These have all moved to NIR linking.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agomesa/st: Clean up a bit of st_prepare_vertex_program().
Emma Anholt [Fri, 8 Apr 2022 23:48:16 +0000 (16:48 -0700)]
mesa/st: Clean up a bit of st_prepare_vertex_program().

Now that the input attrib mapping is gone, this is simpler.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agoglsl: Drop the dead MOD_TO_FLOOR path.
Emma Anholt [Mon, 28 Mar 2022 22:54:31 +0000 (15:54 -0700)]
glsl: Drop the dead MOD_TO_FLOOR path.

It's now called lower_fmod in NIR.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agoglsl: Remove the unused lower_if_to_cond_assign.
Emma Anholt [Mon, 28 Mar 2022 22:42:40 +0000 (15:42 -0700)]
glsl: Remove the unused lower_if_to_cond_assign.

Now that everything goes through NIR, nir_opt_peephole_select has replaced
it.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agogallium: Remove now-unused shader caps.
Emma Anholt [Mon, 28 Mar 2022 22:37:33 +0000 (15:37 -0700)]
gallium: Remove now-unused shader caps.

The only interesting ones here were LOWER_IF_THRESHOLD (which previously
had connected to some lowering in GLSL that was broken in the face of side
effects), and FMA (which turned GLSL IR's fma() into TGSI_OPCODE_FMA
instead of MAD).

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agoglsl: Retire the non-NIR GLSL linking paths.
Emma Anholt [Thu, 24 Mar 2022 00:22:08 +0000 (17:22 -0700)]
glsl: Retire the non-NIR GLSL linking paths.

Now that we have only GLSL->NIR as a path in the frontend, we can rely on
the NIR linking support.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agomesa/st: Remove now unused TGSI paths from disk cache.
Emma Anholt [Tue, 7 Sep 2021 23:46:55 +0000 (16:46 -0700)]
mesa/st: Remove now unused TGSI paths from disk cache.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agogallium/tgsi: Remove tgsi_emulate.
Eric Anholt [Thu, 7 Jan 2021 21:43:00 +0000 (13:43 -0800)]
gallium/tgsi: Remove tgsi_emulate.

Now that the TGSI frontend paths in mesa/st are gone, this code is unused.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agomesa: Remove unused Mesa IR PROGRAM_* register files.
Eric Anholt [Wed, 6 Jan 2021 22:40:18 +0000 (14:40 -0800)]
mesa: Remove unused Mesa IR PROGRAM_* register files.

Now that glsl-to-tgsi is gone, a bunch of this is dead.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agoglsl: Remove UBO reference lowering.
Eric Anholt [Thu, 17 Dec 2020 18:22:18 +0000 (10:22 -0800)]
glsl: Remove UBO reference lowering.

All UBO-supporting drivers now go through the NIR path, which does a
better job of it.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agotgsi_scan: Remove unused input_array_last/output_array_last.
Eric Anholt [Fri, 11 Dec 2020 23:31:53 +0000 (15:31 -0800)]
tgsi_scan: Remove unused input_array_last/output_array_last.

Last use removed in "radeonsi: remove TGSI" this year.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agomesa/st: Remove TGSI-only shader lowering code.
Eric Anholt [Thu, 10 Dec 2020 19:45:39 +0000 (11:45 -0800)]
mesa/st: Remove TGSI-only shader lowering code.

These are no longer called.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agomesa/st: Drop the attrib remapping in st_prepare_vertex_program().
Emma Anholt [Fri, 8 Apr 2022 18:07:13 +0000 (11:07 -0700)]
mesa/st: Drop the attrib remapping in st_prepare_vertex_program().

This was only used in the GLSL-to-TGSI path, which is no longer.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agomesa/st: Remove TGSI shader program variant handling.
Emma Anholt [Fri, 8 Apr 2022 18:11:58 +0000 (11:11 -0700)]
mesa/st: Remove TGSI shader program variant handling.

We no longer have anything generating gl_programs with TGSI in them since
retiring GLSL-to-TGSI.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agomesa/st: Remove st_glsl_to_tgsi.
Emma Anholt [Fri, 8 Apr 2022 17:56:17 +0000 (10:56 -0700)]
mesa/st: Remove st_glsl_to_tgsi.

It is no longer called, and can be retired.

Fixes: #1924, #822, #6073

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agomesa/st: Always generate NIR from GLSL, and use nir_to_tgsi for TGSI drivers.
Eric Anholt [Thu, 10 Dec 2020 19:45:39 +0000 (11:45 -0800)]
mesa/st: Always generate NIR from GLSL, and use nir_to_tgsi for TGSI drivers.

The NIR path through the frontend is effectively the only one maintained
for a quite a while now.  We can see that effect with !15540, where the
TGSI generation path was regressed to assertion fail on real-world
shaders, and nobody noticed until I came along trying to test the
NIR-to-TGSI transition.

We already have a nir_to_tgsi() call for translating NIR representation
for ARB programs into TGSI before handing them off to the driver.  This
change makes that path get taken for GLSL programs as well.

This is the minimum change to get all the drivers on NIR from GLSL, to
give a simple commit to bisect too.  The dead code removal comes next.

Now every driver benefits from shared NIR optimizations for GLSL, and we
can start retiring GLSL optimizations.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agoci/iris: Add a bunch of APL and KBL flakes recently.
Emma Anholt [Thu, 5 May 2022 22:17:43 +0000 (15:17 -0700)]
ci/iris: Add a bunch of APL and KBL flakes recently.

I got hit by one of them trying to merge !8044.  Just update the list.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8044>

2 years agokopper: pass the current context to dri_flush
Mike Blumenkrantz [Thu, 5 May 2022 17:19:51 +0000 (13:19 -0400)]
kopper: pass the current context to dri_flush

passing the drawable's context leads to desync and crashing if the app
is using multiple threads and multiple contexts

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16351>

2 years agokopper: invalidate drawables when resizing textures in place
Mike Blumenkrantz [Thu, 5 May 2022 16:06:14 +0000 (12:06 -0400)]
kopper: invalidate drawables when resizing textures in place

this guarantees that swapchains shared between contexts will stay
in sync

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16351>

2 years agoaco: ensure that definitions fixed to operands have matching regclasses
Rhys Perry [Fri, 22 Apr 2022 15:46:21 +0000 (16:46 +0100)]
aco: ensure that definitions fixed to operands have matching regclasses

If the operand is not killed, the definition needs to be large enough so
that the new location for the operand does not intersect with the old
location.

Fixes with zink:
KHR-GL45.shader_image_load_store.basic-allTargets-atomicCS
KHR-GL45.shader_image_load_store.basic-allTargets-atomicGS
KHR-GL45.shader_image_load_store.basic-allTargets-atomicVS

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6276
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16106>

2 years agoci/iris: Demote APL deqp to manual-only for now.
Emma Anholt [Thu, 5 May 2022 16:40:37 +0000 (09:40 -0700)]
ci/iris: Demote APL deqp to manual-only for now.

it's been flaking with "2022-05-05 16:29:49.055151: [0m[31mERROR - Failure
getting run results: parsing results: Reading from dEQP: timed out waiting
for fd to be ready (See \"//results/c32.r1.log\")" and a pile of missings
since the brief "whoops, HW CI failed to listen to the test exit code"
regression.

The only ways I know of to hit this case would be:

1) The deqp binary abruptly wedges on its own.  This happens with NFS
failures sometimes, but the rest of the run went fine and we never got the
kernel complaining about NFS, so that seems unlikely.

2) The stderr pipe filled up before stdout was completed, and deqp got
wedged trying to output stderr (happens sometimes when you do like
NIR_DEBUG=print in your run).

Both of these seem unlikely, given that we've got a big .qpa file that
made it all the way to writing out test case durations at the end of the
run before abruptly terminating.  Why didn't we have at least some of the
test results parsed?

The next deqp-runner release we integrate will solve #2, and cleans up
these error paths a bunch, so I'm hoping we get more information soon.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16350>

2 years agopanfrost: Increase the maximum tiler heap size
Alyssa Rosenzweig [Wed, 4 May 2022 16:16:27 +0000 (12:16 -0400)]
panfrost: Increase the maximum tiler heap size

Required to avoid tiler heap out-of-memory condition on Valhall on tests
including:

dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawelements_combined_grid_1200x1200_drawcount_8

This test passes on Bifrost without the fix because varyings are only allocated
from the tiler heap on Valhall.

Minimal perf or memory usage impacted is expected, as even old versions of
panfrost.ko support growable memory.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16330>

2 years agodocs/features: flag VK_KHR_timeline_semaphore as implemented
Iago Toral Quiroga [Thu, 5 May 2022 08:18:06 +0000 (10:18 +0200)]
docs/features: flag VK_KHR_timeline_semaphore as implemented

We got this implemented for v3dv when Jason ported the submit code
to the common submit framework.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16344>

2 years agov3dv: trivially implement VK_KHR_separate_depth_stencil_layouts
Iago Toral Quiroga [Thu, 5 May 2022 07:54:38 +0000 (09:54 +0200)]
v3dv: trivially implement VK_KHR_separate_depth_stencil_layouts

We don't currently benefit from seeing barriers and layout
transitions that affect just the depth or stencil aspects,
so we don't expose this feature.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16344>

2 years agov3dv: implement VK_EXT_separate_stencil_usage
Iago Toral Quiroga [Thu, 5 May 2022 06:58:54 +0000 (08:58 +0200)]
v3dv: implement VK_EXT_separate_stencil_usage

We don't care about the depth/stencil usage other than to determine
if an image format is supported for that usage.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16344>

2 years agov3dv: check input attachment usage as sampled usage
Iago Toral Quiroga [Thu, 5 May 2022 06:44:45 +0000 (08:44 +0200)]
v3dv: check input attachment usage as sampled usage

Since we implement input attachments as textures we should check
support for input attachment usage the same way we check support
for sampled images.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16344>

2 years agopvr: Update pvrsrvkm to fw 1.17 .
Karmjit Mahil [Fri, 8 Apr 2022 10:50:40 +0000 (11:50 +0100)]
pvr: Update pvrsrvkm to fw 1.17 .

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16238>

2 years agov3dv: use wait stage for wait semaphores to decide about binning syncs
Iago Toral Quiroga [Wed, 4 May 2022 09:07:07 +0000 (11:07 +0200)]
v3dv: use wait stage for wait semaphores to decide about binning syncs

If the wait stage for a semaphore doesn't involve geometry stages we
don't need a binning sync.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16322>

2 years agov3dv: skip binning sync if binning shaders don't access external resources
Iago Toral Quiroga [Tue, 3 May 2022 07:05:19 +0000 (09:05 +0200)]
v3dv: skip binning sync if binning shaders don't access external resources

Until now we have been enabling binning sync if we found a barrier
involving geometry stages (a bcl barrier), however, if the actual
binning shaders involved with the job don't access any external
buffers or images there is no reason to sync at the binning stage.

In this patch we don't immediately consume the bcl barrier flag from
the command buffer state when we create a new job. Instead, we check
this state when we are about to emit a draw call by checking if the
shaders involved with binning may access external resources, such as
vertex buffers, UBOs, or textures. If none of the draw calls in the
job use binning shaders that access external resources then we never
enable binning sync for the job.

It is possible that a binning shader uses resources that are not
synchronized through a barrier though, so we keep track of the
access masks used with barriers for both buffers and images separately
to better identify if the binning shader is affected by the barrier.

If a serialized job never consumes the bcl barrier flag because none
of its draw calls ever required a bcl sync, then the flag will be
cleared when the job is finished.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16322>

2 years agov3dv: flag BCL barriers for all-graphics and all-commands stages
Iago Toral Quiroga [Tue, 3 May 2022 07:30:58 +0000 (09:30 +0200)]
v3dv: flag BCL barriers for all-graphics and all-commands stages

Since these also include geometry stages in the pipeline.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16322>

2 years agov3dv: drop default sampler states if not used
Iago Toral Quiroga [Mon, 2 May 2022 11:31:27 +0000 (13:31 +0200)]
v3dv: drop default sampler states if not used

If a shader doesn't use any samplers (including default sampler states),
make sure we drop them so other parts of the driver can recognize that
the program doesn't actually use any samplers at all.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16322>

2 years agoradv: disable instance packing to fix pipeline query stats
Samuel Pitoiset [Tue, 19 Apr 2022 11:46:12 +0000 (13:46 +0200)]
radv: disable instance packing to fix pipeline query stats

RDNA2 is affected by a hardware bug when instance packing is enabled
for adjacent primitive topologies and instance_count > 1, pipeline
stats generated by GE are incorrect. It needs to be applied for
indexed and non-indexed draws.

This is based on PAL waDisableInstancePacking.

This fixes KHR-GL46.pipeline_statistics_query_tests_ARB.* with Zink.

Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6257
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15877>

2 years agoci: Fix tests expectations
Guilherme Gallo [Wed, 4 May 2022 14:55:54 +0000 (11:55 -0300)]
ci: Fix tests expectations

For some days, the CI was bypassing LAVA and bare-metal jobs due to an
issue in the init-stage2.sh script. After the fix some tests
crashed/failed. This commit updates the expectations for them.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16325>

2 years agoci: Update trace after CI fix
Guilherme Gallo [Wed, 4 May 2022 15:02:59 +0000 (12:02 -0300)]
ci: Update trace after CI fix

For some days, the CI was bypassing LAVA and bare-metal jobs due to an
issue in the init-stage2.sh script. After the fix the neverball trace on
panfrost-t860 is producing a different image, due to a bugfix in
Mesa itself driver. This commit updates the neverball trace on that
device.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16325>

2 years agoci: Fix init-stage2 exit code
Guilherme Gallo [Wed, 4 May 2022 13:52:10 +0000 (10:52 -0300)]
ci: Fix init-stage2 exit code

After a LAVA job submitter rework, the init-stage2.sh was changed to be
compatible with new LAVA job definitions, but the result from the script
represented by `HWCI_TEST_SCRIPT` variable is obfuscated by the `set -e`
command. So when the test script fails, `set` will override the exit
code and the jobs will pass when they should fail.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16325>

2 years agodocs: Add sh256sum for mesa 20.0.3
Dylan Baker [Wed, 4 May 2022 22:51:13 +0000 (15:51 -0700)]
docs: Add sh256sum for mesa 20.0.3

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16336>

2 years agodocs: add release notes for 22.0.3
Dylan Baker [Wed, 4 May 2022 22:17:44 +0000 (15:17 -0700)]
docs: add release notes for 22.0.3

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16336>

2 years agodocs: update calendar for 22.1.0-rc4
Dylan Baker [Wed, 4 May 2022 22:54:23 +0000 (15:54 -0700)]
docs: update calendar for 22.1.0-rc4

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16336>

2 years agodocs: update calendar for 22.1.0-rc3
Dylan Baker [Wed, 4 May 2022 22:54:20 +0000 (15:54 -0700)]
docs: update calendar for 22.1.0-rc3

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16336>

2 years agodocs: Extend calendar entries for 22.1 by 1 releases.
Dylan Baker [Wed, 4 May 2022 22:54:01 +0000 (15:54 -0700)]
docs: Extend calendar entries for 22.1 by 1 releases.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16336>

2 years agodocs: update calendar and link releases notes for 22.0.3
Dylan Baker [Wed, 4 May 2022 22:53:22 +0000 (15:53 -0700)]
docs: update calendar and link releases notes for 22.0.3

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16336>

2 years agodocs: Extend calendar entries for 22.0 by 1 releases.
Dylan Baker [Wed, 4 May 2022 22:51:51 +0000 (15:51 -0700)]
docs: Extend calendar entries for 22.0 by 1 releases.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16336>

2 years agozink: Fix memory leak on error path.
Vinson Lee [Sat, 30 Apr 2022 05:57:02 +0000 (22:57 -0700)]
zink: Fix memory leak on error path.

Fix defect reported by Coverity Scan.

Resource leak (RESOURCE_LEAK)
leaked_storage: Variable sampler_view going out of scope leaks the storage it points to.

Fixes: 625457caafb ("zink: handle swapchain acquire failures more directly")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16258>

2 years agovulkan/wsi: Add signal_fence/semaphore_for_image helpers
Jason Ekstrand [Mon, 15 Mar 2021 17:04:56 +0000 (12:04 -0500)]
vulkan/wsi: Add signal_fence/semaphore_for_image helpers

These operations are about to get a bit more complex so let's add a
couple nice helpers to keep things clean.

Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333>

2 years agovulkan/wsi: Set the right stage flags for semaphore waits
Jason Ekstrand [Fri, 21 May 2021 20:31:06 +0000 (15:31 -0500)]
vulkan/wsi: Set the right stage flags for semaphore waits

This is currently technically broken for compute.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Cc: mesa-stable@lists.freedesktop.org
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333>

2 years agovulkan/wsi: Reset the image fence right before vkQueueSubmit
Jason Ekstrand [Tue, 3 Mar 2020 18:45:16 +0000 (12:45 -0600)]
vulkan/wsi: Reset the image fence right before vkQueueSubmit

Instead of resetting at the top of the loop, we create the fence in the
signaled state and then unconditionally reset it before vkQueueSubmit.
This gives us a bit more flexibility with how we handle the fence in the
case where the client provides zero semaphores.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333>

2 years agovulkan/wsi: Hang on to file descriptors
Jason Ekstrand [Mon, 2 Mar 2020 23:40:09 +0000 (17:40 -0600)]
vulkan/wsi: Hang on to file descriptors

Instead of closing the dma-buf file descriptors immediately after
handing them to the window system, hang on to them.  We want to be able
to use them for synchronization.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333>

2 years agovulkan/wsi: Only use a single fd per wsi_image
Jason Ekstrand [Mon, 2 Mar 2020 23:38:16 +0000 (17:38 -0600)]
vulkan/wsi: Only use a single fd per wsi_image

The only thing this was helping was X11 where the protocol requires that
we pass in an array of images.  We can move all the dup() code to the
X11 back-end and leave the others a bit cleaner.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333>

2 years agovulkan/wsi: Close file descriptors in wsi_destroy_image
Jason Ekstrand [Mon, 2 Mar 2020 23:16:33 +0000 (17:16 -0600)]
vulkan/wsi: Close file descriptors in wsi_destroy_image

Most of the time, this is a non-issue because the WSI back-end closes
them as part of handing them to the window-system and sets fds[*] to -1.
The one exception here was Wayland which was closing them but leaving
fds[*] pointing to bogus file descriptors.  Having wsi_destroy_image
close them makes clean-up easier and more reliable.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333>

2 years agogallium: refactor a channel loop in draw_llvm.c
Mihai Preda [Wed, 20 Apr 2022 11:30:30 +0000 (14:30 +0300)]
gallium: refactor a channel loop in draw_llvm.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: LLVM opaque pointers small changes
Mihai Preda [Mon, 2 May 2022 13:11:07 +0000 (16:11 +0300)]
gallivm: LLVM opaque pointers small changes

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_tgsi_aos.c
Mihai Preda [Mon, 2 May 2022 13:10:19 +0000 (16:10 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_tgsi_aos.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_tgsi_soa.c
Mihai Preda [Mon, 2 May 2022 13:09:40 +0000 (16:09 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_tgsi_soa.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_struct.c
Mihai Preda [Mon, 2 May 2022 13:08:16 +0000 (16:08 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_struct.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_sample_soa.c
Mihai Preda [Mon, 2 May 2022 13:06:06 +0000 (16:06 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_sample_soa.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_sample.c
Mihai Preda [Mon, 2 May 2022 13:04:44 +0000 (16:04 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_sample.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_nir_soa.c
Mihai Preda [Mon, 2 May 2022 13:03:36 +0000 (16:03 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_nir_soa.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_gather.c
Mihai Preda [Mon, 2 May 2022 13:01:52 +0000 (16:01 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_gather.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_format_s3tc.c
Mihai Preda [Mon, 2 May 2022 12:59:55 +0000 (15:59 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_format_s3tc.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_intr.c
Mihai Preda [Mon, 2 May 2022 12:56:33 +0000 (15:56 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_intr.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_flow.c
Mihai Preda [Mon, 2 May 2022 12:54:57 +0000 (15:54 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_flow.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_printf.c
Mihai Preda [Mon, 2 May 2022 12:53:10 +0000 (15:53 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_printf.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_coro.c
Mihai Preda [Mon, 2 May 2022 12:51:30 +0000 (15:51 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_coro.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_conv.c
Mihai Preda [Mon, 2 May 2022 12:44:19 +0000 (15:44 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_conv.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_format_aos.c
Mihai Preda [Mon, 2 May 2022 12:41:12 +0000 (15:41 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_format_aos.c

Also extract lp_build_const_func_pointer_from_type() in lp_bld_const.h
taking explicit function type.

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_assert.c
Mihai Preda [Mon, 2 May 2022 12:32:25 +0000 (15:32 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_assert.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallivm: use LLVM opaque pointers in lp_bld_arit.c
Mihai Preda [Mon, 2 May 2022 12:31:29 +0000 (15:31 +0300)]
gallivm: use LLVM opaque pointers in lp_bld_arit.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallium/llvmpipe: use LLVM opaque pointers in lp_bld_depth.c
Mihai Preda [Mon, 2 May 2022 12:28:22 +0000 (15:28 +0300)]
gallium/llvmpipe: use LLVM opaque pointers in lp_bld_depth.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallium/llvmpipe: use LLVM opaque pointers in lp_bld_interp.c
Mihai Preda [Mon, 2 May 2022 12:26:25 +0000 (15:26 +0300)]
gallium/llvmpipe: use LLVM opaque pointers in lp_bld_interp.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>

2 years agogallium: use LLVM opaque pointers in draw_llvm.c
Mihai Preda [Mon, 2 May 2022 12:20:01 +0000 (15:20 +0300)]
gallium: use LLVM opaque pointers in draw_llvm.c

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>