URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6393cf2fa3c949b8c9e0ba4b14262591dbde9957 Author: Kenneth Graunke <kenn...@whitecape.org> Date: Tue Oct 31 10:02:02 2017 -0700
i965: Emit CS stall before MEDIA_VFE_STATE. This fixes hangs on GFXBench 5's Aztec Ruins benchmark. Unfortunately, it regresses OglCSCloth performance by about 10%. There are some ideas for fixing that. The Vulkan driver already emits this stall. Reviewed-by: Matt Turner <matts...@gmail.com> (cherry picked from commit 55a97db52347f62111a24715078c6035380d3e19) Squashed with: i965: Move PIPE_CONTROL defines and prototypes to brw_pipe_control.h. We need to be able to emit PIPE_CONTROLs from genX_state_upload.c, which can't safely include brw_defines.h because it conflicts with genxml. Move all the PIPE_CONTROL related stuff together into a separate header. Reviewed-by: Matt Turner <matts...@gmail.com> (cherry picked from commit bfe0f3a7027c3104a6ddc662129091c8093e7410) Squashed with: i965: include brw_pipe_control.h in the tarball Fixes: bfe0f3a7027 ("i965: Move PIPE_CONTROL defines and prototypes to brw_pipe_control.h.") Signed-off-by: Emil Velikov <emil.veli...@collabora.com> (cherry picked from commit 526945f7dc425ffbb8511b33301f6b1827ee4956) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4fd242e9902690c1f3048206802dc6feb069134a Author: Vadym Shovkoplias <vadim.shovkopl...@gmail.com> Date: Tue Feb 13 11:38:22 2018 -0700 mesa: add glsl version query (v4) Add support for GL_NUM_SHADING_LANGUAGE_VERSIONS and glGetStringi for GL_SHADING_LANGUAGE_VERSION v2: - Combine similar functionality into _mesa_get_shading_language_version() function. - Change GLSL version return mechanism. v3: - Add return of empty string for GLSL ver 1.10. - Move _mesa_get_shading_language_version() function to src/mesa/main/version.c. v4: - Add OpenGL version check. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104915 Signed-off-by: Andriy Khulap <andriy.khu...@globallogic.com> Signed-off-by: Vadym Shovkoplias <vadym.shovkopl...@globallogic.com> Reviewed-by: Brian Paul <bri...@vmware.com> (cherry picked from commit a553c54abf92533daf442073dd3408c35f57d8ba) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=893d60585068ce3d4c85d71ddb48b6c169431a4a Author: Iago Toral Quiroga <ito...@igalia.com> Date: Wed Nov 29 10:50:42 2017 +0100 i965/vec4: use a temp register to compute offsets for pull loads 64-bit pull loads are implemented by emitting 2 separate 32-bit pull load messages, where the second message loads from an offset at +16B. That addition of 16B to the original offset should not alter the original offset register used as source for the pull load instruction though, since the compiler might use that same offset register in other instructions (for example, for other pull loads in the shader code that take that same offset as reference). If the pull load is 32-bit then we only need to emit one message and we don't need to do offset calculations, but in that case the optimizer should be able to drop the redundant MOV. Fixes the following test on Haswell: KHR-GL45.gpu_shader_fp64.fp64.max_uniform_components Reviewed-by: Matt Turner <matts...@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103007 (cherry picked from commit 8620f7ebbc763dc1bbbc825d31cacfdd84433e05) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b093ff9574525217cb880e1c8473cb3c41ab5b9b Author: Jordan Justen <jordan.l.jus...@intel.com> Date: Tue Dec 12 11:44:01 2017 -0800 program: Don't reset SamplersValidated when restoring from shader cache Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103988 Signed-off-by: Jordan Justen <jordan.l.jus...@intel.com> Reviewed-by: Timothy Arceri <tarc...@itsqueeze.com> (cherry picked from commit dc07bb5fd188a4352ec90edb6c6107ae1ce11b50) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=98b6a6860c97cec1323573f4ca47d966a43da3ea Author: Tim Rowley <timothy.o.row...@intel.com> Date: Tue Jan 2 10:48:21 2018 -0600 swr/rast: fix MemoryBuffer build break for llvm-6 LLVM api change. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104381 Tested-by: Laurent Carlier <lordhea...@gmail.com> Reviewed-By: Bruce Cherniak <bruce.chern...@intel.com> (cherry picked from commit ad218754c79e0af61d5ba225a4b195cb55c2cac9) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5cb505b3517324b2f432fb3d538d925bbad88c0a Author: Tobias Droste <tdro...@gmx.de> Date: Mon Nov 6 22:09:50 2017 +0100 gallivm: Use new LLVM fast-math-flags API LLVM 6 changed the API on the fast-math-flags: https://reviews.llvm.org/rL317488 NOTE: This also enables the new flag 'ApproxFunc' to allow for approximations for library functions (sin, cos, ...). I'm not completly convinced, that this is something mesa should do. Signed-off-by: Tobias Droste <tdro...@gmx.de> Reviewed-by: Marek Olšák <marek.ol...@amd.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c1ee837fac28eb8195a947828e9ec96c043cdba Author: George Kyriazis <george.kyria...@intel.com> Date: Tue Feb 13 10:41:48 2018 -0600 swr/rast: blend_epi32() should return Integer, not Float fix gcc8 compiler error for KNL. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105029 Reviewed-by: Bruce Cherniak <bruce.chern...@intel.com> (cherry picked from commit f1fbeb1a530f46402b201756b3e76a9b4ef0739b) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=75ea3e9b14729d1c565c16b635a945a15e730dc5 Author: Juan A. Suarez Romero <jasua...@igalia.com> Date: Wed Mar 7 18:56:59 2018 +0100 cherry-ignore: glsl: Fix memory leak with known glsl_type instances stable: The commit requires earlier commits fe81e1f9751 and 92c1290dc57 which did not land in branch. Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9aea6a74b1d003573b88b7ff47f8e254ce291c6f Author: Juan A. Suarez Romero <jasua...@igalia.com> Date: Wed Mar 7 18:23:51 2018 +0100 cherry-ignore: anv/image: Separate modifiers from legacy scanout extra: The commit requires earlier commit a44744e01d which did not land in branch. Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b732373b1defecd66e4a40eb4e32087d8266c79a Author: Juan A. Suarez Romero <jasua...@igalia.com> Date: Wed Mar 7 17:51:47 2018 +0100 cherry-ignore: i965: Use absolute addressing for constant buffer 0 on Kernel 4.16+. extra: The commit requires earlier commit a63c74be851 which did not land in branch. Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7e82b7c044cc3ed2c2fb5e86efda7e9a2d6a4eb9 Author: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> Date: Sun Mar 4 14:47:20 2018 +0100 radv: Fix copying from 3D images starting at non-zero depth. Fixes: f4e499ec79 "radv: add initial non-conformant radv vulkan driver" Reviewed-by: Dave Airlie <airl...@redhat.com> (cherry picked from commit eea20d59abd304953c8c1591612d45d3d94eb785) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a51ef4596c171c43106fb5ac04d481514f67902b Author: Vinson Lee <v...@freedesktop.org> Date: Sat Feb 24 15:49:32 2018 -0800 swr/rast: Fix macOS macro. Fixes: a25093de7188 ("swr/rast: Implement JIT shader caching to disk") Signed-off-by: Vinson Lee <v...@freedesktop.org> Reviewed-by: Eric Engestrom <eric.engest...@imgtec.com> Reviewed-By: George Kyriazis <george.kyria...@intel.com> (cherry picked from commit bb742b6ebf2d8c8dcc77f69b44995be2971e116a) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=da3d5f4d28a4bbb22493aafc375848c1e58aca51 Author: Andriy Khulap <andriy.khu...@gmail.com> Date: Thu Mar 1 10:44:28 2018 +0200 i965: Fix RELOC_WRITE typo in brw_store_data_imm64() Fixes: 6c530ad11605 ("i965: Reduce passing 2x32b of reloc_domains to 2 bits") Signed-off-by: Andriy Khulap <andriy.khu...@globallogic.com> Signed-off-by: Vadym Shovkoplias <vadym.shovkopl...@globallogic.com> Reviewed-by: Chris Wilson <ch...@chris-wilson.co.uk> Reviewed-by: Kenneth Graunke <kenn...@whitecape.org> (cherry picked from commit 7859701920adc7f25696a05ae4715a4694109e1d) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=53db79dde90344bf97ed22b1e48a168b0ca4fd7c Author: Iago Toral Quiroga <ito...@igalia.com> Date: Thu Mar 1 07:59:42 2018 +0100 i965/sbe: fix number of inputs for active components In 16631ca30ea6 we fixed gen9 active components to account for padded inputs in the URB, which we can have with SSO programs. To do that, instead of going through the bitfield of inputs (which doesn't include padding information), we compute the number of inputs from the size of the URB entry. Unfortunately, there are some special inputs that are not stored in the URB and that we also need to account for. These special inputs are identified and handled during calculate_attr_overrides(). Instead of keeping track of the exact number of inputs, we just program active components for all possible inputs like we do in anvil. This fixes a regression in a WebGL program that uses Point Sprite functionality (specifically, VARYING_SLOT_PNTC). v2: - Add 'Fixes' tag (Mark Janes) - make no_vue_inputs int instead of uint32_t, and add const qualifier to num_inputs variable (Ian) v3: - Do not try to count inputs correctly, just program all input slots like we do in anvil (Ken) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105224 Fixes: 16631ca30ea6 (i965/sbe: fix active components for SSO programs with over 16 inputs) Reviewed-by: Kenneth Graunke <kenn...@whitecape.org> (cherry picked from commit bc73016703f8f2815e000f1c100532cf6e13cd3c) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd07898646a35a49afc65d2835986a0abafd65ed Author: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> Date: Mon Feb 26 22:54:06 2018 +0100 radv: Implement waiting on non-submitted fences. Fixes: f4e499ec79 "radv: add initial non-conformant radv vulkan driver" Reviewed-by: Dave Airlie <airl...@redhat.com> (cherry picked from commit 6968d782d3063c639e80dbcf6df944902d72692f) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b1c1b62a26717da6e2497f9563f62c0feedc064 Author: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> Date: Mon Feb 26 22:50:41 2018 +0100 radv: Implement WaitForFences with !waitAll. Nothing to do except using a busy wait loop. At least for old kernels. A better implementation for newer kernels to come later. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105255 Fixes: f4e499ec79 "radv: add initial non-conformant radv vulkan driver" Reviewed-by: Dave Airlie <airl...@redhat.com> (cherry picked from commit 2a404c6f923880cfd0bc04f9db1890cadce8bd92) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1288d1efa851f94ba3c2a591ca32febb6b447ada Author: Dave Airlie <airl...@redhat.com> Date: Thu Mar 1 09:24:01 2018 +1000 ac/nir: don't apply slice rounding on txf_ms This matches the tgsi code. Fixes arb_texture_multisample texelFetch piglit tests. Reviewed-by: Timothy Arceri <tarc...@itsqueeze.com> Reviewed-by: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> Fixes: f4e499ec7914 (radv: add initial non-conformant radv vulkan driver) Signed-off-by: Dave Airlie <airl...@redhat.com> (cherry picked from commit 69495b30a38fbb01a937cdea6f7674f89a2e60e7) [Juan A. Suarez: resolve trivial conflicts] Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> Conflicts: src/amd/common/ac_nir_to_llvm.c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c6f52fbd7e14bd13e553af186a2f1bccc8ac197f Author: Samuel Iglesias Gonsálvez <sigles...@igalia.com> Date: Mon Jan 29 13:46:28 2018 +0100 glsl/linker: fix bug when checking precision qualifier According to GLSL ES 3.2 spec, see table in 9.2.1 "Linked Shaders" section, the precision qualifier should match for uniform variables. This also applies to previous GLSL ES 3.x specs. This 'if' checks the condition for uniform variables, while for UBOs it is checked in link_interface_blocks.cpp. Fixes: b50b82b8a553 ("glsl/es31: precision qualifier doesn't need to match in shader interface block members") Signed-off-by: Samuel Iglesias Gonsálvez <sigles...@igalia.com> Reviewed-by: Tapani Pälli <tapani.pa...@intel.com> (cherry picked from commit e207b2e2c8dea99972e744c8fdfa0b9a9481ea5e) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4f87b12e0c5b9676cfde247198b4b9f5fb156378 Author: Timothy Arceri <tarc...@itsqueeze.com> Date: Wed Feb 28 14:33:55 2018 +1100 nir: fix interger divide by zero crash during constant folding From the GLSL 4.60 spec Section 5.9 (Expressions): "Dividing by zero does not cause an exception but does result in an unspecified value." Fixes: 89285e4d47a6 "nir: add new constant folding infrastructure" Reviewed-by: Jason Ekstrand <ja...@jlekstrand.net> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105271 (cherry picked from commit 0c1f37cc2d8555223ade73b244a3ee374be8d9cd) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=07288c313ad4fb19c3e895bca34bb807da8c13e1 Author: Juan A. Suarez Romero <jasua...@igalia.com> Date: Wed Mar 7 16:52:05 2018 +0100 cherry-ignore: ac/shader: fix vertex input with components. fixes: The commit fixes earlier commit 1c57a6da5e which did not land in branch. Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a0aa0a1a530b12b5b73b24dce127f490fffa096c Author: Frank Binns <francisbi...@gmail.com> Date: Thu Feb 22 13:37:54 2018 +0000 egl/dri2: fix segfault when display initialisation fails dri2_display_destroy() is called when platform specific display initialisation fails. However, this would typically lead to a segfault due to the dri2_egl_display vbtl not having been set up. Fixes: 2db95482964 ("loader_dri3/glx/egl: Optionally use a blit context for blitting operations") Signed-off-by: Frank Binns <francisbi...@gmail.com> Reviewed-by: Eric Engestrom <eric.engest...@imgtec.com> Reviewed-by: Emil Velikov <emil.veli...@collabora.com> (cherry picked from commit 6160bf97db8bc493512795b1fa49c072a703df50) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f2778ed29ae5272f408bfe3ccff0288dd7ee2491 Author: Karol Herbst <kher...@redhat.com> Date: Tue Feb 20 00:45:14 2018 +0100 nvir/nvc0: fix legalizing of ld unlock c0[0x10000] We have to increase the file index also for 0x10000 not just for values greater than 0x10000. Fixes: 37b67db6ae34fb6586d640a7a1b6232f091dd812 Signed-off-by: Karol Herbst <kher...@redhat.com> Reviewed-by: Ilia Mirkin <imir...@alum.mit.edu> (cherry picked from commit 7319311a504c06890181044668c8d01cf5ddd322) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b22c5df12ef8bb545c1048728589945cecca3faa Author: Eric Anholt <e...@anholt.net> Date: Sat Feb 10 11:03:38 2018 +0000 glsl/tests: Fix a compiler warning about signed/unsigned loop comparison. Fixes: d32956935edf ("glsl: Walk a list of ir_dereference_array to mark array elements as accessed") Reviewed-by: Ian Romanick <ian.d.roman...@intel.com> (cherry picked from commit 4636ce362d4defc70a2b40cab1f52d1c890f5673) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=26d28595dc90b618cdcda00ef03d687cd18fe4d8 Author: Daniel Stone <dani...@collabora.com> Date: Thu Feb 15 09:17:52 2018 +0000 egl/wayland: Always use in-tree wayland-egl-backend.h A recent patchset to Wayland[0] migrated Mesa's libwayland-egl backend into Wayland itself, so implementations could provide backends. Mesa still uses its own, and the two have already diverged[1]. The include from egl_dri2.h could pick up either the installed Wayland wayland-egl-backend.h (with a 'driver_private' member), or the Mesa internal wayland-egl-backend.h (with a 'private' member), failing the build in the first instance. Add an explicit directory prefix to the include, so we always get our in-tree version. [0]: https://patchwork.freedesktop.org/series/31663/ [1]: https://cgit.freedesktop.org/wayland/wayland/commit/?id=9fa60983b579 Signed-off-by: Daniel Stone <dani...@collabora.com> Reviewed-by: Emil Velikov <emil.veli...@collabora.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105103 Fixes: 198af27c679c ("wayland-egl: rename wayland-egl-{priv,backend}.h") (cherry picked from commit ff5432dc506111788ef19d25466b8c4ac91478d3) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a556000cc7df86591ad1e267adbe674f622eba82 Author: Dave Airlie <airl...@redhat.com> Date: Wed Feb 14 12:52:27 2018 +1000 virgl: remap query types to hw support. The gallium query types changed, so we need to remap from the gallium ones to the virgl ones. Fixes: dEQP-GLES3.functional.transform_feedback.basic_types* "This also fixes: dEQP-GLES3.functional.transform_feedback.array.separate* dEQP-GLES3.functional.transform_feedback.array_element* dEQP-GLES3.functional.transform_feedback.interpolation.* Gallium's p_defines.h and virglrenderer's p_defines.h have diverged quite a bit, so not including PIPE_QUERY_OCCLUSION_PREDICATE_CONSERVATIVE there makes sense for now." - Gurchetan Singh Fixes: 3f6b3d9db (gallium: add PIPE_QUERY_OCCLUSION_PREDICATE_CONSERVATIVE) Reviewed-by: Gurchetan Singh <gurchetansi...@chromium.org> Tested-by: Gurchetan Singh <gurchetansi...@chromium.org> Signed-off-by: Dave Airlie <airl...@redhat.com> (cherry picked from commit 60c14a0db25d3dd246744858179a52548325c25f) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c6abe1ef6ca2d28d18488bbe4f91da0275b8d2d1 Author: Juan A. Suarez Romero <jasua...@igalia.com> Date: Wed Mar 7 13:33:08 2018 +0100 cherry-ignore: include all Meson related fixes fixes: The commit addresses the meson build, which is disabled in branch. Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a05ffbecbe7bd0e9e407f1c51623e592a9be0e2 Author: Brian Paul <bri...@vmware.com> Date: Tue Feb 13 09:21:45 2018 -0700 mesa: add missing switch case for EXTRA_VERSION_40 in check_extra() The EXTRA_VERSION_40 predicate is tested as part of extra_gl40_ARB_sample_shading but there was no switch case for it. Fixes: 77b440e42d8e7247c2295 ("mesa: Add new functions and enums required by GL_ARB_sample_shading") Reviewed-by: Eric Engestrom <eric.engest...@imgtec.com> (cherry picked from commit b08d718703bc907d9cb99887f90ea80d7e91dc45) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=798dd2321d1b402f47029c356f511bed6de5fdb4 Author: Eric Anholt <e...@anholt.net> Date: Sat Feb 10 11:01:20 2018 +0000 glsl/tests: Fix strict aliasing warning about int64/double. Fixes: 4bf986274728 ("glsl/tests: Add UINT64 and INT64 types") Reviewed-by: Rhys Kidd <rhysk...@gmail.com> (cherry picked from commit 21670f820812238dbe3fb18ab90493999b7e718e) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=49f525643aff58c4f4dba7af16dee84debab2ac9 Author: Eric Anholt <e...@anholt.net> Date: Sat Feb 10 10:37:37 2018 +0000 ac/nir: Fix compiler warning about uninitialized dw_addr. Even switching the def's condition to be the same chip revision check as the use, the compiler doesn't figure it out. Just NULL-init it. Fixes: ec53e527421d ("ac/nir: Add ES output to LDS for GFX9.") Reviewed-by: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> (cherry picked from commit 091bff831721b62243840038f505af0abd9436c1) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2e043c9bcf0182bb631a9ed0c4562775106cd1db Author: Daniel Stone <dani...@collabora.com> Date: Tue Feb 6 09:45:01 2018 +0000 egl/wayland: Fix ARGB/XRGB transposition in config map When 0b2b7191214eb moved from an if tree to a struct to map between wl_drm formats and EGLConfigs, it transposed the mapping between XRGB and ARGB. Luckily, everyone exposes both formats, so this is harmless. Signed-off-by: Daniel Stone <dani...@collabora.com> Fixes: 0b2b7191214eb ("egl/wayland: introduce dri2_wl_add_configs_for_visuals() helper") Reviewed-by: Emil Velikov <emil.veli...@collabora.com> Reviewed-by: Eric Engestrom <e...@engestrom.ch> Tested-by: Ilia Mirkin <imir...@alum.mit.edu> (cherry picked from commit 4fbd2d50b1c06a3c10f3a254e933646345123751) [Juan A. Suarez: resolve trivial conflicts] Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> Conflicts: src/egl/drivers/dri2/platform_wayland.c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=388ad950a294010ea5224ebeb610571751b285fe Author: Dylan Baker <dy...@pnwbakers.com> Date: Mon Nov 20 14:39:27 2017 -0800 glapi: remove APPLE extensions from test Fixes: 7009955281260fbb ("mesa: Remove GL_APPLE_vertex_array_object stubs") Signed-off-by: Dylan Baker <dylan.c.ba...@intel.com> Reviewed-by: Eric Engestrom <eric.engest...@imgtec.com> Acked-by: Ian Romanick <ian.d.roman...@intel.com> (cherry picked from commit 0316aa432d467a3e747e37e721be62301c42ff8c) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d9a52bb2750f25a170de68c13076847049ac760 Author: Dylan Baker <dy...@pnwbakers.com> Date: Mon Nov 20 10:05:25 2017 -0800 glapi/check_table: Remove 'extern "C"' block Using 'extern "C"' around includes is always incorrect, as the header may contain C++ symbols (as it does in this case), which means it cannot use C linkage. In this case the header has a template in it, which obviously cannot be linked with C linkage rules. Fixes: a29ad2b421b75a1727b ("mesa/tests: Add tests for the generated dispatch table") Signed-off-by: Dylan Baker <dylan.c.ba...@intel.com> Reviewed-by: Eric Engestrom <eric.engest...@imgtec.com> Reviewed-by: Emil Velikov <emil.veli...@collabora.com> (cherry picked from commit a4f1fc5dd197a0cd107b6a96a222ace4105680dd) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=45bf95ebadb5102e61382bbf0209839356a2e832 Author: Dave Airlie <airl...@redhat.com> Date: Tue Feb 6 19:37:48 2018 +0000 radv: don't support tc-compat on multisample d32s8 at all. RX550 fails dEQP-VK.renderpass.suballocation.multisample.d32_sfloat_s8_uint.samples_2 So increase the range of the workaround. Fixes: f4c534ef6 (radv: don't enable tc compat for d32s8 + 4/8 samples (v1.1)) Reviewed-by: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> Signed-off-by: Dave Airlie <airl...@redhat.com> (cherry picked from commit e7e81f362d6dc4fe3a272cdd07724a26391e8f5e) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=140b322520b90aa3e4018ea93a9f3cb9c4ec622d Author: Eric Anholt <e...@anholt.net> Date: Thu Feb 1 11:12:47 2018 -0800 mesa: Drop incorrect A4B4G4R4 _mesa_format_matches_format_and_type() cases. swapBytes operates on bytes, not 4-bit channels, so you can't just take non-swapBytes cases and flip the REV flag. Avoids piglit texture-packed-formats regressions when enabling the ABGR4444 format. Fixes: c5a5c9a7db89 ("mesa/formats: add new mesa formats and their pack/unpack functions.") Reviewed-by: Marek Olšák <marek.ol...@amd.com> (cherry picked from commit 1429cd74c2c03a311d92a60b66806db3d96d6b16) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=56a9c6541e96bb08f56c55c0a5047cbd14307d81 Author: Bas Nieuwenhuizen <ba...@chromium.org> Date: Thu Jan 25 16:48:17 2018 +0100 radeonsi: Export signalled sync file instead of -1. -1 is considered an error for EGL_ANDROID_native_fence_sync, so we need to actually create a sync file. Fixes: f536f45250 "radeonsi: implement sync_file import/export" Reviewed-by: Dave Airlie <airl...@redhat.com> (cherry picked from commit 5a3404d443e0c6e8e9a44d7f8dccf96c5ac18f0f) [Juan A. Suarez: resolve trivial conflicts] Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> Conflicts: src/gallium/drivers/radeonsi/si_fence.c Squashed with: configure/meson: Bump libdrm_amdgpu version requirement. For the radv dependencies on syncobj signal/reset. Reviewed-by: Dave Airlie <airl...@redhat.com> (cherry picked from commit 52be440f48ac7c337f6604846bb6f0cfd88e7118) [Juan A. Suarez: resolve trivial conflicts] Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> Conflicts: configure.ac meson.build URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=729bd87b1ab18278704dac1dd8565c141a016cb8 Author: Juan A. Suarez Romero <jasua...@igalia.com> Date: Wed Mar 7 12:39:14 2018 +0100 cherry-ignore: i965: Avoid problems from referencing orphaned BOs after growing. fixes: The commit requires earlier commits 77097d96a0 and a5a654b19a which did not land in branch. Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d52e684e1e38370abc38dbd92293b357539987c0 Author: Juan A. Suarez Romero <jasua...@igalia.com> Date: Tue Mar 6 20:08:33 2018 +0100 cherry-ignore: intel/compiler: Memory fence commit must always be enabled for gen10+ stable: The commits address gen10 support which is missing in branch. Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2648774bba8dbfa04f1dc7cea574203ab90792a3 Author: Dave Airlie <airl...@redhat.com> Date: Thu Mar 1 03:38:32 2018 +0000 r600/cayman: fix fragcood loading recip generation. This fixes some hangs seen where the recip_ieee opcodes would end up split across the wrong slots. Cc: <mesa-sta...@lists.freedesktop.org> Signed-off-by: Dave Airlie <airl...@redhat.com> (cherry picked from commit bf2af063c3ac1ef7b948ddfb203aea04f857fc0f) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a12309466c105d9034a9f2bca005261ca49bb457 Author: Jason Ekstrand <jason.ekstr...@intel.com> Date: Wed Feb 28 19:57:44 2018 -0800 intel/fs: Set up sampler message headers in the visitor on gen7+ This gives the scheduler visibility into the headers which should improve scheduling. More importantly, however, it lets the scheduler know that the header gets written. As-is, the scheduler thinks that a texture instruction only reads it's payload and is unaware that it may write to the first register so it may reorder it with respect to a read from that register. This is causing issues in a couple of Dota 2 vertex shaders. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104923 Cc: mesa-sta...@lists.freedesktop.org Reviewed-by: Francisco Jerez <curroje...@riseup.net> (cherry picked from commit ff4726077d86800d33520581f154a27dac408588) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=93026302887fa19ebcb8fdbc56ef01545f454266 Author: Samuel Pitoiset <samuel.pitoi...@gmail.com> Date: Fri Feb 23 14:21:06 2018 +0100 ac/nir: use ordered float comparisons except for not equal Original patch from Timothy Arceri, I have just fixed the not equal case locally. This fixes one important rendering issue in Wolfenstein 2 (the cutscene transition issue). RadeonSI uses the same ordered comparisons, so I guess that what we should do as well. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104302 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104905 Cc: <mesa-sta...@lists.freedesktop.org> Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> Reviewed-by: Marek Olšák <marek.ol...@amd.com> Reviewed-by: Connor Abbott <cwabbo...@gmail.com> (cherry picked from commit e05507a427b79e481eb8e45d7aa3c9b4b78376bf) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dd8b1d448c1fbbeeb3540fb547c67b66acac917a Author: Juan A. Suarez Romero <jasua...@igalia.com> Date: Tue Mar 6 19:15:05 2018 +0100 cherry-ignore: r600: Take ALU_EXTENDED into account when evaluating jump offsets stable: The commit requires earlier commit a03d456f5a41 which did not land in branch. Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a1817f5d3176b11bcb884b67ff0596de09823c4b Author: Francisco Jerez <curroje...@riseup.net> Date: Tue Feb 13 14:16:03 2018 -0800 i965: Fix KHR_blend_equation_advanced with some render targets. This reverts two bogus and seemingly useless changes from the commits referenced below, which broke KHR_blend_equation_advanced (and EXT_shader_framebuffer_fetch_non_coherent which wasn't exposed yet) for any kind of render target surface that would cause the get_isl_surf() call in brw_emit_surface_state() to do anything useful (notice how the result of get_isl_surf() is completely ignored by the caller right now), as was the case while using those extensions with 1D array or 3D framebuffers in particular. Fixes: f5859b45b1686e8116380d87 "i965/miptree: Switch remaining surfaces to isl" Fixes: bf24c3539e4b6989512968ca "i965/miptree: Clean-up unused" Cc: mesa-sta...@lists.freedesktop.org Reviewed-by: Plamena Manolova <plamena.manol...@intel.com> (cherry picked from commit 27c829da28ab3cfac0195d02ffb13afa8fe0e23d) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=073a9c23aa1a92ae5a0af2dac9628151f93f385c Author: James Legg <jl...@feralinteractive.com> Date: Thu Feb 22 16:57:53 2018 +0000 radv: Really use correct HTILE expanded words. When transitioning to an htile compressed depth format, Set the full depth range, so later rasterization can pass HiZ. Previously, for depth only formats, the depth range was set to 0 to 0. This caused unwanted HiZ rejections with a VK_FORMAT_D16_UNORM depth buffer (VK_FORMAT_D32_SFLOAT was not affected somehow). These values are derived from PAL [0], since I can't find the specification describing the htile values. [0] https://github.com/GPUOpen-Drivers/pal/blob/5cba4ecbda9452773f59692f5915301e7db4a183/src/core/hw/gfxip/gfx9/gfx9MaskRam.cpp#L1500 CC: Dave Airlie <airl...@redhat.com> CC: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> CC: mesa-sta...@lists.freedesktop.org Reviewed-by: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> Tested-by: Grazvydas Ignotas <nota...@gmail.com> Fixes: 5158603182fe7435 "radv: Use correct HTILE expanded words." (cherry picked from commit afd8fd0656a8eb3a2ce892381387aad3c6b0a78f) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c49dde7f43ef831b43acdd8d1eff5cb23e58b10b Author: Lionel Landwerlin <lionel.g.landwer...@intel.com> Date: Wed Feb 7 10:48:32 2018 +0000 i965: perf: ensure reading config IDs from sysfs isn't interrupted Fixes: 458468c136e "i965: Expose OA counters via INTEL_performance_query" Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Cc: <mesa-sta...@lists.freedesktop.org> Reviewed-by: Eric Engestrom <eric.engest...@imgtec.com> (cherry picked from commit bd9672695b6b95085bb0af1d8eec9b550cdb01e6) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c6849c93147fb29bdaf4f48e6f04d7c77923d8ce Author: Chuck Atkins <chuck.atk...@kitware.com> Date: Thu Feb 22 09:19:37 2018 -0500 glx: Properly handle cases where screen creation fails This fixes a segfault exposed by a29d63ecf7 which occurs when swr is used on an unsupported architecture. v2: re-work to place logic in xmesa_init_display Signed-off-by: Chuck Atkins <chuck.atk...@kitware.com> Reviewed-by: Emil Velikov <emil.l.veli...@gmail.com> Cc: mesa-sta...@lists.freedesktop.org Cc: George Kyriazis <george.kyria...@intel.com> Cc: Bruce Cherniak <bruce.chern...@intel.com> (cherry picked from commit 540e49e1054d60f5f3809b6efc828ac4cac8c708) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fc8282ad47ddadcaed59ea67a0138611f1448cf3 Author: Jason Ekstrand <jason.ekstr...@intel.com> Date: Wed Feb 21 12:38:12 2018 -0800 vulkan/wsi/x11: Set OUT_OF_DATE if wait_for_special_event fails This most likely means we lost our connection to the X server so OUT_OF_DATE is reasonable. This was also the one case where we pushed a UINT32_MAX into the queue without setting an error condition. Cc: mesa-sta...@lists.freedesktop.org Reviewed-by: Daniel Stone <dani...@collabora.com> (cherry picked from commit 6937c613242d646b8c37f01ffd6a02a9b64c8d6c) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=343afbaed932f31e2f3588ef3d52b55063e69bc3 Author: Dave Airlie <airl...@redhat.com> Date: Tue Feb 20 10:15:18 2018 +1000 ac/nir: to integer the args to bcsel. dEQP-VK.tessellation.invariance.outer_edge_symmetry.triangles_equal_spacing_ccw was hitting an llvm assert due to one value being an int and the other a float. This just casts both values to integer and fixes the test. Fixes: dEQP-VK.tessellation.invariance.outer_edge_symmetry.triangles_equal_spacing_ccw Cc: mesa-sta...@lists.freedesktop.org Reviewed-by: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> Signed-off-by: Dave Airlie <airl...@redhat.com> (cherry picked from commit d5b2d7ed670e6b6a2d7a96e588cb3de852d0b289) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1a423d3868770a5705f53ddacc2df99979bf22c3 Author: Juan A. Suarez Romero <jasua...@igalia.com> Date: Tue Mar 6 18:51:49 2018 +0100 cherry-ignore: Add patches that has a specific version for 17.3 stable: The commits have a specific version for the 17.3 branch. Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dd8b5bb3c288dad2c557e3d103acb1a281880750 Author: Juan A. Suarez Romero <jasua...@igalia.com> Date: Sat Mar 10 14:23:11 2018 +0100 cherry-ignore: anv: Be more careful about fast-clear colors stable: The commit is causing several regressions in Vulkan CTS tests in different platforms (hsw, bdw, bsw, ...). Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=638f6befb0ceda1222f8e0592d9ad31eb534da18 Author: Jason Ekstrand <ja...@jlekstrand.net> Date: Tue Mar 6 08:38:58 2018 -0800 intel/isl: Add an isl_color_value_is_zero helper Cc: mesa-sta...@lists.freedesktop.org Reviewed-by: Nanley Chery <nanley.g.ch...@intel.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=22f537316dfa8765e324e546a190805ba990a3e3 Author: Jonathan Gray <j...@jsg.id.au> Date: Tue Feb 20 17:38:00 2018 +1100 configure.ac: pthread-stubs not present on OpenBSD pthread-stubs is no longer required on OpenBSD and has been removed. libpthread parts involved moved to libc. Signed-off-by: Jonathan Gray <j...@jsg.id.au> Cc: 17.3 18.0 <mesa-sta...@lists.freedesktop.org> Reviewed-by: Eric Engestrom <eric.engest...@imgtec.com> Reviewed-by: Emil Velikov <emil.veli...@collabora.com> (cherry picked from commit 9401d90a537f0db62e726eeffe468a64189550f1) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8633af00df1683b0759230179f99efd8fef3b192 Author: Thomas Hellstrom <thellst...@vmware.com> Date: Fri Feb 9 09:37:19 2018 +0100 loader_dri3/glx/egl: Reinstate the loader_dri3_vtable get_dri_screen callback Removing this callback caused rendering corruption in some multi-screen cases, so it is reinstated but without the drawable argument which was never used by implementations and was confusing since the drawable could have been created with another screen. Cc: "17.3 18.0" mesa-sta...@lists.freedesktop.org Fixes: 5198e48a0d (loader_dri3/glx/egl: Remove the loader_dri3_vtable get_dri_screen callback) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105013 Reported-by: Daniel van Vugt <daniel.van.v...@canonical.com> Tested-by: Timo Aaltonen <tjaal...@ubuntu.com> Signed-off-by: Thomas Hellstrom <thellst...@vmware.com> Reviewed-by: Brian Paul <bri...@vmware.com> (cherry picked from commit f386776ea55f86d0288c955cf4cf877a1b4a027d) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b28f2f96708cb9d32f82785aa9cceeb7b58d3a2 Author: Thomas Hellstrom <thellst...@vmware.com> Date: Mon Jan 15 12:51:27 2018 +0100 svga: Fix a leftover debug hack Fix what appears to be a leftover debug hack. The hack would force the driver to take a different blit path; possibly, although unverified, reverting to software blits. Tested using piglit tests/quick. No related regressions. Cc: "17.2 17.3 18.0" <mesa-sta...@lists.freedesktop.org> Fixes: 9d81ab7376 (svga: Relax the format checks for copy_region_vgpu10 somewhat) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104625 Reported-by: Grazvydas Ignotas <nota...@gmail.com> Signed-off-by: Thomas Hellstrom <thellst...@vmware.com> Reviewed-by: Brian Paul <bri...@vmware.com> (cherry picked from commit 80c31f7837cd319910d94d780f5048de6cce0adb) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6ddf838def69036a48524e2f5ae79fb01170e59c Author: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> Date: Thu Feb 15 21:24:35 2018 +0100 radv: Always lower indirect derefs after nir_lower_global_vars_to_local. Otherwise new local variables can cause hangs on vega. CC: <mesa-sta...@lists.freedesktop.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105098 Reviewed-by: Timothy Arceri <tarc...@itsqueeze.com> (cherry picked from commit 05d84ed68add9e6adfcc602a274405e04226c1b7) [Juan Suarez: resolve trivial conflicts] Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> Conflicts: src/amd/vulkan/radv_shader.h URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4a880db56c1ee9d8517ec42eb19a7ce0561591fb Author: Gurchetan Singh <gurchetansi...@chromium.org> Date: Wed Feb 14 15:40:35 2018 -0800 mesa: don't clamp just based on ARB_viewport_array extension The ARB_viewport_array spec says: "Dependencies OpenGL 1.0 is required. OpenGL 3.2 or the EXT_geometry_shader4 or ARB_geometry_shader4 extensions are required. This extension is written against the OpenGL 3.2 (Compatibility) Specification." As such, we should ignore it for GLES2 contexts. Fixes: dEQP-GLES2.functional.state_query.integers.viewport_getinteger dEQP-GLES2.functional.state_query.integers.viewport_getfloat on llvmpipe and virgl. v2: Use _mesa_has_* (Ilia) Signed-off-by: Marek Olšák <marek.ol...@amd.com> Cc: 17.3 18.0 <mesa-sta...@lists.freedesktop.org> (cherry picked from commit c6694793e1148f920a94eb54db11cead1662c2da) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=58a0e9e1d6c83eca7bfa1217391e14d9cac3cabf Author: Anuj Phogat <anuj.pho...@gmail.com> Date: Fri Jun 30 10:29:23 2017 -0700 isl: Don't use surface format R32_FLOAT for typed atomic integer operations From Skylake PRM Surface Formats section: "The surface format for the typed atomic integer operations must be R32_UINT or R32_SINT." Fixes an error and a piglit GPU hang in simulation environment. Piglit test: gl45-imageAtomicExchange-float.shader_test Suggested-by: Francisco Jerez <curroje...@riseup.net> Signed-off-by: Anuj Phogat <anuj.pho...@gmail.co Reviewed-by: Kenneth Graunke <kenn...@whitecape.org> Cc: "18.0 17.3" <mesa-sta...@lists.freedesktop.org> (cherry picked from commit 0cd37f9178d79ed62f1952939e1044cda5701a3a) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=64c3a46906a909beca55c770304ddd27090bf4bb Author: Juan A. Suarez Romero <jasua...@igalia.com> Date: Tue Mar 6 15:52:10 2018 +0100 cherry-ignore: anv: Move setting current_pipeline to cmd_state_init stable: The commit fixes earlier commit cd3feea74582 which did not land in branch. Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5896feec022b646b50b9e861298a671bce124e53 Author: Daniel Stone <dani...@collabora.com> Date: Mon Feb 12 17:54:41 2018 +0000 i965: Fix bugs in intel_from_planar This commit fixes two bugs in intel_from_planar. First, if the planar format was non-NULL but only had a single plane, we were falling through to the planar case. If we had a CCS modifier and plane == 1, we would return NULL instead of the CCS plane. Second, if we did end up in the planar_format == NULL case and the modifier was DRM_FORMAT_MOD_INVALID, we would end up segfaulting in isl_drm_modifier_has_aux. Cc: mesa-sta...@lists.freedesktop.org Fixes: 8f6e54c92966bb94a3f05f2cc7ea804273e125ad Signed-off-by: Daniel Stone <dani...@collabora.com> Reviewed-by: Jason Ekstrand <ja...@jlekstrand.net> (cherry picked from commit c2c4e5bae3ba27bbdaafd8787a3e96266f82e70c) Squashed with: i965: Fix aux-surface size check The previous commit reworked the checks intel_from_planar() to check the right individual cases for regular/planar/aux buffers, and do size checks in all cases. Unfortunately, the aux size check was broken, and required the aux surface to be allocated with the correct aux stride, but full image height (!). As the ISL aux surface is not recorded in the DRIimage, we cannot easily access it to check. Instead, store the aux size from when we do have the ISL surface to hand, and check against that later when we go to access the aux surface. Signed-off-by: Daniel Stone <dani...@collabora.com> Fixes: c2c4e5bae3ba ("i965: Fix bugs in intel_from_planar") Reviewed-by: Jason Ekstrand <ja...@jlekstrand.net> (cherry picked from commit 9d21dbeb88bc99ca0e153c11265e19536ad36b61) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7325939b66f4f91e5da5d37b34ff1a29d2a70f3b Author: Dave Airlie <airl...@redhat.com> Date: Mon Feb 5 13:09:57 2018 +1000 r600: fix xfb stream check. This fixes: KHR-GL45.enhanced_layouts.xfb_vertex_streams Reviewed-by: Roland Scheidegger <srol...@vmware.com> Cc: <mesa-sta...@lists.freedesktop.org> Signed-off-by: Dave Airlie <airl...@redhat.com> (cherry picked from commit f292eceae1d3bc0462d626d6857dbf51c48fbc92) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=095e42882cf1dc0e57ce8152a3cd2c42c073007b Author: Juan A. Suarez Romero <jasua...@igalia.com> Date: Tue Mar 6 13:36:27 2018 +0100 cherry-ignore: r600/compute: only mark buffer/image state dirty for fragment shaders stable: The commit requires earlier commits 4e7f6437b535 and a6b379284365 which did not land in branch. Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=344a3607a4a6744cfa0711ec7954f0cf6cc34ec2 Author: Dave Airlie <airl...@redhat.com> Date: Mon Feb 5 16:04:18 2018 +1000 r600/sb/cayman: fix indirect ubo access on cayman With sb enabled on cayman, this was overwriting the proper cf index value with random ones if the dst gpr was 2 or 3, only save the value for a MOVA instruction. Fixes: KHR-GL45.gpu_shader5.uniform_blocks_array_indexing (on cayman with sb) Cc: <mesa-sta...@lists.freedesktop.org> Reviewed-by: Roland Scheidegger <srol...@vmware.com> Signed-off-by: Dave Airlie <airl...@redhat.com> (cherry picked from commit 8bdad9fa1faf3fa258a7731605e8b2bf218a33bd) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb4e0b77d5f02efe757e585a316ad385e0570fd5 Author: Dave Airlie <airl...@redhat.com> Date: Wed Nov 15 08:26:23 2017 +1000 r600: fix cubemap arrays A lot of cubemap array piglits fail, port the texture type picking code from radeonsi which seems to fix most of them. For images I will port the rest of the code. Fixes: getteximage-depth gl_texture_cube_map_array-* fbo-generatemipmap-cubemap array getteximage-targets cube_array amongst others. Reviewed-by: Roland Scheidegger <srol...@vmware.com> Signed-off-by: Dave Airlie <airl...@redhat.com> (cherry picked from commit 3ceee04a4f963694012ca7f9acd3c747a036472e) Squashed with: r600/eg: use texture target to pick array size not view target (v2) This fixes a few CTS cases in : KHR-GL45.texture_view.view_sampling some multisample cases are still broken, but not sure this is the same problem. v2: fix more cases Cc: <mesa-sta...@lists.freedesktop.org> Reviewed-by: Roland Scheidegger <srol...@vmware.com> Signed-off-by: Dave Airlie <airl...@redhat.com> (cherry picked from commit 012100b80936325945f24a580f643e535028fe19) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9080ddc699bb8af0fa4aa320904ce8269cb38f3c Author: Michal Navratil <f.jo...@email.cz> Date: Sun Feb 4 20:24:02 2018 +0100 winsys/amdgpu: allow non page-aligned size bo creation from pointer Fix INVALID_OPERATION caused by BufferData with target EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD when the buffer size is not page aligned. Signed-off-by: Marek Olšák <marek.ol...@amd.com> Cc: 17.3 18.0 <mesa-sta...@lists.freedesktop.org> (cherry picked from commit 4081e088962315b5c3f4e7030868faf01e7c4a69) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e0c99ead2b7ce688ef33e833c518e596e5857818 Author: Stephan Gerhold <step...@gerhold.net> Date: Wed Jan 24 15:13:24 2018 +0100 util/build-id: Fix address comparison for binaries with LOAD vaddr > 0 build_id_find_nhdr_for_addr() fails to find the build-id if the first LOAD segment has a virtual address other than 0x0. For most shared libraries, the first LOAD segment has vaddr=0x0: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x000000 0x00000000 0x00000000 0x2d2e26 0x2d2e26 R E 0x1000 LOAD 0x2d2e54 0x002d3e54 0x002d3e54 0x2e248 0x2f148 RW 0x1000 However, compiling the Intel Vulkan driver as 32-bit binary on Android produces the following ELF header with vaddr=0x8000 instead: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000034 0x00008034 0x00008034 0x00100 0x00100 R 0x4 LOAD 0x000000 0x00008000 0x00008000 0x224a04 0x224a04 R E 0x1000 LOAD 0x225710 0x0022e710 0x0022e710 0x25988 0x27364 RW 0x1000 build_id_find_nhdr_callback() compares the address of dli_fbase from dladdr() and dlpi_addr from dl_iterate_phdr(). With vaddr > 0, these point to a different memory address, e.g.: dli_fbase=0xd8395000 (offset 0x8000) dlpi_addr=0xd838d000 At least on glibc and bionic (Android) dli_fbase refers to the address where the shared object is mapped into the process space, whereas dlpi_addr is just the base address for the vaddrs declared in the ELF header. To compare them correctly, we need to calculate the start of the mapping by adding the vaddr of the first LOAD segment to the base address. Note: musl users will need the following patch. https://git.musl-libc.org/cgit/musl/commit/?id=b3ae7beabb9f0c219bb8a8b63567a01c6530c1ac Cc: Chad Versace <chadvers...@chromium.org> Cc: <mesa-sta...@lists.freedesktop.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104642 Fixes: 5c98d38 "util: Query build-id by symbol address, not library name" Reviewed-by: Emil Velikov <emil.veli...@collabora.com> Reviewed-by: Tapani Pälli <tapani.pa...@intel.com> (cherry picked from commit 02e2009b929a0f101540b9b55c5f0ed859d1b3be) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=64ed1194ea23c47b586b2c9347f1c3aeb7bceaf7 Author: Jordan Justen <jordan.l.jus...@intel.com> Date: Fri Feb 2 13:03:10 2018 -0800 i965: Create new program cache bo when clearing the program cache When the disk shader cache CI testing was enabled, we started noticing occasional failures on deqp test runs. (Mainly SNB, rarely HSW) Before this change, when we cleared the (in memory) program cache we reused the same bo. Since the disk shader cache quickly restores programs, it appears that this would lead to overwrites of the older program binaries in the in memory program cache that apparently were still executing in some cases. If these programs were still executing, this could cause a GPU hang. This issue is probably not disk shader cache specific, but may have been hidden due to the compiler taking time to recompile programs after the cache was cleared. v2: * Don't add `copy` param to brw_cache_new_bo (Ken) * Call from brw_program_cache_check_size (Ken) Cc: Kenneth Graunke <kenn...@whitecape.org> Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Jordan Justen <jordan.l.jus...@intel.com> Reviewed-by: Kenneth Graunke <kenn...@whitecape.org> (cherry picked from commit 83e60ce927142752c57163fcb8b30eca2370d014) URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5783ff9f26cf4248e547706071727d81c89452f0 Author: Juan A. Suarez Romero <jasua...@igalia.com> Date: Tue Mar 6 12:02:14 2018 +0100 cherry-ignore: Explicit 18.0 only nominations These commits are explicity nominated for 18.0 only. Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com> _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit