uxa/dri: Do not use undeclared stdbool features
The header isn't pulled in, so stop using the undefined values of true/false. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
1dafb4777f
commit
f2513cb0fd
|
|
@ -263,7 +263,7 @@ I830DRI2CreateBuffers(DrawablePtr drawable, unsigned int *attachments,
|
||||||
DRI2BufferPtr buffers;
|
DRI2BufferPtr buffers;
|
||||||
I830DRI2BufferPrivatePtr privates;
|
I830DRI2BufferPrivatePtr privates;
|
||||||
PixmapPtr pixmap, pDepthPixmap;
|
PixmapPtr pixmap, pDepthPixmap;
|
||||||
bool is_glamor_pixmap = false;
|
Bool is_glamor_pixmap = FALSE;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
buffers = calloc(count, sizeof *buffers);
|
buffers = calloc(count, sizeof *buffers);
|
||||||
|
|
@ -282,7 +282,7 @@ I830DRI2CreateBuffers(DrawablePtr drawable, unsigned int *attachments,
|
||||||
pixmap = get_front_buffer(drawable);
|
pixmap = get_front_buffer(drawable);
|
||||||
|
|
||||||
if (pixmap && intel_get_pixmap_private(pixmap) == NULL) {
|
if (pixmap && intel_get_pixmap_private(pixmap) == NULL) {
|
||||||
is_glamor_pixmap = true;
|
is_glamor_pixmap = TRUE;
|
||||||
drawable = &pixmap->drawable;
|
drawable = &pixmap->drawable;
|
||||||
pixmap = NULL;
|
pixmap = NULL;
|
||||||
}
|
}
|
||||||
|
|
@ -390,7 +390,7 @@ I830DRI2CreateBuffer(DrawablePtr drawable, unsigned int attachment,
|
||||||
DRI2Buffer2Ptr buffer;
|
DRI2Buffer2Ptr buffer;
|
||||||
I830DRI2BufferPrivatePtr privates;
|
I830DRI2BufferPrivatePtr privates;
|
||||||
PixmapPtr pixmap;
|
PixmapPtr pixmap;
|
||||||
bool is_glamor_pixmap = false;
|
Bool is_glamor_pixmap = FALSE;
|
||||||
|
|
||||||
buffer = calloc(1, sizeof *buffer);
|
buffer = calloc(1, sizeof *buffer);
|
||||||
if (buffer == NULL)
|
if (buffer == NULL)
|
||||||
|
|
@ -406,7 +406,7 @@ I830DRI2CreateBuffer(DrawablePtr drawable, unsigned int attachment,
|
||||||
pixmap = get_front_buffer(drawable);
|
pixmap = get_front_buffer(drawable);
|
||||||
|
|
||||||
if (pixmap && intel_get_pixmap_private(pixmap) == NULL) {
|
if (pixmap && intel_get_pixmap_private(pixmap) == NULL) {
|
||||||
is_glamor_pixmap = true;
|
is_glamor_pixmap = FALSE;
|
||||||
drawable = &pixmap->drawable;
|
drawable = &pixmap->drawable;
|
||||||
pixmap = NULL;
|
pixmap = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue