r300g: eliminate unused constants in FS
[mesa.git] / src / gallium / drivers / r300 / r300_state.c
index ed39c575cef5d4bda21871584643091b2e54fecb..3e35d7ab285c71490998f0b945af596f6d1cd1f5 100644 (file)
@@ -865,6 +865,9 @@ void r300_mark_fs_code_dirty(struct r300_context *r300)
         r300->fs_rc_constant_state.size = fs->shader->rc_state_count * 5;
         r300->fs_constants.size = fs->shader->externals_count * 4 + 1;
     }
+
+    ((struct r300_constant_buffer*)r300->fs_constants.state)->remap_table =
+            fs->shader->code.constants_remap_table;
 }
 
 /* Bind fragment shader state. */