Discussion:
[Git][xorg-team/lib/mesa][debian-stretch-backports] 117 commits:
Andreas Boll
2018-10-31 18:40:49 UTC
Permalink
Andreas Boll pushed to branch debian-stretch-backports at X Strike Force / lib / mesa


Commits:
3f2388e2 by Dylan Baker at 2018-08-13T16:56:25Z
docs: Add sha256 sums for 18.1.6

- - - - -
1f06f0e8 by Jason Ekstrand at 2018-08-13T17:08:44Z
intel: Switch the order of the 2x MSAA sample positions

The Vulkan 1.1.82 spec flipped the order to better match D3D.

Cc: mesa-***@lists.freedesktop.org
Reviewed-by: Iago Toral Quiroga <***@igalia.com>
Reviewed-by: Anuj Phogat <***@gmail.com>
(cherry picked from commit a9f7bcfdf90d8302e9ed27601b2b7001b9940740)

- - - - -
ee595b27 by Bas Nieuwenhuizen at 2018-08-15T16:01:03Z
radv: Fix missing Android platform define.

CC: <mesa-***@lists.freedesktop.org>
Acked-by: Samuel Pitoiset <***@gmail.com>
(cherry picked from commit bf33ca751252e9735418e33bacd257a8b431b102)
Conflicts resolved by Dylan

Conflicts:
src/amd/vulkan/Android.mk

There is no android.mk support in 18.1 for radv, so only apply the parts
for autotools android builds, which can be used by android
implementations not using android.mk files

- - - - -
cf7f783f by Dylan Baker at 2018-08-15T16:06:09Z
cherry-ignore: Add additional 18.2 only patches

- - - - -
8143fefa by Alexander Tsoy at 2018-08-16T21:22:42Z
meson: fix build for egl platform_x11 without dri3 and gbm

Compiling EGL's platform_x11 without dri3 and gbm yields this compile
failure:

platform_x11 needs inc_loader:

../mesa-18.2.0-rc2/src/egl/drivers/dri2/platform_x11.c:48:10: fatal
error: loader.h: No such file or directory
#include "loader.h"
^~~~~~~~~~

Fixes: 108d257a1685 ("meson: build libEGL")
Bugzilla: https://bugs.gentoo.org/663534
Reviewed-by: Matt Turner <***@gmail.com>
(cherry picked from commit 9a96bf0ecd071219cb975fbd64f5c68849fd5697)

- - - - -
0936b873 by Timothy Arceri at 2018-08-16T21:23:48Z
radv: add Doom workaround

Cc: <mesa-***@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <***@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <***@gmail.com>
(cherry picked from commit f0a8accb0d471fdb657313df9861d9903ccd8026)
Conflicts resolved by Dylan

Conflicts:
src/amd/vulkan/radv_device.c

- - - - -
b33a2fa9 by Dylan Baker at 2018-08-16T21:24:37Z
cherry-ignore: Add more 18.2 patches

- - - - -
fe63541a by Samuel Pitoiset at 2018-08-20T15:25:34Z
radv/winsys: fix creating the BO list for virtual buffers

When the number of unique BO is 0, we optimize the list creation
by copying all buffers of the current CS directly into it. But
this is only valid if the CS doesn't have virtual buffers,
otherwise they are not added and hw might report VM faults.

This fixes VM faults with:
dEQP-VK.sparse_resources.image_sparse_binding.2d.rgba8ui.1024_128_1

CC: <mesa-***@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <***@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <***@basnieuwenhuizen.nl>
(cherry picked from commit d27e1584ce30b2186ac933f976dc31c3624b385b)

- - - - -
7b7fbee0 by Dylan Baker at 2018-08-20T15:25:50Z
cherry-ignore: Add more 18.2 patches

- - - - -
33acfb07 by Ray Strode at 2018-08-20T15:26:14Z
gallium/winsys/kms: don't unmap what wasn't mapped

At the moment, depending on pipe transfer flags, the dumb
buffer map address can end up at either kms_sw_dt->ro_mapped
or kms_sw_dt->mapped.

When it's time to unmap the dumb buffer, both locations get unmapped,
even though one is probably initialized to 0.

That leads to the code segment getting unmapped at runtime and
crashes when trying to call into unrelated code.

This commit addresses the problem by using MAP_FAILED instead of
NULL for ro_mapped and mapped when the dumb buffer is unmapped,
and only unmapping mapped addresses at unmap time.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107098
Signed-off-by: Ray Strode <***@redhat.com>
Fixes: d891f28df9a ("gallium/winsys/kms: Fix possible leak in map/unmap.")
Cc: Lepton Wu <***@chromium.org>
Reviewed-by: Emil Velikov <***@collabora.com>
(cherry picked from commit 9baff597ce021f7691187b0d1d1bbc16d07b13e1)

- - - - -
5a90cc13 by Jason Ekstrand at 2018-08-20T16:11:10Z
anv/lower_ycbcr: Use the binding array size for bounds checks

Because lower_ycbcr gets called before apply_pipeline_layout, the
indices are all logical and the binding layout HW size is actually too
big for the bounds check. We should just use the regular logical array
size instead.

Fixes: f3e91e78a33 "anv: add nir lowering pass for ycbcr textures"
Reviewed-by: Timothy Arceri <***@itsqueeze.com>
Reviewed-by: Lionel Landwerlin <***@intel.com>
(cherry picked from commit 320dacb0a051cd1736e0976f70467b68281edfbf)

- - - - -
fb927b9a by Dylan Baker at 2018-08-21T15:23:16Z
cherry-ignore: Add a couple of patches with > 1 fixes tags

- - - - -
3268ca90 by Danylo Piliaiev at 2018-08-21T15:25:00Z
i965: Advertise 8 bits subpixel precision for viewport bounds on gen6+

We use floating-points for viewport bounds so VIEWPORT_SUBPIXEL_BITS
should reflect this.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105975

Signed-off-by: Danylo Piliaiev <***@globallogic.com>
Reviewed-by: Lionel Landwerlin <***@intel.com>
(cherry picked from commit 25ec806eb249603ad0364365ab620628cf25f031)

- - - - -
cafb53fe by Dylan Baker at 2018-08-22T15:46:00Z
cherry-ignore: more 18.2 patches

- - - - -
97ecabee by Dave Airlie at 2018-08-22T15:46:19Z
r600/eg: rework atomic counter emission with flushes

With the current code, we didn't do the space checks prior
to atomic counter setup emission, but we also didn't add
atomic counters to the space check so we could get a flush
later as well.

These flushes would be bad, and lead to problems with
parallel tests. We have to ensure the atomic counter copy in,
draw emits and counter copy out are kept in the same command
submission unit.

This reworks the code to drop some useless masks, make the
counting separate to the emits, and make the space checker
handle atomic counter space.

[airlied: want this in 18.2]

Fixes: 06993e4ee (r600: add support for hw atomic counters. (v3))
(cherry picked from commit 32529e60849dd20d167f14cb8542c5798343f0e0)

- - - - -
9c5b4ca2 by Dylan Baker at 2018-08-23T16:34:54Z
bump version for 18.1.7 release

- - - - -
ab384a10 by Dylan Baker at 2018-08-23T16:39:20Z
docs: Add mesa 18.1.7 docs

- - - - -
4a844b54 by Dylan Baker at 2018-08-24T16:29:07Z
docs: Add mesa 18.1.7 notes

- - - - -
e6fdf98a by Grazvydas Ignotas at 2018-08-24T16:33:23Z
radv: place pointer length into cache uuid

Thanks to reproducible builds, binary file timestamps may be identical
for both 32bit and 64bit packages when built from the same source.
This means radv will use the same cache for both 32 and 64 bit
processes, which leads to crashes.

Conveniently there is a spare byte in cache_uuid, let's place the
pointer size there.

Fixes: f4e499ec79 "radv: add initial non-conformant radv vulkan driver"
CC: 18.1 18.2 <mesa-***@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107601
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105904
Reviewed-by: Bas Nieuwenhuizen <***@basnieuwenhuizen.nl>
(cherry picked from commit 356f6673d695eb98c42d80f3c2b30fad746cdbba)

- - - - -
b727e1ff by Nanley Chery at 2018-08-24T16:33:23Z
intel/isl: Avoid tiling some 16K-wide render targets

Fix rendering issues on BDW and SKL.

Fixes: 0288fe8d0417730bdd5b3477130dd1dc32bdbcd3
("i965/miptree: Use the correct BLT pitch")

Fixes the following regressions seen

exclusively on SKL:
* KHR-GL46.texture_barrier_ARB.disjoint-texels
* KHR-GL46.texture_barrier_ARB.overlapping-texels
* KHR-GL46.texture_barrier.disjoint-texels
* KHR-GL46.texture_barrier.overlapping-texels

and both on BDW and SKL:
* GTF-GL46.gtf21.GL2FixedTests.buffer_corners.buffer_corners
* GTF-GL46.gtf21.GL2FixedTests.stencil_plane_corners.stencil_plane_corners

v2: Note the fixed tests (Andres).
Don't cause failures with multisampled buffers (Andres).
Don't hamper SKL GT4 (Ken).
v3: Fix the Fixes tag (Dylan).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107359
Cc: <mesa-***@lists.freedesktop.org>
Tested-by: Andres Gomez <***@igalia.com>
Reviewed-by: Jason Ekstrand <***@jlekstrand.net>
(cherry picked from commit 6d80b0b4bae53efbfa4b654a44c6279f5cc9402c)

- - - - -
b9c903b4 by Nanley Chery at 2018-08-24T16:33:23Z
i965: Make blt_pitch public

We'd like to reuse this helper.

Cc: <mesa-***@lists.freedesktop.org>
Reviewed-by: Chris Wilson <***@chris-wilson.co.uk>
(cherry picked from commit 0ab2541943478ae39112760198a1fbf71fd48986)

- - - - -
32331a3e by Nanley Chery at 2018-08-24T16:33:23Z
i965/miptree: Drop an if case from retile_as_linear

Drop an if statement whose predicate never evaluates to true. row_pitch
belongs to a surface with non-linear tiling. According to
isl_calc_tiled_min_row_pitch, the pitch is a multiple of the tile width.
By looking at isl_tiling_get_info, we see that non-linear tilings have
widths greater than or equal to 128B.

Cc: <mesa-***@lists.freedesktop.org>
Reviewed-by: Chris Wilson <***@chris-wilson.co.uk>
(cherry picked from commit 3df201e3e843b0c4fe810360f7e8b81de9c6a92a)

- - - - -
a9dbc4b3 by Nanley Chery at 2018-08-24T16:33:23Z
i965/miptree: Use the correct BLT pitch

Retile miptrees to a linear tiling less often. Retiling can cause issues
with imported BOs.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106738
Suggested-by: Chris Wilson <***@chris-wilson.co.uk>
Cc: <mesa-***@lists.freedesktop.org>
Reviewed-by: Chris Wilson <***@chris-wilson.co.uk>
(cherry picked from commit 0288fe8d0417730bdd5b3477130dd1dc32bdbcd3)

- - - - -
af3c8a4c by Nanley Chery at 2018-08-24T16:33:23Z
i965/miptree: Use miptree_map in map_blit functions

This struct contains all the data of interest. can_blit_slice() will use
it in the next patch to calculate the correct pitch.

Suggested-by: Chris Wilson <***@chris-wilson.co.uk>
Cc: <mesa-***@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <***@jlekstrand.net>
(cherry picked from commit 030b6efcfdeff5cc079d5b6d8e682e180570ce71)

- - - - -
fc1a21da by Nanley Chery at 2018-08-24T16:33:23Z
i965/miptree: Fix can_blit_slice()

Check the destination's row pitch against the BLT engine's row pitch
limitation as well.

Fixes: 0288fe8d0417730bdd5b3477130dd1dc32bdbcd3
("i965/miptree: Use the correct BLT pitch")

v2: Fix the Fixes tag (Dylan).
Check the destination row pitch (Chris).

Reported-by: Dylan Baker <***@pnwbakers.com>
Cc: <mesa-***@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <***@jlekstrand.net>
(cherry picked from commit b041fc06491f4a017458df4a58d4ac519bb3bc94)

- - - - -
529eda0a by Gurchetan Singh at 2018-08-24T16:33:23Z
meson: fix egl build for surfaceless

Without this, I get:

> platform_surfaceless.c:38:10: fatal error: 'loader.h' file not found
> #include "loader.h"
> ^~~~~~~~~~
> 1 error generated.

Fixes: 108d257a16859898f5ce02f4759c5c58f9b8c050 ("meson: build libEGL")
Reviewed-by: Dylan Baker <***@pnwbakers.com>

v2: Split up patches, modify commit message (Dylan)
(cherry picked from commit ec6cb01e216439fcd8a76c793a336d1b25587a41)

- - - - -
d180c8d7 by Gurchetan Singh at 2018-08-24T16:33:23Z
meson: fix egl build for android

Haven't tested this, but we do include loader.h
in platform_android.c

Fixes: c5ec1556859b7d33637c9fad13d3473c7b2f9eb3 ("meson: wire up egl/android")
Reviewed-by: Dylan Baker <***@pnwbakers.com>
(cherry picked from commit c731508b9883c658dee9c4464452087345eebe1f)

- - - - -
745be98a by Emil Velikov at 2018-08-24T16:33:23Z
docs: update required mako version

The requirement was bumped a while back, but we forgot to update the
docs.

Fixes: ed871af91c2 ("configure.ac: raise Mako required version to
0.8.0")
Signed-off-by: Emil Velikov <***@collabora.com>
Reviewed-by: Dylan Baker <***@pnwbakers.com>
Reviewed-by: Eric Engestrom <***@intel.com>
(cherry picked from commit e39b916d0c6764b68936587d3ca293e28226d794)

- - - - -
280be506 by Dylan Baker at 2018-08-24T16:33:23Z
cherry-ignore: add a patch

- - - - -
95173871 by Marek Olšák at 2018-08-24T16:33:23Z
glapi: actually implement GL_EXT_robustness for GLES

The extension was exposed but not the functions.

This fixes:
dEQP-GLES31.functional.debug.negative_coverage.get_error.buffer.readn_pixels
dEQP-GLES31.functional.debug.negative_coverage.get_error.state.get_nuniformfv
dEQP-GLES31.functional.debug.negative_coverage.get_error.state.get_nuniformiv

Cc: 18.1 18.2 <mesa-***@lists.freedesktop.org>
Reviewed-by: Tapani Pälli <***@intel.com>
(cherry picked from commit 37eee90df730ac6ba371b2ba8e61a1db9e55d7df)

- - - - -
5163f969 by Jason Ekstrand at 2018-08-27T15:56:28Z
anv: Fill holes in the VF VUE to zero

This fixes a GPU hang in DOOM 2016 running under wine.

Cc: mesa-***@lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104809
Reviewed-by: Lionel Landwerlin <***@intel.com>
(cherry picked from commit 76b0e4d8c9d3cd8af0b665cec88bded7a61e8ad6)

- - - - -
cd10b797 by Dylan Baker at 2018-08-28T15:58:41Z
cherry-ignore: Add more 18.2 only patches

- - - - -
850e1259 by Dylan Baker at 2018-08-28T15:59:23Z
meson: Actually load translation files

Currently we run the script but don't actually load any files, even in a
tarball where they exist.

Fixes: 3218056e0eb375eeda470058d06add1532acd6d4
("meson: Build i965 and dri stack")
Reviewed-by: Eric Engestrom <***@intel.com>
(cherry picked from commit 7c00db9527245d80cb748ec3442163585a5463a6)

- - - - -
bdc842a0 by vadym.shovkoplias at 2018-08-28T16:02:44Z
glsl/linker: Allow unused in blocks which are not declated on previous stage

>From Section 4.3.4 (Inputs) of the GLSL 1.50 spec:

"Only the input variables that are actually read need to be written
by the previous stage; it is allowed to have superfluous
declarations of input variables."

Fixes:
* interstage-multiple-shader-objects.shader_test

v2:
Update comment in ir.h since the usage of "used" field
has been extended.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101247
Signed-off-by: Vadym Shovkoplias <***@globallogic.com>
Reviewed-by: Alejandro Piñeiro <***@igalia.com>
Reviewed-by: Timothy Arceri <***@itsqueeze.com>
(cherry picked from commit 4a8444d5bc865119218eca8674e5614535f4829e)

- - - - -
812b5aec by Andreas Boll at 2018-08-29T08:32:54Z
Merge tag 'mesa-18.1.7' into debian-unstable

mesa-18.1.7

- - - - -
0efd1129 by Andreas Boll at 2018-08-29T08:33:18Z
Bump changelog

- - - - -
80832c69 by Andreas Boll at 2018-08-29T08:39:22Z
libglx-mesa0: Add Breaks: glx-diversions (<< 0.8.4~) (Closes: #903929).

- - - - -
8c1495c1 by Andreas Boll at 2018-08-29T09:17:03Z
Upload to unstable.

- - - - -
e7eb5740 by Dylan Baker at 2018-08-29T15:23:55Z
cherry-ignore: Add more 18.2 patches

- - - - -
d7065dc4 by Dylan Baker at 2018-08-29T15:30:29Z
cherry-ignore: Add additional patch

- - - - -
7a9b95bd by Lionel Landwerlin at 2018-08-30T15:25:54Z
anv: blorp: support multiple aspect blits

Newer blit tests are enabling depth&stencils blits. We currently don't
support it but can do by iterating over the aspects masks (copy some
logic from the CopyImage function).

Signed-off-by: Lionel Landwerlin <***@intel.com>
Fixes: 9f44745eca0e41 ("anv: Use blorp to implement VkBlitImage")
Reviewed-by: Jason Ekstrand <***@jlekstrand.net>
(cherry picked from commit 5a1c23d1502d275c4d554c586bf029e66131f4ac)

- - - - -
8aba522f by Andrii Simiklit at 2018-08-30T15:28:36Z
i965/gen6/xfb: handle case where transform feedback is not active

When the SVBI Payload Enable is false I guess the register R1.4
which contains the Maximum Streamed Vertex Buffer Index is filled by zero
and GS stops to write transform feedback when the transform feedback
is not active.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107579
Signed-off-by: Andrii Simiklit <***@globallogic.com>
Reviewed-by: Samuel Iglesias Gonsálvez <***@igalia.com>
(cherry picked from commit 1b0df8a46020cc88afeaa4decb42a782ab168afb)

- - - - -
229d0854 by Dylan Baker at 2018-08-30T15:31:12Z
cherry-ignore: Add patch that doesn't apply to 18.1

- - - - -
8c3aee40 by Bas Nieuwenhuizen at 2018-08-30T15:31:41Z
radv: Add missing checks in radv_get_image_format_properties.

CC: <mesa-***@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <***@gmail.com>
(cherry picked from commit 4738b6ac81422ad4498dc6554dae9d0170fcefc7)

- - - - -
16d44d1e by Jason Ekstrand at 2018-08-30T15:32:47Z
nir/algebraic: Be more careful converting ushr to extract_u8/16

If it's not the right bit-size, it may not actually be the correct
extraction. For now, we'll only worry about 32-bit versions.

Fixes: 905ff8619824 "nir: Recognize open-coded extract_u16"
Fixes: 76289fbfa84a "nir: Recognize open-coded extract_u8"
Reviewed-by: Bas Nieuwenhuizen <***@basnieuwenhuizen.nl>
Reviewed-by: Kenneth Graunke <***@whitecape.org>
(cherry picked from commit 116b47fe3c0395e95b67c6bd3506ab7d6a83393e)

- - - - -
6a854c56 by Dave Airlie at 2018-08-31T15:36:07Z
ac/radeonsi: fix CIK copy max size

While adding transfer queues to radv, I started writing some tests,
the first test I wrote fell over copying a buffer larger than this
limit.

Checked AMDVLK and found the correct limit.

Cc: <mesa-***@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <***@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <***@amd.com>
(cherry picked from commit 2c1f249f2b61be50222411bc0d41c095004232ed)

- - - - -
74a671d0 by Jason Ekstrand at 2018-08-31T15:36:56Z
egl/dri2: Add a helper for the number of planes for a FOURCC format

This also serves as a convenient "is this a fourcc format" check as well
which we'll take advantage of in the next commit.

Cc: mesa-***@lists.freedesktop.org
Tested-By: Eero Tamminen <***@intel.com>
Reviewed-by: Eric Engestrom <***@intel.com>
(cherry picked from commit b95896f4923af820f78be6556c4cd5f4ed087f21)

- - - - -
f58f2f67 by Jason Ekstrand at 2018-08-31T15:36:56Z
egl/dri2: Guard against invalid fourcc formats

We already reject attempts to import images with invalid fourcc formats
but don't really guard the queries all that well. This makes us error
out in any calls to eglQueryDmaBufModifiersEXT if the given format is
not a valid fourcc format. We also add an assert to ensure that drivers
don't advertise any non-fourcc formats.

Cc: mesa-***@lists.freedesktop.org
Tested-By: Eero Tamminen <***@intel.com>
Reviewed-by: Eric Engestrom <***@intel.com>
(cherry picked from commit 8c1b9882b2e0cde0b1ad9c6844fd5939d3bd4b24)

- - - - -
5872b152 by Bas Nieuwenhuizen at 2018-09-04T15:50:09Z
radv: Fix CMASK dimensions.

Mirrors

1e40f694831 "ac/surface: fix CMASK fast clear for NPOT textures with mipmapping on SI/CI/VI"

CC: <mesa-***@lists.freedesktop.org>
Reviewed-by: Dave Airlie <***@redhat.com>
Reviewed-by: Samuel Pitoiset <***@gmail.com>
(cherry picked from commit 233718a199f96f71f7c0d2063d9a434dc3447d86)

- - - - -
1063fbe6 by Bas Nieuwenhuizen at 2018-09-04T15:50:14Z
radv: Use a lower max offchip buffer count.

No clue what gets fixed by this but both radeonsi and amdvlk do it.

CC: <mesa-***@lists.freedesktop.org>
Reviewed-by: Dave Airlie <***@redhat.com>
Reviewed-by: Samuel Pitoiset <***@gmail.com>
(cherry picked from commit ab64891f4c6ebab214b84debb1254b134d6c7c64)

- - - - -
e5a2bf8f by Jason Ekstrand at 2018-09-04T15:59:29Z
anv/blorp: Do more flushing around HiZ clears

We make the flush after a HiZ clear unconditional and add a flush/stall
before the clear as well.

Cc: mesa-***@lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107760
Reviewed-by: Chad Versace <***@chromium.org>
Reviewed-by: Nanley Chery <***@intel.com>
(cherry picked from commit 62378c5e9e5e1863bf8695af1df68b0338f5d4ea)

- - - - -
de445b36 by Ian Romanick at 2018-09-04T15:59:29Z
i965/vec4: Clamp indirect tes input array reads with 0x0fffffff

Page 190 of "Volume 7: 3D Media GPGPU Engine (Haswell)" says the valid
range of the offset is [0, 0FFFFFFFh].

Signed-off-by: Ian Romanick <***@intel.com>
Reviewed-by: Kenneth Graunke <***@whitecape.org>
Cc: mesa-***@lists.freedesktop.org
(cherry picked from commit 82530ce1b5a76ce1835ed573411ed26cc2338a3e)

- - - - -
a144518f by Ian Romanick at 2018-09-04T15:59:29Z
i965/vec4: Correctly handle uniform sources in generate_tes_add_indirect_urb_offset

Fixes failure in the new piglit test
tes-patch-input-array-vec2-index-invalid-rd.shader_test.

Signed-off-by: Ian Romanick <***@intel.com>
Reviewed-by: Kenneth Graunke <***@whitecape.org>
Cc: mesa-***@lists.freedesktop.org
(cherry picked from commit 75666605c98e628ad6a88ef46ec7351588969ed5)

- - - - -
b0838037 by Nanley Chery at 2018-09-04T15:59:29Z
i965/gen7_urb: Re-emit PUSH_CONSTANT_ALLOC on some gen9

According to internal docs, some gen9 platforms have a pixel shader push
constant synchronization issue. Although not listed among said
platforms, this issue seems to be present on the GeminiLake 2x6's we've
tested.

We consider the available workarounds to be too detrimental on
performance. Instead, we mitigate the issue by applying part of one of
the workarounds. Re-emit PUSH_CONSTANT_ALLOC at the top of every batch
(as suggested by Ken).

Fixes ext_framebuffer_multisample-accuracy piglit test failures with the
following options:
* 6 depth_draw small depthstencil
* 8 stencil_draw small depthstencil
* 6 stencil_draw small depthstencil
* 8 depth_resolve small
* 6 stencil_resolve small depthstencil
* 4 stencil_draw small depthstencil
* 16 stencil_draw small depthstencil
* 16 depth_draw small depthstencil
* 2 stencil_resolve small depthstencil
* 6 stencil_draw small
* all_samples stencil_draw small
* 2 depth_draw small depthstencil
* all_samples depth_draw small depthstencil
* all_samples stencil_resolve small
* 4 depth_draw small depthstencil
* all_samples depth_draw small
* all_samples stencil_draw small depthstencil
* 4 stencil_resolve small depthstencil
* 4 depth_resolve small depthstencil
* all_samples stencil_resolve small depthstencil

v2: Include more platforms in WA (Ken).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106865
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93355
Cc: <mesa-***@lists.freedesktop.org>
Tested-by: Mark Janes <***@intel.com>
Reviewed-by: Kenneth Graunke <***@whitecape.org>
(cherry picked from commit 904c2a617d86944fbdc2c955f327aacd0b3df318)

- - - - -
1ec6ba93 by Samuel Pitoiset at 2018-09-04T15:59:29Z
radv: fix passing clip/cull distances from VS to PS

CTS doesn't test input clip/cull distances for the fragment
shader stage, which explains why this was totally broken. I
wrote a simple test locally that works now.

This fixes a crash with GTA V and DXVK.

Note that we are exporting unused parameters from the vertex
shader now, but this can't be optimized easily because we don't
keep the fragment shader info...

Cc: mesa-***@lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107477
Signed-off-by: Samuel Pitoiset <***@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <***@basnieuwenhuizen.nl>
(cherry picked from commit 6f47df312943b05653efc0494551ebf8c3903d43)
Very minor conflicts resolved by Dylan

Conflicts:
src/amd/vulkan/radv_nir_to_llvm.c

- - - - -
104c598b by Daniel Stone at 2018-09-04T15:59:29Z
st/dri: Don't expose sRGB formats to clients

Though the SARGB8888 format is used internally through its FourCC value,
it is not a real format as defined by drm_fourcc.h; it cannot be used
with KMS or other interfaces expecting drm_fourcc.h format codes.

Ensure we don't advertise it through the dmabuf format/modifier query
interfaces, preventing us from tripping over an assert.

Signed-off-by: Daniel Stone <***@collabora.com>
Reported-by: Michel Dänzer <***@amd.com>
Fixes: 8c1b9882b2e0 ("egl/dri2: Guard against invalid fourcc formats")
Acked-by: Jason Ekstrand <***@intel.com>
(cherry picked from commit 01c0aa9f058673071f908ed775a76b4415464b5c)

- - - - -
88bbbe85 by Christian Gmeiner at 2018-09-04T15:59:29Z
tegra: fix memory leak

Fixes: 1755f608f52 ("tegra: Initial support")
Signed-off-by: Christian Gmeiner <***@gmail.com>
Reviewed-by: Emil Velikov <***@collabora.com>
(cherry picked from commit d0b09e2dfe7e42a542d6430426c584d74a5bd66e)

- - - - -
9622c17e by Dylan Baker at 2018-09-04T15:59:29Z
cherry-ignore: Add a couple of two fixes warning patches

- - - - -
99082b93 by Dylan Baker at 2018-09-04T16:00:11Z
cherry-ignore: Add patch that needs more significant patches to function

In this case the patch is fine for 18.2 as the required patches are
already present, but they're not in 18.1 and they're too big to be
pulled back.

- - - - -
01967a97 by Juan A. Suarez Romero at 2018-09-04T21:24:02Z
egl/wayland: do not leak wl_buffer when it is locked

If color buffer is locked, do not set its wayland buffer to NULL;
otherwise it can not be freed later.

Rather, flag it in order to destroy it later on the release event.

v2: instruct release event to unlock only or free wl_buffer too (Daniel)

This also fixes dEQP-EGL.functional.swap_buffers_with_damage.* tests.

CC: Daniel Stone <***@fooishbar.org>

- - - - -
9743fd24 by Dylan Baker at 2018-09-07T15:22:13Z
Bump version to 18.1.8

- - - - -
92497d65 by Dylan Baker at 2018-09-07T15:27:26Z
docs: Add release notes for 18.1.8

- - - - -
ad478400 by Dylan Baker at 2018-09-07T17:10:13Z
docs/relnotes: Add sha256 sums for mesa 18.1.8

- - - - -
a985f18e by Marek Olšák at 2018-09-07T17:16:55Z
st/mesa: help fix stencil border color for GL_DEPTH_STENCIL textures

GL_STENCIL_INDEX uses GL_INTENSITY for the border color, which is nicer
to hardware that doesn't read the stencil border value from the X channel.

This fixes a bunch of dEQP tests on Vega & Raven.

Cc: 18.1 18.2 <mesa-***@lists.freedesktop.org>
(cherry picked from commit 725e8ad5590749ca2fa4bd89e1e8007fd20b114e)

- - - - -
2620eb8e by Dylan Baker at 2018-09-07T17:16:55Z
cherry-ignore: Add additional 18.2 patch

- - - - -
37fd6269 by Gert Wollny at 2018-09-07T17:16:55Z
winsys/virgl: correct resource and handle allocation (v2)

Fixes crash with
piglit/bin/map_buffer_range-invalidate CopyBufferSubData \
increment-offset -auto -fbo

* Resize the resource storage already when the count is equal to the
allocated size, fixes:

Invalid write of size 8
at 0xB72E4CF: virgl_drm_add_res (virgl_drm_winsys.c:629)
by 0xB72E4CF: virgl_drm_emit_res (virgl_drm_winsys.c:663)
by 0xB72A44A: virgl_encode_resource_copy_region (virgl_encode.c:776)
by 0xB40CD12: st_copy_buffer_subdata (st_cb_bufferobjects.c:585)
by 0xB244A3B: _mesa_CopyBufferSubData (bufferobj.c:2940)
by 0x109A1E: upload (invalidate.c:169)
by 0x109C2F: piglit_display (invalidate.c:215)
by 0x4F80FBE: run_test (piglit_fbo_framework.c:52)
by 0x4F66E5F: piglit_gl_test_run (piglit-framework-gl.c:229)
by 0x10949D: main (invalidate.c:47)
Address 0xbe07d30 is 0 bytes after a block of size 4,096 alloc'd
at 0x4C31B25: calloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0xB72DAAF: virgl_drm_cmd_buf_create (virgl_drm_winsys.c:567)

* Also resize the space allocated for the handles, fixes:

Invalid write of size 4
at 0xB72E4F0: virgl_drm_add_res (virgl_drm_winsys.c:631)
by 0xB72E4F0: virgl_drm_emit_res (virgl_drm_winsys.c:663)
by 0xB72A44A: virgl_encode_resource_copy_region (virgl_encode.c:776)
by 0xB40CD12: st_copy_buffer_subdata (st_cb_bufferobjects.c:585)
by 0xB244A3B: _mesa_CopyBufferSubData (bufferobj.c:2940)
by 0x109A1E: upload (invalidate.c:169)
by 0x109C2F: piglit_display (invalidate.c:215)
by 0x4F80FBE: run_test (piglit_fbo_framework.c:52)
by 0x4F66E5F: piglit_gl_test_run (piglit-framework-gl.c:229)
by 0x10949D: main (invalidate.c:47)
Address 0xbe08570 is 0 bytes after a block of size 2,048 alloc'd
at 0x4C2FB0F: malloc (
in /usr/lib/valgrind/vgpreload_memcheck-amd64- linux.so)
by 0xB72DAC8: virgl_drm_cmd_buf_create (virgl_drm_winsys.c:572)

Fixes: 4b15b5e803e ("virgl: resize resource bo allocation if we need to.")

v2: - Use REALLOC macro and avoid memory leak when re-allocation fails
- add Fixes tag (both Emil Velikov)
- reorder commit message

Signed-off-by: Gert Wollny <***@collabora.com>
(cherry picked from commit 9b0e8d87233691c1f025002f1da89ed3f8f69583)

- - - - -
527813b2 by Dylan Baker at 2018-09-07T17:16:55Z
meson: Print a message about why a libdrm version was selected

We require a single version of libdrm for all of our libdrm
dependencies (core and driver), but the way this is structured can make
the error message less than helpful, as one driver might be the one
setting the libdrm requirement, while another might be the one that
generates the version failure.

This adds a simple message to the output announcing which libdrm module
set the version, which might be more helpful.

v2: - Use message suggested by Eric Engstrom

Fixes: c445b1d56f47922206de55e557444aadb62e11f6
("meson: Use the same version for all libdrm checks")
Reviewed-by: Eric Engestrom <***@intel.com>
(cherry picked from commit d25a27ec56dd9a722a3b6073ec0b6daa7993b0d7)

- - - - -
06579faa by Mathias Fröhlich at 2018-09-07T17:16:55Z
tnl: Fix green gun regression in xonotic.

Fix an other regression of
mesa: Make gl_vertex_array contain pointers to first order VAO members.
The regression showed up with drivers using the tnl module and
was reproducible using xonotic-glx -benchmark demos/the-big-keybench.dem.

Fixes: 64d2a204805
mesa: Make gl_vertex_array contain pointers to first order VAO members.
Tested-by: Ville Syrjälä <***@linux.intel.com>
Reviewed-by: Ian Romanick <***@intel.com>
Signed-off-by: Mathias Fröhlich <***@web.de>
(cherry picked from commit a6232b69321b465e9733a4b207088d923b75e714)
Conflicts resolved by Dylan

Conflicts:
src/mesa/tnl/t_split_copy.c

- - - - -
67cfeb16 by Timothy Arceri at 2018-09-07T17:16:55Z
glsl: fixer lexer for unreachable defines

If we have something like:

#ifdef NOT_DEFINED
#define A_MACRO(x) \
if (x)
#endif

The # on the #define is not skipped but the define itself is so
this then gets recognised as #if.

Until 28a3731e3f this didn't happen because we ended up in
<HASH>{NONSPACE} where BEGIN INITIAL was called stopping the
problem from happening.

This change makes sure we never call RETURN_TOKEN_NEVER_SKIP for
if/else/endif when processing a define.

Cc: Ian Romanick <***@freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107772

- - - - -
6f43390d by Jason Ekstrand at 2018-09-07T17:16:55Z
anv/pipeline: Only consider double elements which actually exist

The brw_vs_prog_data::double_inputs_read field comes directly from
shader_info::double_inputs which may contain inputs which are not
actually read. Instead of using it directly, AND it with inputs_read
which is only things which are read. Otherwise, we may end up
subtracting too many elements when computing elem_count.

Cc: mesa-***@lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103241
Reviewed-by: Lionel Landwerlin <***@intel.com>
(cherry picked from commit 7b26741806c521279a1b83f2eae40a277d806626)

- - - - -
b5e03dec by Sergii Romantsov at 2018-09-07T17:16:55Z
intel: compiler option msse2 and mstackrealign

Seems in case of 32-bit library, usage of msse2 makes
some stack corruption or incorrect instructions.
Usage with mstackrealign fixes that case.

v2: Fixed meson.

v3: Definition of c_sse2_args moved on the top (L.Landwerlin).
Added mstackrealign for Android's mks where msee4.1 is used.

v4: Added for Vulkan also.

v5: Commit message correction.

CC: <mesa-***@lists.freedesktop.org>
Fixes: 6b05c080f202 (i965: Compile with -msse3)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107779
Signed-off-by: Sergii Romantsov <***@globallogic.com>
Reviewed-by: Dylan Baker <***@pnwbakers.com>
Reviewed-by: Emil Velikov <***@collabora.com>
Reviewed-by: Lionel Landwerlin <***@intel.com>
(cherry picked from commit d709f127927cb0ad40d5bf4eaec33c3c27f7738a)

- - - - -
b14c2b46 by Dylan Baker at 2018-09-07T17:16:55Z
cherry-ignore: add another 18.2 patch

- - - - -
019ff6b4 by Andrii Simiklit at 2018-09-07T17:16:55Z
apple/glx/log: added missing va_end() after va_copy()

Each invocation of va_copy() must be matched by a
corresponding invocation of va_end()

Reviewed-by: Eric Engestrom <***@intel.com>
Fixes: 51691f0767f6 "darwin: Use ASL for logging"
Signed-off-by: Andrii Simiklit <***@globallogic.com>
(cherry picked from commit 267ed29288db478a47d180bd1370a4df60ddb3ef)

- - - - -
4a44ff8b by Andrii Simiklit at 2018-09-07T17:16:55Z
mesa/util: don't use the same 'va_list' instance twice

The first usage of the 'va_list' instance could change it.

Reviewed-by: Eric Engestrom <***@intel.com>
Fixes: 864148d69e1e "util: add util_vasprintf() for Windows (v2)"
Signed-off-by: Andrii Simiklit <***@globallogic.com>
(cherry picked from commit 570cacba7af165175ad40820c5e663db5b1c5066)

- - - - -
a17aed45 by Andrii Simiklit at 2018-09-07T17:16:55Z
mesa/util: don't ignore NULL returned from 'malloc'

We should exit from the function 'util_vasprintf'
with error code -1 for case where 'malloc'
returns NULL

Reviewed-by: Eric Engestrom <***@intel.com>
Fixes: 864148d69e1e "util: add util_vasprintf() for Windows (v2)"
Signed-off-by: Andrii Simiklit <***@globallogic.com>
(cherry picked from commit 65cfe698b0f4ba412198d212c14481a60c1b8389)

- - - - -
ea7df5b7 by Andrii Simiklit at 2018-09-07T17:16:55Z
mesa/util: add missing va_end() after va_copy()

MSDN:
"va_end must be called on each argument list that's initialized
with va_start or va_copy before the function returns."

Reviewed-by: Eric Engestrom <***@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107810
Fixes: c6267ebd6c8a "gallium/util: Stop bundling our snprintf implementation."
Signed-off-by: Andrii Simiklit <***@globallogic.com>
(cherry picked from commit 2930b76cfe1e13e84ac0d88f9c6d709a5a8d4c18)

- - - - -
99ecc5fc by Dylan Baker at 2018-09-07T17:16:55Z
cherry-ignore: Add patches that don't apply cleanly and are for developer tools

- - - - -
1ead1b57 by Timo Aaltonen at 2018-09-10T07:08:37Z
Merge branch 'upstream-unstable' into debian-unstable

- - - - -
798b6207 by Timo Aaltonen at 2018-09-10T07:12:07Z
update the changelog

- - - - -
46432bd5 by Timo Aaltonen at 2018-09-10T07:34:48Z
upload to unstable

- - - - -
08e3909c by Jason Ekstrand at 2018-09-10T17:12:04Z
i965: Workaround the gen9 hw astc5x5 sampler bug

gen9 hardware has a bug in the sampler cache that can cause GPU hangs
whenever an texture with aux compression enabled is in the sampler cache
together with an ASTC5x5 texture. Because we can't control what the
client binds at any given time, we have two options: resolve the CCS or
decompresss the ASTC. Doing a CCS or HiZ resolve is far less drastic
and will likely have a smaller performance impact.

Cc: mesa-***@lists.freedesktop.org
Reviewed-by: Kristian H. Kristensen <***@google.com>
Tested-by: Tapani Pälli <***@intel.com>
Reviewed-by: Topi Pohjolainen <***@intel.com>
(cherry picked from commit f9e630e23dfa3de815026a08e7e767e2ed90da0b)

- - - - -
9f08ea8c by Jason Ekstrand at 2018-09-10T17:12:09Z
anv: Re-emit vertex buffers when the pipeline changes

Some of the bits of VERTEX_BUFFER_STATE such as access type, instance
data step rate, and pitch come from the pipeline.

Cc: mesa-***@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <***@whitecape.org>
(cherry picked from commit c643c5e18d7c647afc6dcc450183b81a62a40998)

- - - - -
3bfed07f by Jason Ekstrand at 2018-09-10T17:12:20Z
anv: Disable the vertex cache when tessellating on SKL GT4

I have no idea if I'm correct about what's going wrong or if this is the
correct fix. However, in my multiple weeks of banging my head on this
hang, a VUE reference counting bug seems to match all the symptoms and
it definitely fixes the hang.

Cc: mesa-***@lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107280
Reviewed-by: Kenneth Graunke <***@whitecape.org>
(cherry picked from commit b08b4b2b25b201df2d667cf70d7f99475e5c7aec)

- - - - -
05985a64 by Jason Ekstrand at 2018-09-10T17:13:27Z
anv: Clamp scissors to the framebuffer boundary

The Vulkan 1.1.81 spec says:

"It is legal for offset.x + extent.width or offset.y + extent.height
to exceed the dimensions of the framebuffer - the scissor test still
applies as defined above. Rasterization does not produce fragments
outside of the framebuffer, so such fragments never have the scissor
test performed on them."

Elsewhere, the Vulkan 1.1.81 spec says:

"The application must ensure (using scissor if necessary) that all
rendering is contained within the render area, otherwise the pixels
outside of the render area become undefined and shader side effects
may occur for fragments outside the render area. The render area
must be contained within the framebuffer dimensions."

Unfortunately, there's some room for interpretation here as to what the
consequences are of having the render area set to exactly the
framebuffer dimensions and having a scissor that is larger than the
framebuffer. Given that GL and other APIs provide automatic clipping to
the framebuffer, it makes sense that applications would assume that
Vulkan does this as well. It costs us very little to play it safe and
just clamp client-provided scissors to the framebuffer dimensions.
Fortunately, the user is required to provide us with at least one
scissor so we don't need to handle the case where they don't.

Fixes: fb2a5ceb3264 "anv: Emit DRAWING_RECTANGLE once at driver..."
Reviewed-by: Kenneth Graunke <***@whitecape.org>
(cherry picked from commit 465e5a868cd58ca7c4ff7476e98231ffd4f3d2bf)

- - - - -
4670daa1 by Dave Airlie at 2018-09-10T17:13:34Z
virgl: don't send a shader create with no data. (v2)

This fixes the situation where we'd send a shader with just the
header and no data.

piglit/glsl-max-varyings test was causing this to happen, and
the renderer fix was breaking it.

v2: drop fprintf

Fixes: a8987b88ff1d "virgl: add driver for virtio-gpu 3D (v2)"
Reviewed-by: Erik Faye-Lund <erik.faye-***@collabora.com>
(cherry picked from commit 240af6149477beb06fdcfc4b0295921448c0fe47)

- - - - -
aeb8b006 by Marek Olšák at 2018-09-11T15:17:31Z
radeonsi: fix HTILE for NPOT textures with mipmapping on SI/CI

VI uses addrlib so it's unaffected.

Cc: 18.1 18.2 <mesa-***@lists.freedesktop.org>
Tested-by: Dieter Nützel <***@nuetzel-hh.de>
(cherry picked from commit a1b9a00f82db79e59e4a743d52bb62c998584690)
Conflicts resolved by Dylan

Conflicts:
src/gallium/drivers/radeonsi/si_texture.c

- - - - -
517c2f1e by Marek Olšák at 2018-09-11T15:18:16Z
r600: fix HTILE for NPOT textures with mipmapping

Cc: 18.1 18.2 <mesa-***@lists.freedesktop.org>
Tested-by: Dieter Nützel <***@nuetzel-hh.de>
(cherry picked from commit da72b6296cfa5c5fa92d840d8a69c55df19d13f5)

- - - - -
09196d4b by Marek Olšák at 2018-09-11T15:18:28Z
radeonsi: fix printing a BO list into ddebug reports

important for debugging

Cc: 18.1 18.2 <mesa-***@lists.freedesktop.org>
Tested-by: Dieter Nützel <***@nuetzel-hh.de>
(cherry picked from commit 662db03577377cd0acca279ca482ea8e9a4e1704)

- - - - -
3a23ba5a by Christopher Egert at 2018-09-11T15:19:02Z
radeon: fix ColorMask

Since commit af3685d14936844f79e6f372b4b258e29375f21b various OpenGL applications regressed
on the classic mesa radeon driver.

Signed-off-by: Christopher Egert <***@gmail.com>
CC: 18.1 18.2 <mesa-***@lists.freedesktop.org>
Signed-off-by: Marek Olšák <***@amd.com>
(cherry picked from commit 51995f69204e8a751cb1a3e502e013acf7fff031)

- - - - -
eb6abe40 by Dylan Baker at 2018-09-11T15:19:39Z
cherry-ignore: Add more 18.2 patches

- - - - -
e89a4589 by Michel Dänzer at 2018-09-12T15:46:26Z
loader/dri3: Only wait for back buffer fences in dri3_get_buffer

We don't need to wait before drawing to the fake front buffer, as front
buffer rendering by definition is allowed to produce artifacts.

Fixes hangs in some cases when re-using the fake front buffer, due to it
still being busy (i.e. in use for presentation).

Cc: mesa-***@lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/106404
Bugzilla: https://bugs.freedesktop.org/107757
Tested-by: Olivier Fourdan <***@redhat.com>
Reviewed-by: Thomas Hellstrom <***@vmware.com>
(cherry picked from commit aefac10fecc9ec70feb5923ce3200902f67182ba)

- - - - -
1816f280 by Erik Faye-Lund at 2018-09-12T15:46:47Z
winsys/virgl: avoid unintended behavior

If we end up never taking the loop that writes ret, we can end up with
an uninitialized value, and if we're *really* unlucky, that value can
be -1, causing us to go down an error-path instead of a success path.

This was obviously not intended, so let's just initialize this to zero.

Noticed by Valgrind:

Conditional jump or move depends on uninitialised value(s)
at 0xBA640A0: virgl_drm_winsys_resource_cache_create (virgl_drm_winsys.c:348)
by 0xBA62FCF: virgl_buffer_create (virgl_buffer.c:170)
by 0xBA605AC: virgl_resource_create (virgl_resource.c:60)
by 0xBCF816F: bufferobj_data (st_cb_bufferobjects.c:344)
by 0xBCF816F: st_bufferobj_data (st_cb_bufferobjects.c:390)
by 0xBB7E836: vbo_use_buffer_objects (vbo_exec_api.c:1136)
by 0xBCFCC6E: st_create_context_priv (st_context.c:414)
by 0xBCFD3CD: st_create_context (st_context.c:590)
by 0xBBB30CA: st_api_create_context (st_manager.c:896)
by 0xB981E76: dri_create_context (dri_context.c:155)
by 0xB97BDCE: driCreateContextAttribs (dri_util.c:473)
by 0x5288331: dri3_create_context_attribs (dri3_glx.c:309)
by 0x5264D64: glXCreateContextAttribsARB (create_context.c:78)

Fixes: a8987b88ff1 ("virgl: add driver for virtio-gpu 3D (v2)")
Signed-off-by: Erik Faye-Lund <erik.faye-***@collabora.com>
(cherry picked from commit eaa718588ee97241cdbfea0b49bc30d93a99667c)

- - - - -
33f5a21c by Dylan Baker at 2018-09-14T16:09:14Z
cherry-ignore: add 18.2 patchs

- - - - -
cf54d5f4 by Erik Faye-Lund at 2018-09-14T16:09:32Z
virgl: adjust strides when mapping temp-resources

When we're mapping temp-resources, we clip the resource to the
transfer-box, which means the stride might not be correct any more.

So let's update the stride from the temp-resource, and recompute the
layer-stride.

This fixes crashes when running dEQP with --deqp-gl-config-name=rgba8888d24s8ms4

Signed-off-by: Erik Faye-Lund <erik.faye-***@collabora.com>
Fixes: a8987b88ff1 "virgl: add driver for virtio-gpu 3D (v2)"
Reviewed-by: Dave Airlie <***@redhat.com>
(cherry picked from commit fa5e9f1f73f64ac089f8efd5b101a77d06d22fcd)

- - - - -
649aff1a by Pierre Moreau at 2018-09-14T16:12:08Z
nvir: Always split 64-bit IMAD/IMUL operations

Those operations do not map to actual hardware instructions, therefore
those should always be lowered to 32-bit instructions.

Fixes: 009c54aa7af "nv50/ir: Split 64-bit integer MAD/MUL operations"

Signed-off-by: Pierre Moreau <***@free.fr>
Reviewed-by: Karol Herbst <***@redhat.com>
Signed-off-by: Karol Herbst <***@redhat.com>
(cherry picked from commit 21b92b3464193a203e069f50c21ebec146ae0215)
Conflicts resolved by Dylan

Conflicts:
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp

- - - - -
3a34419c by Josh Pieper at 2018-09-17T20:31:51Z
st/mesa: Validate the result of pipe_transfer_map in make_texture (v2)

When using Freecad, I was getting intermittent segfaults inside of
mesa. I traced it down to this path in st_cb_drawpixels.c where the
result of pipe_transfer_map wasn't being checked. In my case, it was
returning NULL because nouveau_bo_new returned ENOENT. I'm by no
means a mesa developer, but this patch solves the problem for me and
seems reasonable enough.

v2: Marek - also unmap the PBO and release the texture, and call
the make_texture function sooner for less cleanup

Cc: 18.1 18.2 <mesa-***@lists.freedesktop.org>
(cherry picked from commit 936e0dcd619bc092b9869b4be2e1b20c3631131f)

- - - - -
da9fc5c1 by Bas Nieuwenhuizen at 2018-09-17T20:32:39Z
radv: Use build ID if available for cache UUID.

To get an useful UUID for systems that have a non-useful mtime
for the binaries.

I started using SHA1 to ensure we get reasonable mixing in the
various possibilities and the various build id lengths.

CC: <mesa-***@lists.freedesktop.org>
Reviewed-by: Timothy Arceri <***@itsqueeze.com>
(cherry picked from commit d17443a459383fdd7018fa879134f05b5daff1e1)

- - - - -
3366da58 by Kenneth Feng at 2018-09-18T23:31:32Z
amd: Add Picasso device id

No changes here compared to Raven.

Reviewed-by: Marek Olšák <***@amd.com>
Reviewed-by: Huang Rui <***@amd.com>
Signed-off-by: Kenneth Feng <***@amd.com>
Signed-off-by: Huang Rui <***@amd.com>
Cc: 18.1 18.2 <mesa-***@lists.freedesktop.org>
(cherry picked from commit 4490fce16631fbc098f2fcf3f2c4b73f32a974a5)

- - - - -
551b07ab by Jason Ekstrand at 2018-09-18T23:31:51Z
anv/query: Write both dwords in emit_zero_queries

Each query slot is a uint64_t and we were only zeroing half of it.

Fixes: 7ec6e4e68980 "anv/query: implement multiview interactions"
Reviewed-by: Lionel Landwerlin <***@intel.com>
(cherry picked from commit 07e214f1ce263edcecb674d6d2f48569fa1d12ed)

- - - - -
e402a7ef by Dylan Baker at 2018-09-18T23:37:34Z
cherry-ignore: add a patch that was reverted on master

- - - - -
b38445b2 by Bas Nieuwenhuizen at 2018-09-18T23:40:19Z
radv: Only allow 16 user SGPRs for compute on GFX9+.

Apparently for compute there are only 16 instead of the 32 for the
graphics path.

Fixes dEQP-VK.binding_model.descriptorset_random.sets16.noarray.ubolimitlow.sbolimitlow.imglimitlow.noiub.comp.0

CC: <mesa-***@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <***@gmail.com>
(cherry picked from commit 0dd8189f159258ad8684036b0d696dbb58a268ca)
Conflicts Resolved by Dylan

Conflicts:
src/amd/vulkan/radv_nir_to_llvm.c

- - - - -
59c708ff by Bas Nieuwenhuizen at 2018-09-18T23:43:55Z
radv: Set the user SGPR MSB for Vega.

Otherwise using 32 user SGPRs would be broken.

CC: <mesa-***@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <***@gmail.com>
(cherry picked from commit d97c892584cd0641913de2635689c6b59c98816e)
Conflicts resolved by Dylan

Conflicts:
src/amd/vulkan/radv_shader.c

- - - - -
0be61a9f by Michal Srb at 2018-09-20T15:51:22Z
st/dri: don't set queryDmaBufFormats/queryDmaBufModifiers if the driver does not implement it

This is equivalent to commit a65db0ad1c3, but for dri_kms_init_screen. Without
this gbm_dri_is_format_supported always returns false.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104926
Fixes: e14fe41e0bf ("st/dri: implement createImageFromRenderbuffer(2)")
Reviewed-by: Emil Velikov <***@collabora.com>
Reviewed-by: Adam Jackson <***@redhat.com>
Tested-by: Adam Williamson <***@fedoraproject.org>
(cherry picked from commit 194bf0a2e01769f4b29df06febf27ce340c1cd68)

- - - - -
80d2139e by Mauro Rossi at 2018-09-20T20:29:39Z
android: broadcom/genxml: fix collision with intel/genxml header-gen macro

Backport to mesa 18.1
Fixes the following building error, happening when building both intel and broadcom:

Gen Header: libmesa_broadcom_genxml_32 <= v3d_packet_v21_pack.h
FAILED: out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_broadcom_genxml_intermediates/broadcom/cle/v3d_packet_v21_pack.h
/bin/bash -c "python external/mesa/src/broadcom/cle/gen_pack_header.py \
external/mesa/src/broadcom/cle/v3d_packet_v21.xml \
> out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_broadcom_genxml_intermediates/broadcom/cle/v3d_packet_v21_pack.h"
Traceback (most recent call last):
File "external/mesa/src/broadcom/cle/gen_pack_header.py", line 626, in <module>
p = Parser(sys.argv[2])
IndexError: list index out of range

header-gen macro is already defined by Intel genxml building rules
and the existing header-gen does not have the $(PRIVATE_VER) argument,
infact the bash command line logged in the building error is missing
exactly $(PRIVATE_VER) argument

Renaming the macro as pack-header-gen in src/broadcom/Android.genxml.mk
solves the building error, another possible way is to keep the gen rules
commands expanded and not use the macros.

Fixes: 7f80a9ff13 ("vc4: Introduce XML-based packet header generation like Intel's.")
Acked-by: Eric Anholt <***@anholt.net>
Reviewed-by: Emil Velikov <***@collabora.com>
Signed-off-by: Mauro Rossi <***@gmail.com>

- - - - -
9b850150 by Mauro Rossi at 2018-09-20T20:29:40Z
android: broadcom/cle: add gallium include path

Fixes the following building error:

In file included from external/mesa/src/broadcom/cle/v3d_decoder.c:38:
In file included from external/mesa/src/broadcom/cle/v3d_packet_helpers.h:29:
external/mesa/src/gallium/auxiliary/util/u_math.h:42:10:
fatal error: 'pipe/p_compiler.h' file not found
^~~~~~~~~~~~~~~~~~~
1 error generated.

Fixes: 5b102160ae ("broadcom/genxml: Introduce a V3D packet/struct decoder.")
Cc: "18.2" <mesa-***@lists.freedesktop.org>
Acked-by: Eric Anholt <***@anholt.net>
Reviewed-by: Emil Velikov <***@collabora.com>
Signed-off-by: Mauro Rossi <***@gmail.com>

- - - - -
309945ec by Mauro Rossi at 2018-09-20T20:29:41Z
android: broadcom/cle: export the broadcom top level path headers

Fixes the following building error in vc4 build:

In file included from external/mesa/src/gallium/drivers/vc4/kernel/vc4_render_cl.c:34:
In file included from external/mesa/src/gallium/drivers/vc4/kernel/vc4_drv.h:27:
In file included from external/mesa/src/gallium/drivers/vc4/vc4_simulator_validate.h:34:
In file included from external/mesa/src/gallium/drivers/vc4/vc4_context.h:39:
In file included from external/mesa/src/gallium/drivers/vc4/vc4_cl.h:56:
out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_broadcom_genxml_intermediates/broadcom/cle/v3d_packet_v21_pack.h:12:10:
fatal error: 'cle/v3d_packet_helpers.h' file not found
^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Fixes: 5b102160ae ("broadcom/genxml: Introduce a V3D packet/struct decoder.")
Cc: "18.2" <mesa-***@lists.freedesktop.org>
Acked-by: Eric Anholt <***@anholt.net>
Reviewed-by: Emil Velikov <***@collabora.com>
Signed-off-by: Mauro Rossi <***@gmail.com>

- - - - -
6819121e by Dylan Baker at 2018-09-20T20:30:54Z
cherry-ignore: one final update

- - - - -
a76c43fc by Bas Nieuwenhuizen at 2018-09-20T21:53:59Z
radv: Fix driver UUID SHA1 init.

Was missing the init, found by Emil.

Fixes: d17443a4593 "radv: Use build ID if available for cache UUID."
CC: <mesa-***@lists.freedesktop.org>
Reviewed-by: Eric Engestrom <***@intel.com>
Reviewed-by: Samuel Pitoiset <***@gmail.com>
(cherry picked from commit 0a77e70d1040eb98253a172908785303c3abdbd5)

- - - - -
634f4f98 by Dylan Baker at 2018-09-21T16:02:55Z
Bump version to 18.1.9

- - - - -
f57f37f3 by Dylan Baker at 2018-09-24T15:43:25Z
docs: Add 18.1.9 release notes

- - - - -
f989b264 by Andreas Boll at 2018-10-10T14:09:49Z
Merge tag 'mesa-18.1.9' into debian-unstable

mesa-18.1.9

- - - - -
ca5e3971 by Andreas Boll at 2018-10-10T14:10:11Z
Bump changelog

- - - - -
861acd47 by Jan Vesely at 2018-10-10T14:11:08Z
clover: Add explicit virtual destructor to argument class

It is needed to destroy the v vector in scalar_argument
Fixes memory leaks on parameter set/bind.

v2: Drop redundant sclara_argument destructor

Signed-off-by: Jan Vesely <***@rutgers.edu>
Reviewed-by: Francisco Jerez <***@riseup.net>
(cherry picked from commit 2f1ad72ac17268989d4033e8e3f9460c68eae462)

- - - - -
c9e6fe5c by Andreas Boll at 2018-10-10T14:18:09Z
Document the cherry-pick in debian/changelog

- - - - -
27538291 by Andreas Boll at 2018-10-10T14:54:27Z
Upload to unstable.

- - - - -
c317192f by Andreas Boll at 2018-10-31T17:48:25Z
Merge branch 'debian-unstable' into debian-stretch-backports

- - - - -
6c7a95b6 by Andreas Boll at 2018-10-31T17:48:46Z
Backport to stretch.

- - - - -


30 changed files:

- VERSION
- bin/.cherry-ignore
- debian/changelog
- debian/control
- docs/install.html
- docs/relnotes/18.1.6.html
- + docs/relnotes/18.1.7.html
- + docs/relnotes/18.1.8.html
- + docs/relnotes/18.1.9.html
- include/pci_ids/radeonsi_pci_ids.h
- meson.build
- src/amd/common/sid.h
- src/amd/vulkan/Makefile.am
- src/amd/vulkan/radv_device.c
- src/amd/vulkan/radv_formats.c
- src/amd/vulkan/radv_image.c
- src/amd/vulkan/radv_nir_to_llvm.c
- src/amd/vulkan/radv_pipeline.c
- src/amd/vulkan/radv_shader.c
- src/amd/vulkan/radv_shader.h
- src/amd/vulkan/radv_shader_info.c
- src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
- src/broadcom/Android.cle.mk
- src/broadcom/Android.genxml.mk
- src/compiler/glsl/glcpp/glcpp-lex.l
- src/compiler/glsl/glcpp/glcpp.h
- src/compiler/glsl/ir.h
- src/compiler/glsl/link_interface_blocks.cpp
- src/compiler/nir/nir_opt_algebraic.py
- src/egl/drivers/dri2/egl_dri2.c


The diff was not included because it is too large.


View it on GitLab: https://salsa.debian.org/xorg-team/lib/mesa/compare/f3d7fd6ff32998ad0cec5b4794a22b1c6f49cba3...6c7a95b63f253df24c1c7c53434c8ee02af3df2e
--
View it on GitLab: https://salsa.debian.org/xorg-team/lib/mesa/compare/f3d7fd6ff32998ad0cec5b4794a22b1c6f49cba3...6c7a95b63f253df24c1c7c53434c8ee02af3df2e
You're receiving this email because of your account on salsa.debian.org.
Loading...