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

Author: Corbin Simpson <mostawesomed...@gmail.com>
Date:   Mon Jun  1 12:04:29 2009 -0700

r300-gallium: Slightly hacky fix for glxgears-style TCL.

---

 src/gallium/drivers/r300/r300_state_derived.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_state_derived.c 
b/src/gallium/drivers/r300/r300_state_derived.c
index 7ae339c..2477b30 100644
--- a/src/gallium/drivers/r300/r300_state_derived.c
+++ b/src/gallium/drivers/r300/r300_state_derived.c
@@ -163,6 +163,13 @@ static void r300_vs_tab_routes(struct r300_context* r300,
         vinfo->hwfmt[3] |= (4 << (3 * i));
     }
 
+    /* Handle the case where the vertex shader will be generating some of
+     * the attribs based on its inputs. */
+    if (r300screen->caps->has_tcl &&
+            info->num_inputs < info->num_outputs) {
+        vinfo->num_attribs = info->num_inputs;
+    }
+
     draw_compute_vertex_size(vinfo);
 }
 

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

Reply via email to