Module: Mesa
Branch: lp-binning
Commit: df8cedf9898cfc9c2ff8d5249ab1fe316f575a84
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=df8cedf9898cfc9c2ff8d5249ab1fe316f575a84

Author: José Fonseca <jfons...@vmware.com>
Date:   Thu Oct  8 19:53:56 2009 +0100

llvmpipe: Adjust interpolation coeffs declaration.

---

 src/gallium/drivers/llvmpipe/lp_rast.h |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h 
b/src/gallium/drivers/llvmpipe/lp_rast.h
index 41a7f5e..492e4b0 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.h
+++ b/src/gallium/drivers/llvmpipe/lp_rast.h
@@ -61,11 +61,15 @@ struct lp_rast_shader_inputs {
     */
    const struct lp_rast_state *state;
 
-   /* Attribute interpolation:  FIXME: reduce memory waste!
+   /* Attribute interpolation:
+    *
+    * First coefficient is position.
+    *
+    * FIXME: reduce memory waste!
     */
-   float a0[PIPE_MAX_ATTRIBS][4];
-   float dadx[PIPE_MAX_ATTRIBS][4];
-   float dady[PIPE_MAX_ATTRIBS][4];
+   float a0[1 + PIPE_MAX_SHADER_INPUTS][4];
+   float dadx[1 + PIPE_MAX_SHADER_INPUTS][4];
+   float dady[1 + PIPE_MAX_SHADER_INPUTS][4];
 };
 
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to