Mesa (i965g-restart): i965g: hardwire linear interpolation for now

Keith Whitwell keithw at kemper.freedesktop.org
Fri Nov 6 13:28:44 UTC 2009


Module: Mesa
Branch: i965g-restart
Commit: aab9601a753afd012e16df072e774a32eb1348b9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aab9601a753afd012e16df072e774a32eb1348b9

Author: Keith Whitwell <keithw at vmware.com>
Date:   Fri Nov  6 11:21:08 2009 +0000

i965g: hardwire linear interpolation for now

seems to generate saner code, need to go back and fix perspective
interpolation (and remove the hard-wire) once this is working.

---

 src/gallium/drivers/i965/brw_sf.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/i965/brw_sf.c b/src/gallium/drivers/i965/brw_sf.c
index 24d1015..52fb2cd 100644
--- a/src/gallium/drivers/i965/brw_sf.c
+++ b/src/gallium/drivers/i965/brw_sf.c
@@ -138,8 +138,11 @@ static enum pipe_error upload_sf_prog(struct brw_context *brw)
     * XXX: as long as we're hard-wiring, is eg. position required to
     * be linear?
     */
-   key.linear_attrs = 0;
-   key.persp_attrs = (1 << key.nr_attrs) - 1;
+   //key.linear_attrs = 0;
+   //key.persp_attrs = (1 << key.nr_attrs) - 1;
+
+   key.linear_attrs = (1 << key.nr_attrs) - 1;
+   key.persp_attrs = 0;
 
    /* BRW_NEW_REDUCED_PRIMITIVE */
    switch (brw->reduced_primitive) {




More information about the mesa-commit mailing list