virglrenderer: silence some compile warnings

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
macos/master
Yiwei Zhang 3 years ago
parent 0432a546c3
commit 875ce171d3
  1. 2
      src/gallium/auxiliary/tgsi/tgsi_strings.c
  2. 2
      src/gallium/auxiliary/util/u_math.c
  3. 2
      src/vrend_winsys_egl.c
  4. 5
      src/vrend_winsys_gbm.c

@ -228,7 +228,7 @@ const char *tgsi_memory_names[3] =
"VOLATILE",
};
static inline void
static inline void UNUSED
tgsi_strings_check(void)
{
STATIC_ASSERT(Elements(tgsi_semantic_names) == TGSI_SEMANTIC_COUNT);

@ -35,8 +35,10 @@
#include <xmmintrin.h>
/* This is defined in pmmintrin.h, but it can only be included when -msse3 is
* used, so just define it here to avoid further. */
#ifndef _MM_DENORMALS_ZERO_MASK
#define _MM_DENORMALS_ZERO_MASK 0x0040
#endif
#endif
#if 0
/** 2^x, for x in [-1.0, 1.0) */

@ -740,4 +740,4 @@ bool virgl_egl_export_fence(struct virgl_egl *egl, EGLSyncKHR fence, int *out_fd
bool virgl_egl_different_gpu(struct virgl_egl *egl)
{
return egl->different_gpu;
}
}

@ -345,7 +345,7 @@ int virgl_gbm_transfer(struct gbm_bo *bo, uint32_t direction, const struct iovec
/* XXX remove this and map just the region when single plane and GBM honors the region */
if (direction == VIRGL_TRANSFER_TO_HOST &&
!(info->box->x == 0 && info->box->y == 0 &&
info->box->width == width && info->box->height == height))
info->box->width == (int)width && info->box->height == (int)height))
map_flags |= GBM_BO_TRANSFER_READ;
void *addr = gbm_bo_map(bo, 0, 0, width, height, map_flags, &host_map_stride0, &map_data);
@ -440,7 +440,8 @@ uint32_t virgl_gbm_convert_flags(uint32_t virgl_bind_flags)
if (virgl_bind_flags & VIRGL_BIND_MINIGBM_HW_VIDEO_ENCODER)
flags |= GBM_BO_USE_HW_VIDEO_ENCODER;
if ((virgl_bind_flags & VIRGL_BIND_MINIGBM_PROTECTED) == VIRGL_BIND_MINIGBM_PROTECTED) {
if ((virgl_bind_flags & VIRGL_BIND_MINIGBM_PROTECTED) ==
(uint32_t)VIRGL_BIND_MINIGBM_PROTECTED) {
flags |= GBM_BO_USE_PROTECTED;
} else {
if (virgl_bind_flags & VIRGL_BIND_MINIGBM_SW_READ_OFTEN)

Loading…
Cancel
Save