SHA256
1
0
forked from pool/Mesa
Mesa/U_intel-aubinator-mark-ftruncate_res-as-MAYBE_UNUSED-i.patch
Stefan Dirsch dbe2ec5f48 Accepting request 637103 from home:mimi_vx:branches:X11:XOrg
- update to 18.2.1
  * Lot of fixes for Vulkan drivers.

- get rid of libwayland-egl1/libwayland-egl-devel completely; also
  for older Leap versions

- update to 18.2.0
  * This release consists of nearly 2200 commits from approximately
    130 developers.
  * The top highlights include:
    - OpenGL 4.3 on virgl.
    - OpenGL 4.4 Compatibility profile on radeonsi.
    - OpenGL ES 3.2 on radeonsi and virgl.
    - GL_ARB_ES3_2_compatibility on radeonsi.
    - GL_ARB_fragment_shader_interlock on i965.
    - GL_ARB_sample_locations and GL_NV_sample_locations on nvc0 (GM200+).
    - GL_ANDROID_extension_pack_es31a on radeonsi.
    - GL_KHR_texture_compression_astc_ldr on radeonsi.
    - GL_NV_conservative_raster and GL_NV_conservative_raster_dilate on
      nvc0 (GM200+).
    - GL_NV_conservative_raster_pre_snap_triangles on nvc0 (GP102+).
    - multisampled images on nvc0 (GM107+) (now supported on GF100+).
  * Additional features:
    - ANV Extensions:
      - VK_KHR_bind_memory2.
      - VK_KHR_external_fence.
      - VK_KHR_external_fence_capabilities.
      - VK_KHR_external_semaphore.
      - VK_KHR_external_semaphore_capabilities.
      - VK_KHR_maintenance2.

OBS-URL: https://build.opensuse.org/request/show/637103
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=774
2018-09-23 10:25:38 +00:00

40 lines
1.5 KiB
Diff

From ccdefbb559a60c2560118d253a9eaeffd1e94eb6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kai=20Wasserb=C3=A4ch?= <kai@dev.carbon-project.org>
Date: Sat, 18 Aug 2018 13:16:11 +0200
Subject: [PATCH] intel: aubinator: mark ftruncate_res as MAYBE_UNUSED in
ensure_phys_mem
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Only used, when asserts are enabled.
Fixes an unused-variable warning with GCC 8:
../../../src/intel/tools/aubinator.c: In function 'ensure_phys_mem':
../../../src/intel/tools/aubinator.c:209:11: warning: unused variable 'ftruncate_res' [-Wunused-variable]
int ftruncate_res = ftruncate(mem_fd, mem_fd_len += 4096);
^~~~~~~~~~~~~
Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
---
src/intel/tools/aubinator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index 9a3b1d1ef1..66a7db1043 100644
--- a/src/intel/tools/aubinator.c
+++ b/src/intel/tools/aubinator.c
@@ -206,7 +206,7 @@ ensure_phys_mem(uint64_t phys_addr)
new_mem->phys_addr = phys_addr;
new_mem->fd_offset = mem_fd_len;
- int ftruncate_res = ftruncate(mem_fd, mem_fd_len += 4096);
+ MAYBE_UNUSED int ftruncate_res = ftruncate(mem_fd, mem_fd_len += 4096);
assert(ftruncate_res == 0);
new_mem->data = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED,
--
2.16.4