Mesa (gallium-0.1): mesa: note that texcoords are generated by setup routines when pointsprite enabled

Keith Whitwell keithw at kemper.freedesktop.org
Mon Oct 20 12:04:33 UTC 2008


Module: Mesa
Branch: gallium-0.1
Commit: 97e63437dc216c7fdb25220655ecbf26042cfec8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=97e63437dc216c7fdb25220655ecbf26042cfec8

Author: Keith Whitwell <keith at tungstengraphics.com>
Date:   Mon Oct 20 13:03:45 2008 +0100

mesa: note that texcoords are generated by setup routines when pointsprite enabled

---

 src/mesa/main/texenvprogram.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c
index f3bac86..c279956 100644
--- a/src/mesa/main/texenvprogram.c
+++ b/src/mesa/main/texenvprogram.c
@@ -221,6 +221,12 @@ static GLbitfield get_fp_input_mask( GLcontext *ctx )
       /* Fixed function logic */
       GLbitfield varying_inputs = ctx->varying_vp_inputs;
 
+      /* These get generated in the setup routine regardless of the
+       * vertex program:
+       */
+      if (ctx->Point.PointSprite)
+         varying_inputs |= FRAG_BITS_TEX_ANY;
+
       /* First look at what values may be computed by the generated
        * vertex program:
        */
@@ -248,6 +254,12 @@ static GLbitfield get_fp_input_mask( GLcontext *ctx )
       /* calculate from vp->outputs */
       GLbitfield vp_outputs = ctx->VertexProgram._Current->Base.OutputsWritten;
 
+      /* These get generated in the setup routine regardless of the
+       * vertex program:
+       */
+      if (ctx->Point.PointSprite)
+         vp_outputs |= FRAG_BITS_TEX_ANY;
+
       if (vp_outputs & (1 << VERT_RESULT_COL0)) fp_inputs |= FRAG_BIT_COL0;
       if (vp_outputs & (1 << VERT_RESULT_COL1)) fp_inputs |= FRAG_BIT_COL1;
 




More information about the mesa-commit mailing list