mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
kdrive/fbdev: Use ARRAY_SIZE from dix.h
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
committed by
Enrico Weigelt
parent
34d16e48d4
commit
4060cd7d59
@@ -8,6 +8,7 @@
|
||||
#include <X11/Xfuncproto.h>
|
||||
|
||||
#include <epoxy/egl.h>
|
||||
#include "dix.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "glamor_priv.h"
|
||||
#include "glamor_egl.h"
|
||||
@@ -28,8 +29,6 @@ bool fbGlamorAllowed = TRUE;
|
||||
bool fbForceGlamor = FALSE;
|
||||
bool fbXVAllowed = TRUE;
|
||||
|
||||
#define ARR_SIZE(x) (sizeof(x) / sizeof(*(x)))
|
||||
|
||||
static void
|
||||
fbdev_glamor_egl_cleanup(FbdevScrPriv *scrpriv)
|
||||
{
|
||||
@@ -504,7 +503,7 @@ fbdev_glamor_egl_try_big_gl_api(FbdevScrPriv *scrpriv)
|
||||
scrpriv->ctx = fbdev_glamor_egl_create_context(scrpriv->display,
|
||||
config_attrib_list,
|
||||
ctx_attrib_lists,
|
||||
ARR_SIZE(ctx_attrib_lists));
|
||||
ARRAY_SIZE(ctx_attrib_lists));
|
||||
|
||||
if (scrpriv->ctx == EGL_NO_CONTEXT) {
|
||||
return FALSE;
|
||||
@@ -552,7 +551,7 @@ fbdev_glamor_egl_try_gles_api(FbdevScrPriv *scrpriv)
|
||||
scrpriv->ctx = fbdev_glamor_egl_create_context(scrpriv->display,
|
||||
config_attrib_list,
|
||||
ctx_attrib_lists,
|
||||
ARR_SIZE(ctx_attrib_lists));
|
||||
ARRAY_SIZE(ctx_attrib_lists));
|
||||
|
||||
if (scrpriv->ctx == EGL_NO_CONTEXT) {
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user