i965/vec4: Move c->last_scratch into vec4_visitor.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_vec4.cpp
index 7b367ec036c49ff43f4cebdd4bf7fa298e5818b4..e5db2687aa0bd0817fe0062d97146577cc493ac3 100644 (file)
@@ -1846,9 +1846,9 @@ vec4_visitor::run(gl_clip_plane *clip_planes)
 
    opt_set_dependency_control();
 
-   if (c->last_scratch > 0) {
+   if (last_scratch > 0) {
       prog_data->base.total_scratch =
-         brw_get_scratch_size(c->last_scratch * REG_SIZE);
+         brw_get_scratch_size(last_scratch * REG_SIZE);
    }
 
    /* If any state parameters were appended, then ParameterValues could have