summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/common/driverfuncs.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-10-13 12:02:43 -0700
committerEric Anholt <[email protected]>2011-11-01 15:42:17 -0700
commit76d1275474d7b5ac2f0edf5856ae1c5fc234f0d9 (patch)
tree237e9241c2cd2c749b3fcb979c2e4a15bb35da00 /src/mesa/drivers/common/driverfuncs.c
parenta25a452fbed6cd72b356ff96839d2097b3e4a4fe (diff)
Add MapRenderbuffer implementations for software drivers.
Mesa core's is generic for things like osmesa. For swrast_dri.so, we have to do Y flipping. The front-buffer path isn't actually tested, though, because both before and after it fails with a BadMatch in XGetImage. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/driverfuncs.c')
-rw-r--r--src/mesa/drivers/common/driverfuncs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c
index 920271626a9..27ea559b3d3 100644
--- a/src/mesa/drivers/common/driverfuncs.c
+++ b/src/mesa/drivers/common/driverfuncs.c
@@ -180,6 +180,8 @@ _mesa_init_driver_functions(struct dd_function_table *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->RenderTexture = _swrast_render_texture;
driver->FinishRenderTexture = _swrast_finish_render_texture;
driver->FramebufferRenderbuffer = _mesa_framebuffer_renderbuffer;