#include "program/program.h"
#include "tnl/tnl.h"
#include "swrast/swrast.h"
+#include "swrast/s_renderbuffer.h"
#include "driverfuncs.h"
#include "meta.h"
_mesa_init_sync_object_functions(driver);
driver->NewFramebuffer = _mesa_new_framebuffer;
- driver->NewRenderbuffer = _mesa_new_soft_renderbuffer;
- driver->MapRenderbuffer = _mesa_map_soft_renderbuffer;
- driver->UnmapRenderbuffer = _mesa_unmap_soft_renderbuffer;
+ driver->NewRenderbuffer = _swrast_new_soft_renderbuffer;
+ driver->MapRenderbuffer = _swrast_map_soft_renderbuffer;
+ driver->UnmapRenderbuffer = _swrast_unmap_soft_renderbuffer;
driver->RenderTexture = _swrast_render_texture;
driver->FinishRenderTexture = _swrast_finish_render_texture;
driver->FramebufferRenderbuffer = _mesa_framebuffer_renderbuffer;
*
**************************************************************************/
+#include "main/accum.h"
#include "main/enums.h"
#include "main/state.h"
#include "main/bufferobj.h"
#include "main/hash.h"
#include "main/fbobject.h"
#include "main/mfeatures.h"
+#include "swrast/s_renderbuffer.h"
#include "utils.h"
#include "xmlpool.h"
}
/* now add any/all software-based renderbuffers we may need */
- _mesa_add_soft_renderbuffers(fb,
- false, /* never sw color */
- false, /* never sw depth */
- false, /* never sw stencil */
- mesaVis->accumRedBits > 0,
- false, /* never sw alpha */
- false /* never sw aux */ );
+ _swrast_add_soft_renderbuffers(fb,
+ false, /* never sw color */
+ false, /* never sw depth */
+ false, /* never sw stencil */
+ mesaVis->accumRedBits > 0,
+ false, /* never sw alpha */
+ false /* never sw aux */ );
driDrawPriv->driverPrivate = fb;
return true;
#include "intel_tex.h"
#include "swrast/swrast.h"
+#include "swrast/s_renderbuffer.h"
static void
intel_set_span_functions(struct intel_context *intel,
[MESA_FORMAT_XRGB8888] = intel_InitPointers_xRGB8888,
[MESA_FORMAT_ARGB8888] = intel_InitPointers_ARGB8888,
[MESA_FORMAT_SARGB8] = intel_InitPointers_ARGB8888,
- [MESA_FORMAT_Z16] = _mesa_set_renderbuffer_accessors,
- [MESA_FORMAT_X8_Z24] = _mesa_set_renderbuffer_accessors,
- [MESA_FORMAT_S8_Z24] = _mesa_set_renderbuffer_accessors,
- [MESA_FORMAT_S8] = _mesa_set_renderbuffer_accessors,
- [MESA_FORMAT_R8] = _mesa_set_renderbuffer_accessors,
- [MESA_FORMAT_GR88] = _mesa_set_renderbuffer_accessors,
- [MESA_FORMAT_R16] = _mesa_set_renderbuffer_accessors,
- [MESA_FORMAT_RG1616] = _mesa_set_renderbuffer_accessors,
- [MESA_FORMAT_RGBA_FLOAT32] = _mesa_set_renderbuffer_accessors,
- [MESA_FORMAT_RG_FLOAT32] = _mesa_set_renderbuffer_accessors,
- [MESA_FORMAT_R_FLOAT32] = _mesa_set_renderbuffer_accessors,
- [MESA_FORMAT_INTENSITY_FLOAT32] = _mesa_set_renderbuffer_accessors,
- [MESA_FORMAT_LUMINANCE_FLOAT32] = _mesa_set_renderbuffer_accessors,
+ [MESA_FORMAT_Z16] = _swrast_set_renderbuffer_accessors,
+ [MESA_FORMAT_X8_Z24] = _swrast_set_renderbuffer_accessors,
+ [MESA_FORMAT_S8_Z24] = _swrast_set_renderbuffer_accessors,
+ [MESA_FORMAT_S8] = _swrast_set_renderbuffer_accessors,
+ [MESA_FORMAT_R8] = _swrast_set_renderbuffer_accessors,
+ [MESA_FORMAT_GR88] = _swrast_set_renderbuffer_accessors,
+ [MESA_FORMAT_R16] = _swrast_set_renderbuffer_accessors,
+ [MESA_FORMAT_RG1616] = _swrast_set_renderbuffer_accessors,
+ [MESA_FORMAT_RGBA_FLOAT32] = _swrast_set_renderbuffer_accessors,
+ [MESA_FORMAT_RG_FLOAT32] = _swrast_set_renderbuffer_accessors,
+ [MESA_FORMAT_R_FLOAT32] = _swrast_set_renderbuffer_accessors,
+ [MESA_FORMAT_INTENSITY_FLOAT32] = _swrast_set_renderbuffer_accessors,
+ [MESA_FORMAT_LUMINANCE_FLOAT32] = _swrast_set_renderbuffer_accessors,
};
bool
#include "main/framebuffer.h"
#include "main/renderbuffer.h"
+#include "swrast/s_renderbuffer.h"
static const __DRIextension *nouveau_screen_extensions[];
}
/* Software renderbuffers. */
- _mesa_add_soft_renderbuffers(fb, GL_FALSE, GL_FALSE, GL_FALSE,
- visual->accumRedBits > 0,
- GL_FALSE, GL_FALSE);
+ _swrast_add_soft_renderbuffers(fb, GL_FALSE, GL_FALSE, GL_FALSE,
+ visual->accumRedBits > 0,
+ GL_FALSE, GL_FALSE);
drawable->driverPrivate = fb;
#include "main/framebuffer.h"
#include "main/renderbuffer.h"
#include "main/fbobject.h"
+#include "swrast/s_renderbuffer.h"
#define STANDALONE_MMIO
#include "radeon_chipset.h"
depth->has_surface = screen->depthHasSurface;
}
- _mesa_add_soft_renderbuffers(&rfb->base,
+ _swrast_add_soft_renderbuffers(&rfb->base,
GL_FALSE, /* color */
swDepth,
swStencil,
#include "main/texformat.h"
#include "main/renderbuffer.h"
#include "swrast/swrast.h"
+#include "swrast/s_renderbuffer.h"
#include "radeon_common.h"
#include "radeon_span.h"
} else if (rrb->base.Format == MESA_FORMAT_ARGB1555_REV) {
radeonInitPointers_ARGB1555_REV(&rrb->base);
} else if (rrb->base.Format == MESA_FORMAT_Z16) {
- _mesa_set_renderbuffer_accessors(&rrb->base);
+ _swrast_set_renderbuffer_accessors(&rrb->base);
} else if (rrb->base.Format == MESA_FORMAT_X8_Z24) {
- _mesa_set_renderbuffer_accessors(&rrb->base);
+ _swrast_set_renderbuffer_accessors(&rrb->base);
} else if (rrb->base.Format == MESA_FORMAT_S8_Z24) {
- _mesa_set_renderbuffer_accessors(&rrb->base);
+ _swrast_set_renderbuffer_accessors(&rrb->base);
} else if (rrb->base.Format == MESA_FORMAT_S8) {
- _mesa_set_renderbuffer_accessors(&rrb->base);
+ _swrast_set_renderbuffer_accessors(&rrb->base);
} else {
fprintf(stderr, "radeonSetSpanFunctions: bad format: 0x%04X\n", rrb->base.Format);
}
#include "main/imports.h"
#include "main/renderbuffer.h"
#include "swrast/swrast.h"
+#include "swrast/s_renderbuffer.h"
#include "swrast_setup/swrast_setup.h"
#include "tnl/tnl.h"
#include "tnl/t_context.h"
}
/* add software renderbuffers */
- _mesa_add_soft_renderbuffers(fb,
- GL_FALSE, /* color */
- visual->haveDepthBuffer,
- visual->haveStencilBuffer,
- visual->haveAccumBuffer,
- GL_FALSE, /* alpha */
- GL_FALSE /* aux bufs */);
+ _swrast_add_soft_renderbuffers(fb,
+ GL_FALSE, /* color */
+ visual->haveDepthBuffer,
+ visual->haveStencilBuffer,
+ visual->haveAccumBuffer,
+ GL_FALSE, /* alpha */
+ GL_FALSE /* aux bufs */);
return GL_TRUE;
#include "swrast_setup/swrast_setup.h"
#include "swrast/s_context.h"
#include "swrast/s_lines.h"
+#include "swrast/s_renderbuffer.h"
#include "swrast/s_triangle.h"
#include "tnl/tnl.h"
#include "tnl/t_context.h"
/* Create depth/stencil/accum buffers. We'll create the color
* buffer later in OSMesaMakeCurrent().
*/
- _mesa_add_soft_renderbuffers(osmesa->gl_buffer,
- GL_FALSE, /* color */
- osmesa->gl_visual->haveDepthBuffer,
- osmesa->gl_visual->haveStencilBuffer,
- osmesa->gl_visual->haveAccumBuffer,
- GL_FALSE, /* alpha */
- GL_FALSE /* aux */ );
+ _swrast_add_soft_renderbuffers(osmesa->gl_buffer,
+ GL_FALSE, /* color */
+ osmesa->gl_visual->haveDepthBuffer,
+ osmesa->gl_visual->haveStencilBuffer,
+ osmesa->gl_visual->haveAccumBuffer,
+ GL_FALSE, /* alpha */
+ GL_FALSE /* aux */ );
osmesa->format = format;
osmesa->userRowLength = 0;
#include "drivers/common/meta.h"
#include "vbo/vbo.h"
#include "swrast/swrast.h"
+#include "swrast/s_renderbuffer.h"
#include "swrast_setup/swrast_setup.h"
#include "tnl/tnl.h"
#include "tnl/t_context.h"
wmesa_set_renderbuffer_funcs(rb, pwfb->pixelformat, pwfb->cColorBits, 0);
/* Let Mesa own the Depth, Stencil, and Accum buffers */
- _mesa_add_soft_renderbuffers(&pwfb->Base,
- GL_FALSE, /* color */
- visual->depthBits > 0,
- visual->stencilBits > 0,
- visual->accumRedBits > 0,
- visual->alphaBits >0,
- GL_FALSE);
+ _swrast_add_soft_renderbuffers(&pwfb->Base,
+ GL_FALSE, /* color */
+ visual->depthBits > 0,
+ visual->stencilBits > 0,
+ visual->accumRedBits > 0,
+ visual->alphaBits >0,
+ GL_FALSE);
}
if (c && pwfb)
#include "main/teximage.h"
#include "glapi/glthread.h"
#include "swrast/swrast.h"
+#include "swrast/s_renderbuffer.h"
#include "swrast_setup/swrast_setup.h"
#include "vbo/vbo.h"
#include "tnl/tnl.h"
/*
* Other renderbuffer (depth, stencil, etc)
*/
- _mesa_add_soft_renderbuffers(&b->mesa_buffer,
- GL_FALSE, /* color */
- vis->mesa_visual.haveDepthBuffer,
- vis->mesa_visual.haveStencilBuffer,
- vis->mesa_visual.haveAccumBuffer,
- GL_FALSE, /* software alpha buffer */
- vis->mesa_visual.numAuxBuffers > 0 );
+ _swrast_add_soft_renderbuffers(&b->mesa_buffer,
+ GL_FALSE, /* color */
+ vis->mesa_visual.haveDepthBuffer,
+ vis->mesa_visual.haveStencilBuffer,
+ vis->mesa_visual.haveAccumBuffer,
+ GL_FALSE, /* software alpha buffer */
+ vis->mesa_visual.numAuxBuffers > 0 );
/* GLX_EXT_texture_from_pixmap */
b->TextureTarget = 0;
#include "main/formats.h"
#include "main/framebuffer.h"
#include "main/renderbuffer.h"
+#include "swrast/s_renderbuffer.h"
#define XMESA_RENDERBUFFER 0x1234
}
/* otherwise, this is an ordinary malloc-based renderbuffer */
- _mesa_map_soft_renderbuffer(ctx, rb, x, y, w, h, mode,
- mapOut, rowStrideOut);
+ _swrast_map_soft_renderbuffer(ctx, rb, x, y, w, h, mode,
+ mapOut, rowStrideOut);
}
}
/* otherwise, this is an ordinary malloc-based renderbuffer */
- _mesa_unmap_soft_renderbuffer(ctx, rb);
+ _swrast_unmap_soft_renderbuffer(ctx, rb);
}