summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-11-06 10:38:19 +0000
committerKeith Whitwell <keithw@vmware.com>2009-11-06 10:38:19 +0000
commitcaf2cf884cb32883e9af07dbe36ca9648bae1821 (patch)
tree013c74f1282859ec0ab9c0055b050df4e5c17a1d /src/gallium/drivers/i965
parent212fb8adbd0e5e28a5d20b0cc03cde46df2831f4 (diff)
i965g: fix some reloc counts
Diffstat (limited to 'src/gallium/drivers/i965')
-rw-r--r--src/gallium/drivers/i965/brw_cc.c2
-rw-r--r--src/gallium/drivers/i965/brw_vs_state.c2
-rw-r--r--src/gallium/drivers/i965/brw_vs_surface_state.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/i965/brw_cc.c b/src/gallium/drivers/i965/brw_cc.c
index 94e2c99c3e..f05728ea5d 100644
--- a/src/gallium/drivers/i965/brw_cc.c
+++ b/src/gallium/drivers/i965/brw_cc.c
@@ -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);
diff --git a/src/gallium/drivers/i965/brw_vs_state.c b/src/gallium/drivers/i965/brw_vs_state.c
index 0b44f39f4d..dadbb622e4 100644
--- a/src/gallium/drivers/i965/brw_vs_state.c
+++ b/src/gallium/drivers/i965/brw_vs_state.c
@@ -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);
diff --git a/src/gallium/drivers/i965/brw_vs_surface_state.c b/src/gallium/drivers/i965/brw_vs_surface_state.c
index aaf2a44f61..177a5170d2 100644
--- a/src/gallium/drivers/i965/brw_vs_surface_state.c
+++ b/src/gallium/drivers/i965/brw_vs_surface_state.c
@@ -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);