diff options
author | Dylan Baker <[email protected]> | 2018-09-14 12:57:32 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2020-04-21 11:09:04 -0700 |
commit | 8e3696137f2cb7b4f5a3824f26186ecbb06f9282 (patch) | |
tree | 4494df8d138aaf2bab2feafa832f68e9fdf9bfb1 /src/mesa/drivers/x11 | |
parent | 289f02d1d5990e052e21eb250f6d40b47d6eb12f (diff) |
remove final imports.h and imports.c bits
This moves the fi_types to a new mesa_private.h and removes the
imports.c file. The vast majority of this patch is just removing
pound includes of imports.h and fixing up the recursive includes.
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r-- | src/mesa/drivers/x11/fakeglx.c | 5 | ||||
-rw-r--r-- | src/mesa/drivers/x11/xfonts.c | 1 | ||||
-rw-r--r-- | src/mesa/drivers/x11/xm_api.c | 1 | ||||
-rw-r--r-- | src/mesa/drivers/x11/xm_buffer.c | 7 | ||||
-rw-r--r-- | src/mesa/drivers/x11/xm_dd.c | 7 | ||||
-rw-r--r-- | src/mesa/drivers/x11/xm_tri.c | 3 |
6 files changed, 9 insertions, 15 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 4201a05df8f..4c136cca4ed 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -47,7 +47,6 @@ #include "main/context.h" #include "main/config.h" #include "main/macros.h" -#include "util/imports.h" #include "main/mtypes.h" #include "main/version.h" #include "xfonts.h" @@ -1207,8 +1206,8 @@ choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig ) stencil_size = 8; if (accumRedSize > 0 || accumGreenSize > 0 || accumBlueSize > 0 || accumAlphaSize > 0) { - accumRedSize = - accumGreenSize = + accumRedSize = + accumGreenSize = accumBlueSize = default_accum_bits(); accumAlphaSize = alpha_flag ? accumRedSize : 0; } diff --git a/src/mesa/drivers/x11/xfonts.c b/src/mesa/drivers/x11/xfonts.c index 04f397bd27d..377edcb23b3 100644 --- a/src/mesa/drivers/x11/xfonts.c +++ b/src/mesa/drivers/x11/xfonts.c @@ -31,7 +31,6 @@ #include <stdio.h> #include "glxheader.h" #include "main/context.h" -#include "util/imports.h" #include "xfonts.h" diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c index 61a1ea8a350..0011a842fb0 100644 --- a/src/mesa/drivers/x11/xm_api.c +++ b/src/mesa/drivers/x11/xm_api.c @@ -69,7 +69,6 @@ #include "main/context.h" #include "main/extensions.h" #include "main/framebuffer.h" -#include "util/imports.h" #include "main/macros.h" #include "main/renderbuffer.h" #include "main/teximage.h" diff --git a/src/mesa/drivers/x11/xm_buffer.c b/src/mesa/drivers/x11/xm_buffer.c index d251cd4b93b..664de8dda77 100644 --- a/src/mesa/drivers/x11/xm_buffer.c +++ b/src/mesa/drivers/x11/xm_buffer.c @@ -32,7 +32,6 @@ #include "glxheader.h" #include "xmesaP.h" #include "main/errors.h" -#include "util/imports.h" #include "main/formats.h" #include "main/framebuffer.h" #include "main/renderbuffer.h" @@ -43,7 +42,7 @@ #define XMESA_RENDERBUFFER 0x1234 -#if defined(USE_XSHM) +#if defined(USE_XSHM) static volatile int mesaXErrorFlag = 0; /** @@ -177,7 +176,7 @@ alloc_back_buffer(XMesaBuffer b, GLuint width, GLuint height) if (b->db_mode == BACK_XIMAGE) { /* Deallocate the old backxrb->ximage, if any */ if (b->backxrb->ximage) { -#if defined(USE_XSHM) +#if defined(USE_XSHM) if (b->shm) { XShmDetach(b->xm_visual->display, &b->shminfo); XDestroyImage(b->backxrb->ximage); @@ -396,7 +395,7 @@ xmesa_delete_framebuffer(struct gl_framebuffer *fb) if (fb->Visual.doubleBufferMode) { /* free back ximage/pixmap/shmregion */ if (b->backxrb->ximage) { -#if defined(USE_XSHM) +#if defined(USE_XSHM) if (b->shm) { XShmDetach( b->display, &b->shminfo ); XDestroyImage( b->backxrb->ximage ); diff --git a/src/mesa/drivers/x11/xm_dd.c b/src/mesa/drivers/x11/xm_dd.c index 9872115f96d..195684450a8 100644 --- a/src/mesa/drivers/x11/xm_dd.c +++ b/src/mesa/drivers/x11/xm_dd.c @@ -37,7 +37,6 @@ #include "main/macros.h" #include "main/mipmap.h" #include "main/image.h" -#include "util/imports.h" #include "main/mtypes.h" #include "main/pbo.h" #include "main/texformat.h" @@ -316,7 +315,7 @@ can_do_DrawPixels_8R8G8B(struct gl_context *ctx, GLenum format, GLenum type) if (swrast->NewState) _swrast_validate_derived( ctx ); - + if ((swrast->_RasterMask & ~CLIP_BIT) == 0) /* no blend, z-test, etc */ { struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[0]; if (rb) { @@ -447,7 +446,7 @@ can_do_DrawPixels_5R6G5B(struct gl_context *ctx, GLenum format, GLenum type) if (swrast->NewState) _swrast_validate_derived( ctx ); - + if ((swrast->_RasterMask & ~CLIP_BIT) == 0) /* no blend, z-test, etc */ { struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[0]; if (rb) { @@ -487,7 +486,7 @@ xmesa_DrawPixels_5R6G5B( struct gl_context *ctx, if (swrast->NewState) _swrast_validate_derived( ctx ); - + if (unpack->BufferObj) { /* unpack from PBO */ GLubyte *buf; diff --git a/src/mesa/drivers/x11/xm_tri.c b/src/mesa/drivers/x11/xm_tri.c index d5a27a981dc..fff2af05a18 100644 --- a/src/mesa/drivers/x11/xm_tri.c +++ b/src/mesa/drivers/x11/xm_tri.c @@ -32,7 +32,6 @@ #include <stdio.h> #include "c99_math.h" -#include "util/imports.h" #include "main/mtypes.h" #include "glxheader.h" #include "xmesaP.h" @@ -1021,7 +1020,7 @@ get_triangle_func(struct gl_context *ctx) return (swrast_tri_func) NULL; if (swrast->_RasterMask & MULTI_DRAW_BIT) return (swrast_tri_func) NULL; - if (ctx->Polygon.CullFlag && + if (ctx->Polygon.CullFlag && ctx->Polygon.CullFaceMode == GL_FRONT_AND_BACK) return (swrast_tri_func) NULL; |