virgl: rename vrend_util.h

Rename vrend_util.h to virgl_util.h.  Add the header guard.

"vrend" is the prefix for the GL renderer code.  "virgl" is the
prefix for common code.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Chia-I Wu 5 years ago
parent daab8d327e
commit 3c830d5e28
  1. 2
      src/Makefile.am
  2. 2
      src/meson.build
  3. 2
      src/virgl_egl_context.c
  4. 5
      src/virgl_util.h
  5. 2
      src/vrend_renderer.c

@ -21,6 +21,7 @@ AM_CFLAGS = \
libvrend_la_SOURCES = \
virgl_hw.h \
virgl_protocol.h \
virgl_util.h \
vrend_iov.h \
vrend_renderer.c \
vrend_renderer.h \
@ -37,7 +38,6 @@ libvrend_la_SOURCES = \
vrend_strbuf.h \
vrend_tweaks.c \
vrend_tweaks.h \
vrend_util.h \
iov.c
if HAVE_EPOXY_EGL

@ -27,6 +27,7 @@ virgl_sources = [
'iov.c',
'virgl_hw.h',
'virgl_protocol.h',
'virgl_util.h',
'vrend_blitter.c',
'vrend_blitter.h',
'vrend_debug.c',
@ -43,7 +44,6 @@ virgl_sources = [
'vrend_strbuf.h',
'vrend_tweaks.c',
'vrend_tweaks.h',
'vrend_util.h',
]
virglrenderer_sources = [

@ -43,7 +43,7 @@
#include "virgl_egl.h"
#include "virgl_hw.h"
#include "virgl_gbm.h"
#include "vrend_util.h"
#include "virgl_util.h"
#define EGL_KHR_SURFACELESS_CONTEXT BIT(0)
#define EGL_KHR_CREATE_CONTEXT BIT(1)

@ -22,6 +22,9 @@
*
**************************************************************************/
#ifndef VIRGL_UTIL_H
#define VIRGL_UTIL_H
#include <stdint.h>
#include <stdbool.h>
@ -41,3 +44,5 @@ static inline bool is_only_bit(uint32_t mask, uint32_t bit)
{
return (mask == bit);
}
#endif /* VIRGL_UTIL_H */

@ -49,7 +49,7 @@
#include "vrend_renderer.h"
#include "vrend_debug.h"
#include "vrend_util.h"
#include "virgl_util.h"
#include "virgl_hw.h"
#include "virglrenderer.h"

Loading…
Cancel
Save