i965g: fix some reloc counts
authorKeith Whitwell <keithw@vmware.com>
Fri, 6 Nov 2009 10:38:19 +0000 (10:38 +0000)
committerKeith Whitwell <keithw@vmware.com>
Fri, 6 Nov 2009 10:38:19 +0000 (10:38 +0000)
src/gallium/drivers/i965/brw_cc.c
src/gallium/drivers/i965/brw_vs_state.c
src/gallium/drivers/i965/brw_vs_surface_state.c

index 94e2c99c3ef6c4ffc34a143fe2a1bc93654171c5..f05728ea5d7bc39d719c282520afed4a0df44444 100644 (file)
@@ -150,7 +150,7 @@ cc_unit_create_from_key(struct brw_context *brw,
    
    ret = brw_upload_cache(&brw->cache, BRW_CC_UNIT,
                           key, sizeof(*key),
-                          reloc, Elements(reloc),
+                          reloc, 1,
                           &cc, sizeof(cc),
                           NULL, NULL,
                           bo_out);
index 0b44f39f4d32c9553c4a47c3967233866ece095b..dadbb622e4d80a97190c48d086366021cae9d988 100644 (file)
@@ -146,7 +146,7 @@ vs_unit_create_from_key(struct brw_context *brw,
 
    ret = brw_upload_cache(&brw->cache, BRW_VS_UNIT,
                           key, sizeof(*key),
-                          reloc, Elements(reloc),
+                          reloc, 1,
                           &vs, sizeof(vs),
                           NULL, NULL,
                           bo_out);
index aaf2a44f61ebc4c2a1597bd12da13a0de3cf509d..177a5170d238904da2bfca3afdbf67ecb42647fa 100644 (file)
@@ -162,7 +162,7 @@ brw_vs_get_binding_table(struct brw_context *brw,
    ret = brw_cache_data( &brw->surface_cache, 
                          BRW_SS_SURF_BIND,
                          NULL, 0,
-                         reloc, Elements(reloc),
+                         reloc, nr_reloc,
                          data, sizeof data,
                          NULL, NULL,
                          bo_out);