Mesa (master): draw: setup pipe's draw pointer for the aapoint stage

Brian Paul brianp at kemper.freedesktop.org
Tue Mar 1 01:34:42 UTC 2011


Module: Mesa
Branch: master
Commit: e6f3e24330926b2ea04c39b5a60b9a20123e5bd4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e6f3e24330926b2ea04c39b5a60b9a20123e5bd4

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Feb 28 18:25:37 2011 -0700

draw: setup pipe's draw pointer for the aapoint stage

The other draw stages like aaline and pstipple were already doing this.
If the driver used the aapoint stage but not the others it would crash
because of a null pipe->draw pointer.

---

 src/gallium/auxiliary/draw/draw_pipe_aapoint.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_pipe_aapoint.c b/src/gallium/auxiliary/draw/draw_pipe_aapoint.c
index 5ea552f..60f6380 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_aapoint.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_aapoint.c
@@ -874,6 +874,8 @@ draw_install_aapoint_stage(struct draw_context *draw,
 {
    struct aapoint_stage *aapoint;
 
+   pipe->draw = (void *) draw;
+
    /*
     * Create / install AA point drawing / prim stage
     */




More information about the mesa-commit mailing list