i965: Fix typo in 2b224d66a01f3ce867fb05558b25749705bbfe7a
authorEric Anholt <eric@anholt.net>
Tue, 23 Aug 2011 17:51:16 +0000 (10:51 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 23 Aug 2011 18:23:04 +0000 (11:23 -0700)
Unfortunately, since a previous efficiency improvement, we no longer
have any open-source testcases producing register spilling, so this
code was untested in the fragment shader path.  That should change
when we get proper temporary array support in the fragment shader.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40194

src/mesa/drivers/dri/i965/brw_wm.c

index a4524fc78899467923921ef23d61355e5fae0bda..e76832515fe68cc9ac63690b7ffd38b6086424f4 100644 (file)
@@ -246,7 +246,7 @@ bool do_wm_prog(struct brw_context *brw,
    if (c->last_scratch) {
       c->prog_data.total_scratch = brw_get_scratch_size(c->last_scratch);
 
-      brw_get_scratch_bo(intel, &brw->vs.scratch_bo,
+      brw_get_scratch_bo(intel, &brw->wm.scratch_bo,
                         c->prog_data.total_scratch * brw->wm_max_threads);
    }