platform/upstream/mesa.git
3 years agozink: use VkSubresourceLayout::depthPitch as layer_stride when mapping 3D imgs
Mike Blumenkrantz [Wed, 31 Mar 2021 19:35:11 +0000 (15:35 -0400)]
zink: use VkSubresourceLayout::depthPitch as layer_stride when mapping 3D imgs

this is not only more correct according to vk spec, it avoids having a 0-sized
layer_stride, which totally breaks the transfer map

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

3 years agozink: be more explicit about blit layer/depth usage
Mike Blumenkrantz [Wed, 31 Mar 2021 19:31:30 +0000 (15:31 -0400)]
zink: be more explicit about blit layer/depth usage

same as for resource copying, ensure that it's very clear we're abiding
by vk spec for array vs 3d usage

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

3 years agoanv: Implement VK_EXT_conservative_rasterization
Jason Ekstrand [Wed, 31 Mar 2021 22:45:42 +0000 (17:45 -0500)]
anv: Implement VK_EXT_conservative_rasterization

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4480
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9960>

3 years agozink: enforce device lost status
Mike Blumenkrantz [Wed, 10 Feb 2021 23:40:55 +0000 (18:40 -0500)]
zink: enforce device lost status

many apps don't request device-lost notification, so just calling the reset
callback isn't enough; once the device has been lost, no more cmdbufs should
be submitted and the queue should not be waited on

Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9963>

3 years agozink: optimize batch states for timeline use
Mike Blumenkrantz [Sat, 23 Jan 2021 23:09:11 +0000 (18:09 -0500)]
zink: optimize batch states for timeline use

finishing a timeline wait guarantees that a given fence has completed,
meaning the accompanying batch static is implicitly available for use

Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9963>

3 years agozink: add timeline semaphore fastpath for checking/triggering batch completion
Mike Blumenkrantz [Tue, 29 Dec 2020 18:28:51 +0000 (13:28 -0500)]
zink: add timeline semaphore fastpath for checking/triggering batch completion

we can avoid locking to access batch states in these cases by just using a semaphore
to fast-forward the gpu to the batch we need completed

Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9963>

3 years agozink: hook up timeline semaphore signalling during batch submission
Mike Blumenkrantz [Fri, 12 Feb 2021 19:15:27 +0000 (14:15 -0500)]
zink: hook up timeline semaphore signalling during batch submission

just basic parts, no waiting on semaphores yet

Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9963>

3 years agozink: handle expired deferred fences more reasonably
Mike Blumenkrantz [Tue, 16 Mar 2021 19:21:16 +0000 (15:21 -0400)]
zink: handle expired deferred fences more reasonably

now that there's some tracking for the last-finished batch id, this can
be used to detect when an application holds onto a sync object for way too long,
to the point that the sync object has expired so far into the past that we
no longer have any record of it existing

fixes things like unigine superposition

Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9963>

3 years agozink: track last completed batch id to optimize checking states
Mike Blumenkrantz [Tue, 29 Dec 2020 17:10:08 +0000 (12:10 -0500)]
zink: track last completed batch id to optimize checking states

Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9963>

3 years agozink: add batch tracking id for program struct
Mike Blumenkrantz [Tue, 12 Jan 2021 22:05:42 +0000 (17:05 -0500)]
zink: add batch tracking id for program struct

this reduces overhead of batch tracking

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9967>

3 years agozink: add set_context_param hook
Mike Blumenkrantz [Thu, 28 Jan 2021 15:15:45 +0000 (10:15 -0500)]
zink: add set_context_param hook

for handling PIPE_CONTEXT_PARAM_PIN_THREADS_TO_L3_CACHE

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9970>

3 years agozink: handle PIPE_MAP_DONTBLOCK for buffer read maps
Mike Blumenkrantz [Fri, 18 Dec 2020 17:06:12 +0000 (12:06 -0500)]
zink: handle PIPE_MAP_DONTBLOCK for buffer read maps

this is mostly used by queries

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

3 years agonir/gather_info: implement partial masking of struct and compact I/O
Rhys Perry [Wed, 6 Jan 2021 15:24:26 +0000 (15:24 +0000)]
nir/gather_info: implement partial masking of struct and compact I/O

fossil-db (Sienna):
Totals from 138 (0.10% of 138791) affected shaders:
CodeSize: 504060 -> 482136 (-4.35%)
Instrs: 97318 -> 94518 (-2.88%)
Cycles: 389272 -> 378072 (-2.88%)
VMEM: 14397 -> 14614 (+1.51%); split: +1.76%, -0.25%
SMEM: 9088 -> 9024 (-0.70%)
VClause: 2915 -> 2430 (-16.64%)
SClause: 1790 -> 1791 (+0.06%)
PreVGPRs: 5013 -> 4998 (-0.30%)

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8364>

3 years agolavapipe: fix initialization of pipe_stream_output with unwritten outputs
Rhys Perry [Thu, 4 Feb 2021 14:10:59 +0000 (14:10 +0000)]
lavapipe: fix initialization of pipe_stream_output with unwritten outputs

nir_assign_io_var_locations() does not use outputs_written when assigning
driver locations. Use driver_location to avoid incorrectly guessing what
locations it assigned.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8364>

3 years agogitlab: rename RADV bug report template
Tony Wasserka [Tue, 30 Mar 2021 15:17:27 +0000 (17:17 +0200)]
gitlab: rename RADV bug report template

Acked-by: Daniel Schürmann <daniel@schuermann.dev>
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9923>

3 years agodocs: no-op'd -> disabled
Erik Faye-Lund [Wed, 3 Feb 2021 12:06:51 +0000 (13:06 +0100)]
docs: no-op'd -> disabled

"Disabled" is a common English word, that perfectly covers this usage.
So let's use that instead of this non-dictionary word.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9947>

3 years agodocs: spell out freedesktop.org
Erik Faye-Lund [Wed, 3 Feb 2021 13:22:06 +0000 (14:22 +0100)]
docs: spell out freedesktop.org

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9947>

3 years agodocs: spell out environment
Erik Faye-Lund [Wed, 3 Feb 2021 12:14:34 +0000 (13:14 +0100)]
docs: spell out environment

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9947>

3 years agodocs: spell out development
Erik Faye-Lund [Wed, 3 Feb 2021 11:14:47 +0000 (12:14 +0100)]
docs: spell out development

The "-devel"-suffix is only helpful to RedHat users. Debian based
distros use "-dev" instead. But let's get out of the distro-specific
business, and instead just spell out "development", as this applies
regardless of naming-scheme.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9947>

3 years agodocs: spell out full name of gitlab instance
Erik Faye-Lund [Mon, 28 Sep 2020 13:05:15 +0000 (15:05 +0200)]
docs: spell out full name of gitlab instance

While we're at it, quote it so it's clear that it's something special.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9947>

3 years agodocs: fix rst-quoting issues in release-notes
Erik Faye-Lund [Fri, 19 Mar 2021 12:46:26 +0000 (13:46 +0100)]
docs: fix rst-quoting issues in release-notes

The first issue is benign, but the other two create rogue, invalid
links.

Fixes: ca79b041cbf ("docs: add release notes for 21.0.0")
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9710>

3 years agodocs: fix invalid rst
Erik Faye-Lund [Fri, 19 Mar 2021 12:44:38 +0000 (13:44 +0100)]
docs: fix invalid rst

We need a single empty line between the code-block state and the text
in the block, otherwise the rST is invalid and the entire block will be
dropped, as is currently the case on the website.

While we're at it, remove some needless colons from these code-blocks as
well. They're not needed, and we usually don't have these in the docs.

Fixes: a2a8c6a36c1 ("docs: Add some documentation of game GL buffer object mapping behavior.")
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9710>

3 years agointel/fs: implement another copy propagation restriction
Lionel Landwerlin [Tue, 23 Mar 2021 14:37:40 +0000 (16:37 +0200)]
intel/fs: implement another copy propagation restriction

We are missing an additional restriction on CHV & upcoming Xe-Hp.

v2: Quote BSW PRMs (Curro)
    Check source is not a scalar (Curro)
    Fix comment (Marcin)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9929>

3 years agoiris: clamp PointWidth in 3DSTATE_SF like i965 does
Tapani Pälli [Tue, 30 Mar 2021 13:57:49 +0000 (16:57 +0300)]
iris: clamp PointWidth in 3DSTATE_SF like i965 does

Values match how MinimumPointWidth, MaximumPointWidth is setup. This
fixes assert hit in debug build when packing the struct with too large
value for genxml.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9942>

3 years agoRemove leftover dead code.
Vinson Lee [Mon, 29 Mar 2021 03:34:41 +0000 (20:34 -0700)]
Remove leftover dead code.

Fix defect reported by Coverity Scan.

Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement: return;.

Fixes: bdf93f4e3b3 ("v3dv/cmd_buffer: return early for draw commands if there is nothing to draw")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9890>

3 years agoglsl: enforce restrictions on builtin functions moved to compat
Timothy Arceri [Mon, 22 Mar 2021 06:43:10 +0000 (17:43 +1100)]
glsl: enforce restrictions on builtin functions moved to compat

Section 8.9.4 (Compatibility Profile Texture Functions) of the
GLSL 4.20 spec outlines a number of builtin texture functions that
have been moved to compatibility shaders.

This change enforces those restrictions. Note we don't worry about
enforcing restrictions on the EXT_gpu_shader4 extensions of these
functions because EXT_gpu_shader4 should only be enabled for compat
already.

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

3 years agozink: Only set the needed number of scissors.
Bas Nieuwenhuizen [Wed, 20 Jan 2021 20:26:30 +0000 (21:26 +0100)]
zink: Only set the needed number of scissors.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9968>

3 years agozink: Remove initialization of some arrays
Bas Nieuwenhuizen [Wed, 20 Jan 2021 20:20:35 +0000 (21:20 +0100)]
zink: Remove initialization of some arrays

We're only using the same number of elements we're writing to.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9968>

3 years agozink: ci updates
Mike Blumenkrantz [Tue, 30 Mar 2021 21:28:39 +0000 (17:28 -0400)]
zink: ci updates

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

3 years agozink: implement threaded context
Mike Blumenkrantz [Mon, 22 Mar 2021 15:01:30 +0000 (11:01 -0400)]
zink: implement threaded context

this includes:
* async buffer mapping/replacement
* async queue submission
* async (threaded) gallium flush handling

the main churn here is from handling async gallium flushes, which involves
creating multiple gallium fences (zink_tc_fence) for each zink fence (zink_fence).
a tc fence may begin waiting for completion at any time, even before the zink_fence
has had its cmdbuf(s) submitted, so handling this type of desync ends up needing
almost a complete rewrite of the existing queue architecture

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

3 years agogallivm: increase size of texture target enum bitfield
Charmaine Lee [Tue, 30 Mar 2021 06:01:41 +0000 (23:01 -0700)]
gallivm: increase size of texture target enum bitfield

Need to bump up the size of texture target bitfield for MSVC.

Fixes: 0ce7c4a7c981 ("gallivm: Use the proper enum for the texture target bitfield.")

Reviewed-by: Neha Bhende <bhenden@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9928>

3 years agoci/freedreno: Demote a630-asan to a manual test for now.
Eric Anholt [Tue, 30 Mar 2021 20:45:37 +0000 (13:45 -0700)]
ci/freedreno: Demote a630-asan to a manual test for now.

It's flaky in producing Missing results. I've got an uprev that should
avoid the issue (and possibly a followon actual fix), but it's blocked on
being able to rebuild the arm containers.

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

3 years agodocs: fix incorrect possessive form
Erik Faye-Lund [Wed, 3 Feb 2021 11:45:17 +0000 (12:45 +0100)]
docs: fix incorrect possessive form

When a word ends in an 's', the possessive form ends with a trailing
apostrophe instead.

Acked-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9946>

3 years agodocs: dfsm -> DFSM
Erik Faye-Lund [Wed, 3 Feb 2021 12:13:25 +0000 (13:13 +0100)]
docs: dfsm -> DFSM

This abberation is spelled in all-caps other places in this document.

Acked-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9946>

3 years agodocs: lex / yacc -> Lex / Yacc
Erik Faye-Lund [Wed, 3 Feb 2021 11:11:10 +0000 (12:11 +0100)]
docs: lex / yacc -> Lex / Yacc

These are names, so use proper nouns for them.

Acked-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9946>

3 years agodocs: lod -> LOD
Erik Faye-Lund [Wed, 3 Feb 2021 10:59:34 +0000 (11:59 +0100)]
docs: lod -> LOD

While we're at it, fix a few cases of incorrect usage of apostrophes.

Acked-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9946>

3 years agodocs: nops -> NOPs
Erik Faye-Lund [Wed, 28 Oct 2020 14:07:05 +0000 (15:07 +0100)]
docs: nops -> NOPs

Acked-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9946>

3 years agodocs: Xorg -> X.Org
Erik Faye-Lund [Wed, 3 Feb 2021 12:50:20 +0000 (13:50 +0100)]
docs: Xorg -> X.Org

Acked-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9946>

3 years agodocs: opencl -> OpenCL
Erik Faye-Lund [Wed, 3 Feb 2021 10:55:51 +0000 (11:55 +0100)]
docs: opencl -> OpenCL

Acked-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9946>

3 years agodocs: optimisation -> optimization
Erik Faye-Lund [Wed, 28 Oct 2020 10:53:30 +0000 (11:53 +0100)]
docs: optimisation -> optimization

We generally prefer US English in the docs over UK English.

Acked-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8572>

3 years agoradv: only set WRITE_COMPRESS_ENABLE for storage image descriptors
Samuel Pitoiset [Tue, 30 Mar 2021 15:55:10 +0000 (17:55 +0200)]
radv: only set WRITE_COMPRESS_ENABLE for storage image descriptors

This will allow us to reduce the number of situations where the
compiler workaround is needed on GFX10.3.

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/9924>

3 years agoir3/isa: account for randomly set by blob lowest bit of ibo atomics
Danylo Piliaiev [Wed, 24 Mar 2021 12:09:56 +0000 (14:09 +0200)]
ir3/isa: account for randomly set by blob lowest bit of ibo atomics

As far as I could see - blob randomly sets the lowest bit of atomic.b.*
instructions.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9841>

3 years agoci: Bump the llvmpipe test timeout to 240 seconds
Adam Jackson [Tue, 30 Mar 2021 14:58:05 +0000 (10:58 -0400)]
ci: Bump the llvmpipe test timeout to 240 seconds

lp_test_blend occasionally exceeds this on s390x, but we don't really
want to lose what little (hah) big-endian coverage we have.

Related: mesa/mesa#3437
Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9921>

3 years agozink: do not request scoped memory barriers
Erik Faye-Lund [Wed, 31 Mar 2021 13:45:11 +0000 (15:45 +0200)]
zink: do not request scoped memory barriers

While barriers in Vulkan are scoped, we do not handle
nir_intrinsic_scoped_barrier, so we do not support them from NIR.

The reason why this hasn't been a problem seems to be that VTN is the
only place that respects them, so we haven't seen them yet.

But if the GLSL compiler starts respecting the setting, things will
start blowing up. There's WIP patches for this in !3339 already.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9949>

3 years agoradv: don't reset vertex state params on pipeline bind if reg layout matches
Mike Blumenkrantz [Thu, 28 Jan 2021 16:52:42 +0000 (11:52 -0500)]
radv: don't reset vertex state params on pipeline bind if reg layout matches

this is unnecessary since the locations will match

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

3 years agoradv: don't emit baseinstance and drawid if neither is used
Mike Blumenkrantz [Wed, 27 Jan 2021 22:06:24 +0000 (17:06 -0500)]
radv: don't emit baseinstance and drawid if neither is used

indirect draw dispatch contributed by Samuel Pitoiset <samuel.pitoiset@gmail.com>

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

3 years agoradv: reorder vertex shader params
Mike Blumenkrantz [Fri, 5 Feb 2021 18:23:59 +0000 (13:23 -0500)]
radv: reorder vertex shader params

put baseinstance last since it's the least updated

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

3 years agoradv: make vertex param sgpr count more explicit
Mike Blumenkrantz [Fri, 5 Feb 2021 18:20:37 +0000 (13:20 -0500)]
radv: make vertex param sgpr count more explicit

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

3 years agoradv: break out vertex shader param emission into separate function
Mike Blumenkrantz [Fri, 5 Feb 2021 18:17:27 +0000 (13:17 -0500)]
radv: break out vertex shader param emission into separate function

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

3 years agoradv: track whether baseinstance is used on the pipeline struct
Mike Blumenkrantz [Tue, 9 Feb 2021 14:14:07 +0000 (09:14 -0500)]
radv: track whether baseinstance is used on the pipeline struct

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

3 years agoradv: track whether drawid is used on the pipeline struct
Mike Blumenkrantz [Fri, 5 Feb 2021 18:15:19 +0000 (13:15 -0500)]
radv: track whether drawid is used on the pipeline struct

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

3 years agoradv: set gfx pipeline vtx_emit_num to the number of sgprs
Mike Blumenkrantz [Fri, 5 Feb 2021 18:13:58 +0000 (13:13 -0500)]
radv: set gfx pipeline vtx_emit_num to the number of sgprs

this should always match what we want to be doing

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

3 years agoradv: simplify vs draw param counting during setup
Mike Blumenkrantz [Fri, 5 Feb 2021 16:29:03 +0000 (11:29 -0500)]
radv: simplify vs draw param counting during setup

we can just reuse the existing function for this

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

3 years agoradv: track whether gl_BaseInstance is used
Mike Blumenkrantz [Wed, 27 Jan 2021 22:05:30 +0000 (17:05 -0500)]
radv: track whether gl_BaseInstance is used

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

3 years agoradv: refactor draw dispatch
Mike Blumenkrantz [Wed, 27 Jan 2021 20:19:49 +0000 (15:19 -0500)]
radv: refactor draw dispatch

this breaks up the monolithic draw path used for all draw calls into
pre/post functions to handle general setup and a couple helper functions
to more directly handle different draw modes in a way that's both more readable
and, potentially, more optimizable

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

3 years agoradv: stop zeroing radv_draw_info during draw
Mike Blumenkrantz [Wed, 27 Jan 2021 20:18:22 +0000 (15:18 -0500)]
radv: stop zeroing radv_draw_info during draw

this is a big struct, and there's only a couple extra members that need
to be initialized to hit the right codepaths

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

3 years agofreedreno/a6xx: fix primitive counters debug output
Danylo Piliaiev [Thu, 24 Dec 2020 19:12:38 +0000 (21:12 +0200)]
freedreno/a6xx: fix primitive counters debug output

Each counter spans two regs: LO and HI

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8228>

3 years agofreedreno/a6xx: copy full 64bit of primitive counter
Danylo Piliaiev [Thu, 4 Feb 2021 13:42:28 +0000 (15:42 +0200)]
freedreno/a6xx: copy full 64bit of primitive counter

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8228>

3 years agomeson: Remove kmsro from gallium-drivers
Alyssa Rosenzweig [Sat, 6 Feb 2021 01:16:00 +0000 (20:16 -0500)]
meson: Remove kmsro from gallium-drivers

Automatically include it if we're building with a driver that depends on
it, and don't include it if we're not. Avoids a footgun (building
something like panfrost without kmsro) with minimal effect on code size
in the "kmsro possible but not used" case. (This case primarily affects
Freedreno, but the Freedreno maintainers suggested this, so I think it's
ok.)

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Suggested-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8893>

3 years agobroadcom/cle: do not leak spec
Juan A. Suarez Romero [Wed, 31 Mar 2021 08:48:49 +0000 (10:48 +0200)]
broadcom/cle: do not leak spec

Fixes CID#1474553 "Resource leak (RESOURCE_LEAK)".

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

3 years agodocs: vulkan -> Vulkan
Erik Faye-Lund [Wed, 28 Oct 2020 11:13:09 +0000 (12:13 +0100)]
docs: vulkan -> Vulkan

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9945>

3 years agodocs: ie. -> i.e.
Erik Faye-Lund [Wed, 28 Oct 2020 11:18:30 +0000 (12:18 +0100)]
docs: ie. -> i.e.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9945>

3 years agodocs: sytem -> system
Erik Faye-Lund [Wed, 28 Oct 2020 11:08:45 +0000 (12:08 +0100)]
docs: sytem -> system

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9945>

3 years agodocs: appling -> applying
Erik Faye-Lund [Wed, 28 Oct 2020 10:48:31 +0000 (11:48 +0100)]
docs: appling -> applying

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9945>

3 years agozink: document why we're calling pipe_shader_type_from_mesa
Erik Faye-Lund [Mon, 29 Mar 2021 14:37:14 +0000 (16:37 +0200)]
zink: document why we're calling pipe_shader_type_from_mesa

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9898>

3 years agozink: simplify shader-removal
Erik Faye-Lund [Mon, 29 Mar 2021 14:32:08 +0000 (16:32 +0200)]
zink: simplify shader-removal

This is so trivial to do, so there's no need for the helper.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9898>

3 years agozink: assert that pstage is within range
Erik Faye-Lund [Mon, 29 Mar 2021 13:24:31 +0000 (15:24 +0200)]
zink: assert that pstage is within range

This makes it clearer that these don't include the compute-stage.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9898>

3 years agozink: check base-requirements
Erik Faye-Lund [Tue, 30 Mar 2021 15:58:31 +0000 (17:58 +0200)]
zink: check base-requirements

This one is a bit of a tough nut to deal with gracefully. Zink has a set
of base-requirements that we always require. There's no Gallium caps to
report these missing features, so we're essentially left with two options:

1. Fail to create the screen.
2. Ignore the missing fetures.

Solution 1 will lead to difficulties bringing up a new Vulkan driver on
Zink, and solution 2 will lead to mis-rendering.

Since Zink is mostly an opt-in driver to use when there's no OpenGL driver
available, we should probably do 2 for now. It seems better to have some
mis-rendering than no rendering at all.

But let's at least check, and print a warning. That way people get to
know what's up.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9925>

3 years agodocs: clarify VK_KHR_external_memory requirement
Erik Faye-Lund [Tue, 30 Mar 2021 15:57:56 +0000 (17:57 +0200)]
docs: clarify VK_KHR_external_memory requirement

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9925>

3 years agozink: do not enable unused extension
Erik Faye-Lund [Tue, 30 Mar 2021 15:51:47 +0000 (17:51 +0200)]
zink: do not enable unused extension

While we should probably use this extension at some point, we don't
currently do. So let's remove it, so the code documents the status-quo
instead of some potential future direction.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9925>

3 years agodocs: remove zink incorrect requirement
Erik Faye-Lund [Tue, 30 Mar 2021 15:41:09 +0000 (17:41 +0200)]
docs: remove zink incorrect requirement

Zink does not require VK_KHR_get_physical_device_properties2; we have
fallback-code in place for when that is lacking.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9925>

3 years agodocs: remove bogus zink-requirement
Erik Faye-Lund [Tue, 30 Mar 2021 15:16:47 +0000 (17:16 +0200)]
docs: remove bogus zink-requirement

VkPhysicalDeviceFeatures::depthClamp isn't required until GL 3.2, where
we already list it. Remove the extra entry to avoid confusion.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9925>

3 years agoci/v3dv: update flaky tests
Juan A. Suarez Romero [Tue, 30 Mar 2021 15:54:39 +0000 (17:54 +0200)]
ci/v3dv: update flaky tests

Acked-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9926>

3 years agoloader: prefer iris on Android
Tapani Pälli [Mon, 29 Mar 2021 07:13:19 +0000 (10:13 +0300)]
loader: prefer iris on Android

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9906>

3 years agobroadcom/compiler: try to fill up delay slots after unconditional branch
Iago Toral Quiroga [Tue, 30 Mar 2021 08:58:04 +0000 (10:58 +0200)]
broadcom/compiler: try to fill up delay slots after unconditional branch

If we have an unconditional branch then we can try to fill up its
delay slots with the initial instructions of its successor block by
copying them into the delay slots and adjusting the branch offset to
skip the copied instructions.

total nops in shared programs: 365640 -> 364471 (-0.32%)
nops in affected programs: 15416 -> 14247 (-7.58%)
helped: 462
HURT: 0

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

3 years agobroadcom/compiler: try to fill up delay slots after a branch instruction
Iago Toral Quiroga [Mon, 29 Mar 2021 12:28:14 +0000 (14:28 +0200)]
broadcom/compiler: try to fill up delay slots after a branch instruction

For this we do something similar to what we do with thrsw where we try to
move the branch instruction earlier so the previous instructions execute
in the delay slots of the branch.

Generally, we can do this with any instruction except:
 - If the instruction reads a uniform: since our branches do as well and
   uniforms come from an ordered FIFO stream.
 - If the instruction writes flags, since our branch instruction will
   probably read them.
 - If the instruction is in the delay slots of another thread switch,
   branch, or unifa write, which is disallowed.

total instructions in shared programs: 13648140 -> 13613972 (-0.25%)
instructions in affected programs: 2209552 -> 2175384 (-1.55%)
helped: 6765
HURT: 0
Instructions are helped.

total max-temps in shared programs: 2318687 -> 2318436 (-0.01%)
max-temps in affected programs: 5046 -> 4795 (-4.97%)
helped: 152
HURT: 0
Max-temps are helped.

total inst-and-stalls in shared programs: 13680494 -> 13646326 (-0.25%)
inst-and-stalls in affected programs: 2220394 -> 2186226 (-1.54%)
helped: 6765
HURT: 0
Inst-and-stalls are helped.

total nops in shared programs: 399818 -> 365640 (-8.55%)
nops in affected programs: 127311 -> 93133 (-26.85%)
helped: 6765
HURT: 0
Nops are helped.

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

3 years agobroadcom/compiler: add a NOP count stat to shader-db
Iago Toral Quiroga [Tue, 30 Mar 2021 09:48:10 +0000 (11:48 +0200)]
broadcom/compiler: add a NOP count stat to shader-db

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

3 years agobroadcom/compiler: dump instruction index when failing to pack instructions
Iago Toral Quiroga [Tue, 30 Mar 2021 08:30:22 +0000 (10:30 +0200)]
broadcom/compiler: dump instruction index when failing to pack instructions

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

3 years agolavapipe: fail out if spirv->nir fails
Dave Airlie [Wed, 31 Mar 2021 00:25:13 +0000 (10:25 +1000)]
lavapipe: fail out if spirv->nir fails

Just fail out earlier and assume a feature is missing.

Fixes a crash in validation layer tests

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9937>

3 years agolavapipe: only reference pCounterBuffers if non-NULL
Dave Airlie [Wed, 31 Mar 2021 00:24:36 +0000 (10:24 +1000)]
lavapipe: only reference pCounterBuffers if non-NULL

Fixes crash in validation layer tests.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9937>

3 years agoglsl: Initialize parcel_out_uniform_storage members.
Vinson Lee [Thu, 3 Dec 2020 23:52:34 +0000 (15:52 -0800)]
glsl: Initialize parcel_out_uniform_storage members.

Fix defects reported by Coverity Scan.

uninit_member: Non-static class member buffer_block_index is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member ubo_byte_offset is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member shader_type is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member next_sampler is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member next_bindless_sampler is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member next_image is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member next_bindless_image is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member next_subroutine is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member field_counter is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member current_var is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member explicit_location is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member record_array_count is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member record_next_sampler is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member record_next_image is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member record_next_bindless_sampler is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member record_next_bindless_image is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member targets is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member shader_samplers_used is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member shader_shadow_samplers is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member num_bindless_samplers is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member num_bindless_images is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7910>

3 years agozink: use cached memory for all resources when possible
Mike Blumenkrantz [Thu, 10 Dec 2020 21:25:47 +0000 (16:25 -0500)]
zink: use cached memory for all resources when possible

this massively speeds up memory access across the driver, specifically
for pbo-related operations

it does require that mapped memory is manually invalidated/flushed, however, and
we also need to manually align host-visible memory to be able to do that

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

3 years agozink: track coherent resource objects
Mike Blumenkrantz [Thu, 25 Feb 2021 17:33:11 +0000 (12:33 -0500)]
zink: track coherent resource objects

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

3 years agomesa: Remove redundant gl_config::sampleBuffers
Adam Jackson [Wed, 24 Mar 2021 17:45:20 +0000 (13:45 -0400)]
mesa: Remove redundant gl_config::sampleBuffers

This is just !!samples.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9817>

3 years agomesa: Stop tracking visual rating in gl_config
Adam Jackson [Wed, 24 Mar 2021 16:48:21 +0000 (12:48 -0400)]
mesa: Stop tracking visual rating in gl_config

We never create non-conformant configs, and we can predict slow-or-not
purely from the accum-buffer-ness of the config.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9817>

3 years agomesa: Remove the pretense of aux buffer support
Adam Jackson [Wed, 24 Mar 2021 16:40:51 +0000 (12:40 -0400)]
mesa: Remove the pretense of aux buffer support

This might be nice to hook up at some point, but it's doing nothing at
the moment and it's not clear to me that it belongs as GL state instead
of winsys state.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9817>

3 years agomesa: Remove unused gl_config::level
Adam Jackson [Wed, 24 Mar 2021 16:29:02 +0000 (12:29 -0400)]
mesa: Remove unused gl_config::level

This is the (GLX) framebuffer overlay level, and it's never set to
anything interesting.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9817>

3 years agomesa: Remove transparency state from struct gl_config
Adam Jackson [Wed, 24 Mar 2021 16:16:51 +0000 (12:16 -0400)]
mesa: Remove transparency state from struct gl_config

We never set this to anything interesting, and this is really winsys
state not GL state anyway.

Nota bene: __DRI_ATTRIB_TRANSPARENT_INDEX_VALUE is set to GLX_NONE
instead of the GLX_DONT_CARE we looked like we were doing before. This
is to preserve backward compatibility with older (technically, all
current) X servers, which when building their fbconfigs initialize a
field named 'transparentPixel' _twice_, and the second time from
__DRI_ATTRIB_TRANSPARENT_INDEX_VALUE, but then uses 'transparentPixel's
value for GLX_TRANSPARENT_TYPE. Which, GLX_DONT_CARE isn't a valid value
for that, so glx-fbconfig-sanity fails among much else.

This is harmless, in that I don't think any DRI driver has ever wired
this up (I can't find any evidence in r100 or mga history) and certainly
none that we can currently load have this working.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9817>

3 years agomesa: Remove the texture-from-pixmap state from struct gl_config
Adam Jackson [Wed, 24 Mar 2021 15:57:11 +0000 (11:57 -0400)]
mesa: Remove the texture-from-pixmap state from struct gl_config

This never varies at all, let alone per-config. GLX does read these
values out though so hardwire the values in a different place.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9817>

3 years agomesa: Remove misc pbuffer attributes from struct gl_config
Adam Jackson [Tue, 23 Mar 2021 17:15:50 +0000 (13:15 -0400)]
mesa: Remove misc pbuffer attributes from struct gl_config

pbuffers aren't a first-class object in mesa, they're just funnily-named
framebuffers. It's thus somewhat silly to track this state separately
when it's effectively identical to GL_MAX_RENDERBUFFER_SIZE, and there's
never been a DRI driver that's ever set these values to anything
interesting. Drop them from mesa (but leave the tokens defined for
compatibility).

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9817>

3 years agodri: Fold attribMap into the code
Adam Jackson [Sat, 27 Mar 2021 02:34:17 +0000 (22:34 -0400)]
dri: Fold attribMap into the code

This table is mostly a mapping into struct gl_config, which is about to
get radically simplified, so we're going to need code to compute values
here instead of just looking up fields in a struct. Keeping the __ATTRIB
bit is somewhat ugly, but we'll expand it back out after the gl_config
changes settle.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9817>

3 years agodri: Explicitly handle all the config attributes
Adam Jackson [Fri, 26 Mar 2021 19:52:26 +0000 (15:52 -0400)]
dri: Explicitly handle all the config attributes

The code is broken elsewhere and requires that the attrib map actually
be large enough.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9817>

3 years agoRemove Scons leftovers
Matt Turner [Sun, 21 Mar 2021 17:27:57 +0000 (13:27 -0400)]
Remove Scons leftovers

Fixes: 6e6cd7d93cc54fc8c279 ("scons: Remove.")
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9738>

3 years agoci: Disable panfrost g52
Matt Turner [Tue, 30 Mar 2021 19:38:37 +0000 (15:38 -0400)]
ci: Disable panfrost g52

The runners appear to be down at the moment.

Fixes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4538
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9930>

3 years agoci: skip pipeline_barrier tests that currently crash on RADV
Tony Wasserka [Mon, 29 Mar 2021 11:17:50 +0000 (13:17 +0200)]
ci: skip pipeline_barrier tests that currently crash on RADV

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

3 years agofrontends/omx/h265: search entire dpb list
Boyuan Zhang [Mon, 15 Mar 2021 17:28:11 +0000 (13:28 -0400)]
frontends/omx/h265: search entire dpb list

When more than 1 idr frames have been added to dpb list, there might be 2
frames with same poc in the dpb list. In this case, driver needs to search
the entire dpb list in order to get newly added reference frame with given poc

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9881>

3 years agoradeon/vcn: release si buffer for encoding at the end.
Ruijing Dong [Fri, 5 Mar 2021 15:39:51 +0000 (10:39 -0500)]
radeon/vcn: release si buffer for encoding at the end.

Signed-off-by: Ruijing Dong <Ruijing.Dong@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9882>

3 years agocompiler/glsl: avoid null-pointer deref
Erik Faye-Lund [Mon, 29 Mar 2021 11:21:47 +0000 (13:21 +0200)]
compiler/glsl: avoid null-pointer deref

When we encounter a bindless image here, lower_deref returns a
NULL-pointer, and calling record_images_used will try to dereference
that NULL-pointer.

So let's dig out the var from the source instruction instead of the
result of the lowering.

Fixes: 5910c938a29 ("nir/glsl: gather bitmask of images used by program")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9895>

3 years agozink: remove zink_create_fence()
Mike Blumenkrantz [Mon, 22 Mar 2021 17:58:37 +0000 (13:58 -0400)]
zink: remove zink_create_fence()

merge this down into batch state creation to keep fence file complexity down

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

3 years agozink: also check for device lost reset on flush
Mike Blumenkrantz [Mon, 22 Mar 2021 15:39:21 +0000 (11:39 -0400)]
zink: also check for device lost reset on flush

if there's a reset callback available, call that instead of cycling

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