From e6c237cfd6f53ff569f68255d5d6da15148cd0f5 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 10 Oct 2011 17:43:59 -0600 Subject: draw/llvm: fix hard-coded number of total clip planes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of 12 use DRAW_TOTAL_CLIP_PLANES. The max number of user-defined clip planes was increased to 8 so the total number of planes is 14. This doesn't fix any specific bug, but clearly the old code was wrong. Reviewed-by: José Fonseca --- src/gallium/auxiliary/draw/draw_llvm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/auxiliary/draw/draw_llvm.h') diff --git a/src/gallium/auxiliary/draw/draw_llvm.h b/src/gallium/auxiliary/draw/draw_llvm.h index 375b7b8..bc36135 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.h +++ b/src/gallium/auxiliary/draw/draw_llvm.h @@ -98,7 +98,7 @@ struct draw_jit_context { const float *vs_constants; const float *gs_constants; - float (*planes) [12][4]; + float (*planes) [DRAW_TOTAL_CLIP_PLANES][4]; float *viewport; struct draw_jit_texture textures[PIPE_MAX_VERTEX_SAMPLERS]; -- cgit v1.1