Andreas Boll pushed to branch debian-unstable at X Strike Force / lib / mesa


Commits:
2a3446af by Dylan Baker at 2018-07-27T14:06:08Z
docs: Add sha-256 sums for 18.1.5

- - - - -
1be32930 by Jan Vesely at 2018-07-27T14:10:50Z
clover: Reduce wait_count in abort path.

Trigger waiter condition variable.
Passes 'events' CTS on carrizo and turks.
v2: reduce to 0

Cc: [email protected]
Signed-off-by: Jan Vesely <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
(cherry picked from commit 1e8b8e0878fc6342d6530fdaa04239315f511c50)

- - - - -
b563370e by Jan Vesely at 2018-07-27T14:10:50Z
clover: Don't extend illegal integer types.

It's OK to pass them in memory, which is what kernel invocation needs.
Fixes regressions since llvm r337535 ("Reapply "AMDGPU: Fix handling 
of alignment padding in DAG argument lowering"):
        scalar-arithmetic-char
        scalar-arithmetic-uchar
        scalar-arithemtic-short
        scalar-arithmetic-ushort
        scalar-comparison-char
        scalar-comparison-uchar
        scalar-comparison-short
        scalar-comparison-ushort

Cc: [email protected]
Signed-off-by: Jan Vesely <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
(cherry picked from commit c2942141ae69e0a9040139dfddefcaf7f211c75b)
Merge conflicts resolved by Dylan

Conflicts:
        src/gallium/state_trackers/clover/llvm/compat.hpp

- - - - -
7699951a by Mauro Rossi at 2018-07-28T14:07:11Z
radv: generate entrypoints for VK_ANDROID_native_buffer

Patch changes radv entrypoints generator to not skip this extension even
though it is set as disabled in the vk.xml

Reference: 63525ba730 ("android: enable VK_ANDROID_native_buffer")
Fixes: 69f447553c ("vulkan: Drop vk_android_native_buffer.xml")
Signed-off-by: Mauro Rossi <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Robert Foss <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
(cherry picked from commit 1eb65c51adc41d211cea18180e2102c1ea27f195)

- - - - -
b4eeb2df by Mauro Rossi at 2018-07-28T14:07:18Z
radv: move vk_format_table.c to generated sources

Android build system will try to compile vk_format_table.c
as a shipped source, but at compile time it will be missing,
we move it to generated source, where it belongs

Fixes: f4e499ec791 ("radv: add initial non-conformant radv vulkan 
driver")
Signed-off-by: Mauro Rossi <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Robert Foss <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
(cherry picked from commit c67b36c8a130734beaca560b94976f9cba244b80)

- - - - -
be9dfba5 by Jason Ekstrand at 2018-07-30T17:35:51Z
nir: Take if uses into account in ssa_def_components_read

Fixes: d800b7daa5440 "nir: Add a helper for figuring out what..."
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
(cherry picked from commit 9a4ab4c120b97397321b8a86abdbdbe96ee42141)

- - - - -
7c3f43cb by Karol Herbst at 2018-07-30T17:35:58Z
nir/lower_int64: mark all metadata as dirty

v2: use nir_metadata_preserve
    preserve metadata in case of !progress

Fixes: 074f5ba0b56b12ddaca81eac3d9ed19da7054297
       "nir: Add a simple int64 lowering pass"
Signed-off-by: Karol Herbst <[email protected]>
(cherry picked from commit bc0e0c28186740493584da09d20587aa49732f96)

- - - - -
8e49c2eb by Dave Airlie at 2018-07-31T15:57:19Z
r600: reduce num compute threads to 1024.

I copied this value from radeonsi, but it was wrong, 1024
seems to be correct answer from looking at gpuinfo.

This should fix a few compute shader related hangs. (at least in CTS)

Cc: <[email protected]>
(airlied: pushed because it avoids hangs)

(cherry picked from commit 9039cf70fa0b785f390c649486e12d6c10e9142b)

- - - - -
0a19e010 by Christian Gmeiner at 2018-07-31T15:57:29Z
etnaviv: fix typo in query names

Fixes: d0bed0b4944d ("etnaviv: support HI performance counters")
Cc: [email protected]
Signed-off-by: Christian Gmeiner <[email protected]>
Reviewed-by: Chris Healy <[email protected]>
(cherry picked from commit e1d4882d05dab49395be459f34b1559292d5b6f6)

- - - - -
948e06a4 by Marek Olšák at 2018-08-01T16:37:47Z
ac/surface: fix MSAA corruption on Vega due to FMASK tile swizzle

a needle in the haystack?

Cc: 18.1 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
(cherry picked from commit c5c6e0187fd5d535c304ca3fd62de0f5e636c0c2)

- - - - -
88b6d644 by Olivier Fourdan at 2018-08-01T16:38:18Z
dri3: For 1.2, use root window instead of pixmap drawable

get_supported_modifiers() and pixmap_from_buffers() requests both
expect a window as drawable, passing a pixmap will fail as the Xserver
will fail to match the given drawable to a window.

That leads to dri3_alloc_render_buffer() to return NULL and breaks
rendering when using GLX_DOUBLEBUFFER on pixmaps.

Query the root window of the pixmap on first init, and use the root
window instead of the pixmap drawable for get_supported_modifiers()
and pixmap_from_buffers().

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107117
Fixes: 069fdd5 ("egl/x11: Support DRI3 v1.1")
Signed-off-by: Olivier Fourdan <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
(cherry picked from commit 03a61b977e1f6adb64658aa059ce53e766ff9ad9)

- - - - -
dbcc6dec by Vlad Golovkin at 2018-08-02T18:01:49Z
swr: Remove unnecessary memset call

Zeroing memory after calloc is not necessary. This also allows to avoid
possible crash when allocation fails, because memset is called before
checking screen for NULL.

Fixes: a29d63ecf71546c4798c6 "swr: refactor swr_create_screen to allow
                              for proper cleanup on error"
Reviewed-by: Eric Engestrom <[email protected]>
(cherry picked from commit 9d3a2394e4d3f91f1e23a971ce34aaf031a1e777)

- - - - -
7574119e by Andres Gomez at 2018-08-02T18:01:54Z
ddebug: use util_snprintf() in dd_get_debug_filename_and_mkdir

Instead of plain snprintf(). To fix the MSVC 2013 build:

  Compiling src\gallium\auxiliary\driver_ddebug\dd_draw.c ...
dd_draw.c
c:\projects\mesa\src\gallium\auxiliary\driver_ddebug\dd_util.h(60) : warning 
C4013: 'snprintf' undefined; assuming extern returning int

...

gallium.lib(dd_draw.obj) : error LNK2001: unresolved external symbol _snprintf
build\windows-x86-debug\gallium\targets\graw-gdi\graw.dll : fatal error 
LNK1120: 1 unresolved externals
scons: *** [build\windows-x86-debug\gallium\targets\graw-gdi\graw.dll] Error 
1120
scons: building terminated because of errors.

Fixes: 6ff0c6f4ebc ("gallium: move ddebug, noop, rbug, trace to auxiliary 
to improve build times")
Cc: Marek Olšák <[email protected]>
Cc: Brian Paul <[email protected]>
Cc: Roland Scheidegger <[email protected]>
Cc: Nicolai Hähnle <[email protected]>
Signed-off-by: Andres Gomez <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
(cherry picked from commit 1090e97e77fcde03552320b8262f14e3f0367391)

- - - - -
30063730 by Andres Gomez at 2018-08-02T18:02:03Z
gallium/aux/util: use util_snprintf() in test_texture_barrier

Instead of plain snprintf(). To fix the MSVC 2013 build:

  Compiling src\gallium\auxiliary\util\u_tests.c ...
u_tests.c
src\gallium\auxiliary\util\u_tests.c(624) : warning C4013: 'snprintf' 
undefined; assuming extern returning int

...

gallium.lib(u_tests.obj) : error LNK2019: unresolved external symbol _snprintf 
referenced in function _test_texture_barrier
build\windows-x86-debug\gallium\targets\graw-gdi\graw.dll : fatal error 
LNK1120: 1 unresolved externals
scons: *** [build\windows-x86-debug\gallium\targets\graw-gdi\graw.dll] Error 
1120
scons: building terminated because of errors.

Fixes: 56342c97ee7 ("gallium/u_tests: test FBFETCH and shader-based 
blending with MSAA")
Cc: Marek Olšák <[email protected]>
Cc: Brian Paul <[email protected]>
Cc: Roland Scheidegger <[email protected]>
Cc: Dieter Nützel <[email protected]>
Signed-off-by: Andres Gomez <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 18d9dc179f78f68e598cb21143743dbd71197c93)

- - - - -
15f579f4 by Andres Gomez at 2018-08-02T18:02:10Z
glsl: use util_snprintf()

Instead of plain snprintf(). To fix the MSVC 2013 build.

Fixes: 6ff0c6f4ebc ("gallium: move ddebug, noop, rbug, trace to auxiliary 
to improve build times")
Cc: Marek Olšák <[email protected]>
Cc: Brian Paul <[email protected]>
Cc: Roland Scheidegger <[email protected]>
Signed-off-by: Andres Gomez <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 9d220fa950850d751fbbbc2cd4ec24d024fcad70)

- - - - -
2d149061 by Jason Ekstrand at 2018-08-02T18:02:26Z
i965/fs: Flag all slots of a flat input as flat

Otherwise, only the first vec4 of a matrix or other complex type will
get marked as flat and we'll interpolate the others.  This was caught by
a dEQP test which started failing because it did a SSO vs. non-SSO
comparison.  Previously, we did the interpolation wrong consistently in
both versions.  However, with one of Tim Arceri's NIR linkingpatches, we
started splitting the matrix input into vectors at link time in the
non-SSO version and it started getting correctly interpolated which
didn't match the broken SSO version.  As of this commit, they both get
correctly interpolated.

Fixes: e61cc87c757f8bc "i965/fs: Add a flat_inputs field to prog_data"
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
(cherry picked from commit 57804efa885074866e1388191b5f48680c6151da)

- - - - -
c1e67f0b by Dylan Baker at 2018-08-02T18:02:31Z
nir/meson: fix c vs cpp args for nir test

Fixes: d1992255bb29054fa51763376d125183a9f602f3
       ("meson: Add build Intel "anv" vulkan driver")
Signed-off-by: Dylan Baker <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
(cherry picked from commit 34998aae18b1435d6af70c64eaf50a77e7410058)

- - - - -
a79ed78b by Dylan Baker at 2018-08-02T18:02:36Z
gallium: fix ddebug on windows

By including the proper headers for getpid and for mkdir.

Fixes: 6ff0c6f4ebcb87ea6c6fe5a4ba90b548f666067d
       ("gallium: move ddebug, noop, rbug, trace to auxiliary to improve 
build times")
Signed-off-by: Dylan Baker <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
(cherry picked from commit 2877b6555c51e896afbc9b8b46ba62a076ccbbc6)

- - - - -
2888dc65 by Jordan Justen at 2018-08-02T18:18:00Z
i965, anv: Use INTEL_DEBUG for disk_cache driver flags

Since various options within INTEL_DEBUG could impact code generation,
we need to set the disk cache driver_flags parameter based on the
INTEL_DEBUG flags in use.

An example that will affect the program generated by i965 is the
INTEL_DEBUG=nocompact option.

The DEBUG_DISK_CACHE_MASK value is added to mask the settings of
INTEL_DEBUG that can affect program generation.

v2:
 * Use driver_flags (Tim)
 * Also update Anvil (Jason)

Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
(cherry picked from commit 2b3064c07316057755a3fbb732d0e315f25aff8a)

Merge conflicts resolved by Dylan
Pulled in to apply next patch

Conflicts:
        src/intel/vulkan/anv_device.c

- - - - -
7a1e5f9b by Jordan Justen at 2018-08-02T18:23:37Z
i965: Disable shader cache with INTEL_DEBUG=shader_time

Shader time hard codes an index of the shader time buffer within the
gen program.

In order to support shader time in the disk shader cache, we'd need to
add the shader time index into the program key. This should work, but
probably is not worth it for this particular debug feature.

Therefore, let's just disable the disk shader cache if the shader time
debug feature is used.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106382
Fixes: 96fe36f7acc "i965: Enable disk shader cache by default"
Cc: Eero Tamminen <[email protected]>
Cc: Kenneth Graunke <[email protected]>
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
(cherry picked from commit 3887700dfd7597fba654a4a713c274213a4a8755)

Merged conflicts resolved by Dylan

Conflicts:
        src/mesa/drivers/dri/i965/brw_disk_cache.c

- - - - -
a8d32e8a by Dylan Baker at 2018-08-06T16:20:45Z
cherry-ignore: add patches that get-pick-list is finding in error

- - - - -
7f818fd3 by Karol Herbst at 2018-08-06T16:22:17Z
nvc0/ir: return 0 in imageLoad on incomplete textures

We already guarded all OP_SULDP against out of bound accesses, but we
ended up just reusing whatever value was stored in the dest registers.

Fixes CTS test shader_image_load_store.incomplete_textures

v2: fix for loads not ending up with predicates (bindless_texture)
v3: fix replacing the def

Cc: <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Signed-off-by: Karol Herbst <[email protected]>
(cherry picked from commit c3325097be93d6374a6b5f9fb5eee0878698ef77)
Conflicts resolved by Dylan

Conflicts:
        src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.h

- - - - -
3ca69de0 by Jon Turney at 2018-08-06T16:27:05Z
meson: use correct keyword to fix a meson warning

With a sufficently recent meson, the following warning is produced:

WARNING: Passed invalid keyword argument "extra_args".
WARNING: This will become a hard error in the future.

It seems that compiler.links(args:) is meant here.

Signed-off-by: Jon Turney <[email protected]>
Reviewed-and-Tested-by: Eric Engestrom <[email protected]>
Reviewed-by: Dylan Baker <[email protected]>
(cherry picked from commit a48c0659e12bfb2d715cceca75eff24ae6024bba)

- - - - -
3e0dbfde by Gert Wollny at 2018-08-07T19:03:54Z
meson, install_megadrivers: Also remove stale symlinks

os.path.exists doesn't return True for stale symlinks, but they are in
the way later, when a link/file with the same name is to be created.
For instance it is conceivable that the pointed to file is replaced by
a file with a new name, and then the symlink is dead.

To handle this check specifically for all existing symlinks to be
removed. (This bugged me for some time with a link libXvMCr600.so
always being in the way of installing this file)

v2: use only os.lexist and replace all instances of os.exist (Dylan Baker)

v3: handle directory check correctly (Eric Engestrom)

Fixes: f7f1b30f81e842db6057591470ce3cb6d4fb2795
       ("meson: extend install_megadrivers script to handle 
symmlinking")

Reviewed-by: Eric Engestrom <[email protected]>(v2 minus dir check)
Reviewed-by: Dylan Baker <[email protected]>
Signed-off-by: Gert Wollny <[email protected]>
(cherry picked from commit 7a46b2d6418aa1adedf5621ad1a2a43676785851)
Conflicts resolved by Dylan

Conflicts:
        bin/install_megadrivers.py

- - - - -
3daf7ff6 by Eric Anholt at 2018-08-07T19:05:38Z
vc4: Fix a leak of the no-vertex-elements workaround BO.

Fixes: bd1925562ad1 ("vc4: Convert the driver to emitting the shader 
record using pack macros.")
(cherry picked from commit 9507e036994018d3038e6263b98c53b0c916d2cd)

- - - - -
695a5159 by Emil Velikov at 2018-08-07T19:05:43Z
swr: don't export swr_create_screen_internal

With earlier rework the user and provider of the symbol are within the
same binary. Thus there's no point in exporting the function.

Spotted while reviewing patch from Chuck, that nearly added another
unneeded PUBLIC function.

Cc: Chuck Atkins <[email protected]>
Cc: Tim Rowley <[email protected]>
Fixes: f50aa21456d "(swr: build driver proper separate from 
rasterizer")
Signed-off-by: Emil Velikov <[email protected]>
Tested-by: Chuck Atkins <[email protected]>
Reviewed-By: George Kyriazis 
<[email protected]<mailto:[email protected]>>
Tested-by: Chuck Atkins 
<[email protected]<mailto:[email protected]>>
(cherry picked from commit 54d844897fe0afea4b5ddf08565af49a8191d808)

- - - - -
f2d3373e by Dylan Baker at 2018-08-07T19:08:22Z
cherry-ignore: Add some additional patches that are for 18.2

- - - - -
ec7f550e by Eric Anholt at 2018-08-08T16:19:52Z
vc4: Respect a sampler view's first_layer field.

Fixes texturing from EGL images created from cubemap faces, as in
dEQP-EGL.functional.image.create.gles2_cubemap_negative_x_rgba_texture

Cc: [email protected]
(cherry picked from commit 9ab6912a00ec29f5d1d9cebc7d3e32ae235419e8)

- - - - -
ff8c3747 by Eric Anholt at 2018-08-08T16:19:58Z
vc4: Ignore samplers for finding uniform offsets.

Fixes:
dEQP-GLES2.shaders.struct.uniform.sampler_array_fragment
dEQP-GLES2.shaders.struct.uniform.sampler_array_vertex
dEQP-GLES2.shaders.struct.uniform.sampler_nested_fragment
dEQP-GLES2.shaders.struct.uniform.sampler_nested_vertex

Cc: [email protected]
(cherry picked from commit 69158c452bb39cd3d12110dd623aff09e771fa77)

- - - - -
7339855b by Emil Velikov at 2018-08-08T16:20:04Z
automake: require shared glapi when using DRI based libGL

This has been a requirement for ages, yet it seems like we never
explicitly errored out during configure.

CC: <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Adam Jackson <[email protected]>
(cherry picked from commit a7ea7511ba76c0a83eec84dfc9c14c82b5c82dc4)

- - - - -
8691317f by Emil Velikov at 2018-08-08T16:20:11Z
autotools: error out when using the broken --with-{gl, osmesa}-lib-name

The toggles were broken with the introduction of --enable-mangling.
Fixing that up might be possible, but it's not worth the complexity
since one can rename the libraries at any point.

CC: <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Adam Jackson <[email protected]>
(cherry picked from commit d5ac23647110fd530f9bf5002762587be446866d)

- - - - -
db3ff90e by Emil Velikov at 2018-08-08T16:20:17Z
autotools: error out when building with mangling and glvnd

It's not a thing that can work, nor is a wise idea to attempt.

v2: Tweak error message (Dylan)

CC: <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Adam Jackson <[email protected]> (v1)
(cherry picked from commit 25a9450a44b3b572fba81e6cafe33f3367252499)

- - - - -
0c927e8d by Emil Velikov at 2018-08-08T16:20:23Z
autotools: use correct gl.pc LIBS when using glvnd

This is more of a hack, since glvnd itself should be providing the file.
Until that happens, ensure the libs is correctly set to -lGL

CC: <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Adam Jackson <[email protected]>
(cherry picked from commit 315c46cfdc3dbd4d51b74ab26df693725e947724)

- - - - -
6cffbd96 by Juan A. Suarez Romero at 2018-08-09T15:58:44Z
wayland/egl: update surface size on window resize

According to EGL 1.5 spec, section 3.10.1.1 ("Native Window 
Resizing"):

  "If the native window corresponding to _surface_ has been resized
   prior to the swap, _surface_ must be resized to match. _surface_ will
   normally be resized by the EGL implementation at the time the native
   window is resized. If the implementation cannot do this transparently
   to the client, then *eglSwapBuffers* must detect the change and
   resize surface prior to copying its pixels to the native window."

So far, resizing a native window in Wayland/EGL was interpreted in Mesa
as a request to resize, which is not executed until the first draw call.
And hence, surface size is not updated until executing it. Thus,
querying the surface size with eglQuerySurface() after a window resize
still returns the old values.

This commit updates the surface size values as soon as the resize is
done, even when the real resize is done in the draw call. This makes the
semantics that any native window resize request take effect inmediately,
and if user calls eglQuerySurface() it will return the new resized
values.

v2: update surface size if there isn't a back surface (Daniel)

CC: Daniel Stone <[email protected]>
CC: [email protected]
Reviewed-by: Daniel Stone <[email protected]>
(cherry picked from commit a9fb331ea7d1a78936ea8d8385e44cfd66f835c1)

- - - - -
4395919b by Juan A. Suarez Romero at 2018-08-09T16:00:56Z
wayland/egl: initialize window surface size to window size

When creating a windows surface with eglCreateWindowSurface(), the
width and height returned by eglQuerySurface(EGL_{WIDTH,HEIGHT}) is
invalid until buffers are updated (like calling glClear()).

But according to EGL 1.5 spec, section 3.5.6 ("Surface Attributes"):

  "Querying EGL_WIDTH and EGL_HEIGHT returns respectively the width and
   height, in pixels, of the surface. For a window or pixmap surface,
   these values are initially equal to the width and height of the
   native window or pixmap with respect to which the surface was
   created"

This fixes dEQP-EGL.functional.color_clears.* CTS tests

v2:
- Do not modify attached_{width,height} (Daniel)
- Do not update size on resizing window (Brendan)

CC: Daniel Stone <[email protected]>
CC: Brendan King <[email protected]>
CC: [email protected]
Tested-by: Eric Engestrom <[email protected]>
Tested-by: Chad Versace <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
(cherry picked from commit 1fe7cbdf05b90034577dac4e4aa6157031d80521)
Conflicts resolved by Dylan

Conflicts:
        src/egl/drivers/dri2/platform_wayland.c

- - - - -
894fdbf0 by vadym.shovkoplias at 2018-08-09T16:03:41Z
drirc: Allow extension midshader for Metro Redux

This fixes both Metro 2033 Redux and Metro Last Light Redux

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99730
Signed-off-by: Eero Tamminen <[email protected]>
Signed-off-by: Vadym Shovkoplias <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
(cherry picked from commit e0de26eacc93f431962533f50d57e58335843d6b)

- - - - -
a1bb4344 by Adam Jackson at 2018-08-10T15:34:40Z
glx: GLX_MESA_multithread_makecurrent is direct-only

This extension is not defined for indirect contexts. Marking it as
"client only", as the old code did here, would make the extension
available in indirect contexts, even though the server would certainly
not have it in its extension list.

Cc: <[email protected]>
Signed-off-by: Adam Jackson <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
(cherry picked from commit 63a6b719d98fb1ad58ae93c2de859e6d4bfa8b8b)

- - - - -
de4a4f2b by Eric Anholt at 2018-08-10T15:35:09Z
egl: Fix leak of X11 pixmaps backing pbuffers in DRI3.

This is basically copied from the DRI2 destroy path.  Without this,
Raspberry Pi would quickly run out of CMA during the EGL tests in the CTS
due to all the pixmaps laying around.

Fixes: f35198badeb9 ("egl/x11: Implement dri3 support with loader's 
dri3 helper")
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
(cherry picked from commit b618d7ea59a4d7da9823e02ac5608a67fd99b332)

- - - - -
8d742a1e by Kenneth Graunke at 2018-08-10T15:35:15Z
intel: Fix SIMD16 unaligned payload GRF reads on Gen4-5.

When the SIMD16 Gen4-5 fragment shader payload contains source depth
(g2-3), destination stencil (g4), and destination depth (g5-6), the
single register of stencil makes the destination depth unaligned.

We were generating this instruction in the RT write payload setup:

   mov(16)   m14<1>F   g5<8,8,1>F   { align1 compr };

which is illegal, instructions with a source region spanning more than
one register need to be aligned to even registers.  This is because the
hardware implicitly does (nr | 1) instead of (nr + 1) when splitting the
compressed instruction into two mov(8)'s.

I believe this would cause the hardware to load g5 twice, replicating
subspan 0-1's destination depth to subspan 2-3.  This showed up as 2x2
artifact blocks in both TIS-100 and Reicast.

Normally, we rely on the register allocator to even-align our virtual
GRFs.  But we don't control the payload, so we need to lower SIMD widths
to make it work.  To fix this, we teach lower_simd_width about the
restriction, and then call it again after lower_load_payload (which is
what generates the offending MOV).

Fixes: 8aee87fe4cce0a883867df3546db0e0a36908086 (i965: Use SIMD16 instead of 
SIMD8 on Gen4 when possible.)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107212
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=13728
Reviewed-by: Jason Ekstrand <[email protected]>
Tested-by: Diego Viola <[email protected]>
(cherry picked from commit 08a5c395abdafd0d7556060596f78c238b4a989f)

- - - - -
af8076e1 by Tapani Pälli at 2018-08-10T15:37:54Z
glsl: handle error case with ast_post_inc, ast_post_dec

Return ir_rvalue::error_value with ast_post_inc, ast_post_dec if
parser error was emitted previously. This way process_array_size
won't see bogus IR generated like with commit 9c676a64273.

Signed-off-by: Tapani Pälli <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98699
Reviewed-by: Iago Toral Quiroga <[email protected]>
(cherry picked from commit 03a5acec687454c7fe227b4bdd2db97d515f1af7)

- - - - -
5950393f by Dylan Baker at 2018-08-13T15:30:23Z
bump version to 18.1.6

- - - - -
5343019c by Dylan Baker at 2018-08-13T15:36:16Z
docs: Add release notes for 18.1.6

- - - - -
ffe676fb by Andreas Boll at 2018-08-14T06:17:03Z
Merge tag 'mesa-18.1.6' into debian-unstable

mesa-18.1.6

- - - - -
6229618d by Andreas Boll at 2018-08-14T06:17:45Z
Bump changelog

- - - - -
547ae67d by Andreas Boll at 2018-08-14T06:38:40Z
Drop glvnd-fix-gl-dot-pc.patch, fixed upstream (0c927e8da9e) (Closes: #896447).

- - - - -
fb93c40d by Andreas Boll at 2018-08-14T07:27:50Z
Close bug #901789

- - - - -
5edf41c9 by Andreas Boll at 2018-08-14T07:29:18Z
Upload to unstable.

- - - - -


30 changed files:

- VERSION
- bin/.cherry-ignore
- bin/install_megadrivers.py
- configure.ac
- debian/changelog
- − debian/patches/glvnd-fix-gl-dot-pc.patch
- debian/patches/series
- docs/relnotes/18.1.5.html
- + docs/relnotes/18.1.6.html
- meson.build
- src/amd/common/ac_surface.c
- src/amd/vulkan/Makefile.sources
- src/amd/vulkan/radv_entrypoints_gen.py
- src/compiler/glsl/ast_to_hir.cpp
- src/compiler/glsl/ir_builder_print_visitor.cpp
- src/compiler/glsl/ir_print_visitor.cpp
- src/compiler/glsl/link_interface_blocks.cpp
- src/compiler/glsl/linker.cpp
- src/compiler/glsl/opt_dead_builtin_varyings.cpp
- src/compiler/glsl_types.cpp
- src/compiler/nir/meson.build
- src/compiler/nir/nir.c
- src/compiler/nir/nir_lower_int64.c
- src/egl/drivers/dri2/platform_wayland.c
- src/egl/drivers/dri2/platform_x11_dri3.c
- src/gallium/auxiliary/driver_ddebug/dd_util.h
- src/gallium/auxiliary/util/u_tests.c
- src/gallium/drivers/etnaviv/etnaviv_query_pm.c
- src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
- src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.h


The diff was not included because it is too large.


View it on GitLab: 
https://salsa.debian.org/xorg-team/lib/mesa/compare/50576a893b783a47ce6e5e17e2d7c8f4f18fd579...5edf41c9c1f781fd7c0c571f7819b07efafc46a8

-- 
View it on GitLab: 
https://salsa.debian.org/xorg-team/lib/mesa/compare/50576a893b783a47ce6e5e17e2d7c8f4f18fd579...5edf41c9c1f781fd7c0c571f7819b07efafc46a8
You're receiving this email because of your account on salsa.debian.org.

Reply via email to