From f24e106ead6d15caa4d5aafda7260424d4a38ed9 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 5 Dec 2011 16:25:27 +0000 Subject: [PATCH] radeon: use mesa renderbuffer accessors for depth for now. Signed-off-by: Dave Airlie --- src/mesa/drivers/dri/radeon/radeon_span.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_span.c b/src/mesa/drivers/dri/radeon/radeon_span.c index b83d152091c..d4d68365ecd 100644 --- a/src/mesa/drivers/dri/radeon/radeon_span.c +++ b/src/mesa/drivers/dri/radeon/radeon_span.c @@ -42,6 +42,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "main/glheader.h" #include "main/texformat.h" +#include "main/renderbuffer.h" #include "swrast/swrast.h" #include "radeon_common.h" @@ -614,13 +615,13 @@ static void radeonSetSpanFunctions(struct radeon_renderbuffer *rrb) } else if (rrb->base.Format == MESA_FORMAT_ARGB1555_REV) { radeonInitPointers_ARGB1555_REV(&rrb->base); } else if (rrb->base.Format == MESA_FORMAT_Z16) { - radeonInitDepthPointers_z16(&rrb->base); + _mesa_set_renderbuffer_accessors(&rrb->base); } else if (rrb->base.Format == MESA_FORMAT_X8_Z24) { - radeonInitDepthPointers_z24(&rrb->base); + _mesa_set_renderbuffer_accessors(&rrb->base); } else if (rrb->base.Format == MESA_FORMAT_S8_Z24) { - radeonInitDepthPointers_s8_z24(&rrb->base); + _mesa_set_renderbuffer_accessors(&rrb->base); } else if (rrb->base.Format == MESA_FORMAT_S8) { - radeonInitStencilPointers_s8_z24(&rrb->base); + _mesa_set_renderbuffer_accessors(&rrb->base); } else { fprintf(stderr, "radeonSetSpanFunctions: bad format: 0x%04X\n", rrb->base.Format); } -- 2.30.2