dri3: unexport VERIFY_DRI3_SYNCOBJ() macro
Not used by any drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
30c0dd3734
commit
1295fc3ff5
14
dri3/dri3.h
14
dri3/dri3.h
|
@ -23,8 +23,6 @@
|
||||||
#ifndef _DRI3_H_
|
#ifndef _DRI3_H_
|
||||||
#define _DRI3_H_
|
#define _DRI3_H_
|
||||||
|
|
||||||
#ifdef DRI3
|
|
||||||
|
|
||||||
#include <X11/extensions/dri3proto.h>
|
#include <X11/extensions/dri3proto.h>
|
||||||
#include <randrstr.h>
|
#include <randrstr.h>
|
||||||
|
|
||||||
|
@ -46,16 +44,6 @@ struct dri3_syncobj
|
||||||
void (*signaled_eventfd)(struct dri3_syncobj *syncobj, uint64_t point, int efd);
|
void (*signaled_eventfd)(struct dri3_syncobj *syncobj, uint64_t point, int efd);
|
||||||
};
|
};
|
||||||
|
|
||||||
#define VERIFY_DRI3_SYNCOBJ(id, ptr, a)\
|
|
||||||
do {\
|
|
||||||
int rc = dixLookupResourceByType((void **)&(ptr), id,\
|
|
||||||
dri3_syncobj_type, client, a);\
|
|
||||||
if (rc != Success) {\
|
|
||||||
client->errorValue = id;\
|
|
||||||
return rc;\
|
|
||||||
}\
|
|
||||||
} while (0);
|
|
||||||
|
|
||||||
typedef int (*dri3_open_proc)(ScreenPtr screen,
|
typedef int (*dri3_open_proc)(ScreenPtr screen,
|
||||||
RRProviderPtr provider,
|
RRProviderPtr provider,
|
||||||
int *fd);
|
int *fd);
|
||||||
|
@ -146,6 +134,4 @@ dri3_send_open_reply(ClientPtr client, int fd);
|
||||||
extern _X_EXPORT uint32_t
|
extern _X_EXPORT uint32_t
|
||||||
drm_format_for_depth(uint32_t depth, uint32_t bpp);
|
drm_format_for_depth(uint32_t depth, uint32_t bpp);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _DRI3_H_ */
|
#endif /* _DRI3_H_ */
|
||||||
|
|
|
@ -64,6 +64,16 @@ typedef struct dri3_screen_priv {
|
||||||
real->mem = priv->mem; \
|
real->mem = priv->mem; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define VERIFY_DRI3_SYNCOBJ(id, ptr, a)\
|
||||||
|
do {\
|
||||||
|
int rc = dixLookupResourceByType((void **)&(ptr), id,\
|
||||||
|
dri3_syncobj_type, client, a);\
|
||||||
|
if (rc != Success) {\
|
||||||
|
client->errorValue = id;\
|
||||||
|
return rc;\
|
||||||
|
}\
|
||||||
|
} while (0);
|
||||||
|
|
||||||
static inline dri3_screen_priv_ptr
|
static inline dri3_screen_priv_ptr
|
||||||
dri3_screen_priv(ScreenPtr screen)
|
dri3_screen_priv(ScreenPtr screen)
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "dri3/dri3_priv.h"
|
||||||
|
|
||||||
#include "present_priv.h"
|
#include "present_priv.h"
|
||||||
#include "randrstr_priv.h"
|
#include "randrstr_priv.h"
|
||||||
|
|
Loading…
Reference in New Issue