i965: GC the last two arguments to brw_cache_data.
authorEric Anholt <eric@anholt.net>
Thu, 10 Jun 2010 00:19:40 +0000 (17:19 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 11 Jun 2010 07:16:15 +0000 (00:16 -0700)
Now that the binding table is streamed indirect state, they were
always NULL/0.

src/mesa/drivers/dri/i965/brw_cc.c
src/mesa/drivers/dri/i965/brw_sf_state.c
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_cache.c
src/mesa/drivers/dri/i965/brw_wm_sampler_state.c
src/mesa/drivers/dri/i965/gen6_scissor_state.c
src/mesa/drivers/dri/i965/gen6_viewport_state.c

index 6d9c039c0c0d79e33894efe456770cb8d8b729b2..2b5efdd336bd6b11c392b54e52fd5174cd9482cd 100644 (file)
@@ -55,8 +55,7 @@ brw_update_cc_vp(struct brw_context *brw)
    }
 
    drm_intel_bo_unreference(brw->cc.vp_bo);
-   brw->cc.vp_bo = brw_cache_data(&brw->cache, BRW_CC_VP, &ccv, sizeof(ccv),
-                                 NULL, 0);
+   brw->cc.vp_bo = brw_cache_data(&brw->cache, BRW_CC_VP, &ccv, sizeof(ccv));
 }
 
 struct brw_cc_unit_key {
index a95acb4cf82386eb95e118418687ba726814be4a..e290ca92f60fc488a46d300f91d4adecd8b28410 100644 (file)
@@ -105,8 +105,7 @@ static void upload_sf_vp(struct brw_context *brw)
    }
 
    drm_intel_bo_unreference(brw->sf.vp_bo);
-   brw->sf.vp_bo = brw_cache_data(&brw->cache, BRW_SF_VP, &sfv, sizeof(sfv),
-                                 NULL, 0);
+   brw->sf.vp_bo = brw_cache_data(&brw->cache, BRW_SF_VP, &sfv, sizeof(sfv));
 }
 
 const struct brw_tracked_state brw_sf_vp = {
index 3e2ec3e8454ffb4240f246e137256c89fad5bdf3..3c30d1fed6a2ede8db09b9c7711c482d3c13012c 100644 (file)
@@ -139,9 +139,7 @@ void brw_clear_validated_bos(struct brw_context *brw);
 drm_intel_bo *brw_cache_data(struct brw_cache *cache,
                       enum brw_cache_id cache_id,
                       const void *data,
-                      GLuint size,
-                      drm_intel_bo **reloc_bufs,
-                      GLuint nr_reloc_bufs);
+                      GLuint size);
 
 drm_intel_bo *brw_upload_cache(struct brw_cache *cache,
                               enum brw_cache_id cache_id,
index d8d577d3052ce5136d8f223adc985166bc74d976..b31d84953a1a9639e85b956d0dd360e29768f62c 100644 (file)
@@ -310,9 +310,7 @@ drm_intel_bo *
 brw_cache_data(struct brw_cache *cache,
               enum brw_cache_id cache_id,
               const void *data,
-              GLuint data_size,
-              drm_intel_bo **reloc_bufs,
-              GLuint nr_reloc_bufs)
+              GLuint data_size)
 {
    drm_intel_bo *bo;
    struct brw_cache_item *item, lookup;
@@ -321,8 +319,8 @@ brw_cache_data(struct brw_cache *cache,
    lookup.cache_id = cache_id;
    lookup.key = data;
    lookup.key_size = data_size;
-   lookup.reloc_bufs = reloc_bufs;
-   lookup.nr_reloc_bufs = nr_reloc_bufs;
+   lookup.reloc_bufs = NULL;
+   lookup.nr_reloc_bufs = 0;
    hash = hash_key(&lookup);
    lookup.hash = hash;
 
@@ -335,7 +333,7 @@ brw_cache_data(struct brw_cache *cache,
 
    bo = brw_upload_cache(cache, cache_id,
                         data, data_size,
-                        reloc_bufs, nr_reloc_bufs,
+                        NULL, 0,
                         data, data_size);
 
    return bo;
index 9fbabdc285208174afde84f2577d73c611e3ab38..1fc802cfa657e23d9d3c513c9634241bc911480f 100644 (file)
@@ -74,7 +74,7 @@ static drm_intel_bo *upload_default_color( struct brw_context *brw,
    COPY_4V(sdc.color, color); 
    
    return brw_cache_data(&brw->cache, BRW_SAMPLER_DEFAULT_COLOR,
-                        &sdc, sizeof(sdc), NULL, 0);
+                        &sdc, sizeof(sdc));
 }
 
 
index 2e21e5f733573f4c235ae4c9a130995e772c8516..34a9dc234c26d86bf00c0f091465812a966ae41b 100644 (file)
@@ -63,8 +63,7 @@ prepare_scissor_state(struct brw_context *brw)
 
    drm_intel_bo_unreference(brw->sf.state_bo);
    brw->sf.state_bo = brw_cache_data(&brw->cache, BRW_SF_UNIT,
-                                    &scissor, sizeof(scissor),
-                                    NULL, 0);
+                                    &scissor, sizeof(scissor));
 }
 
 const struct brw_tracked_state gen6_scissor_state = {
index 0c2aa4206c6f5060a4c4c207be08b193d16ac72a..f8ee26bc5edf735585c0d62fe2a66d945d1d28c3 100644 (file)
@@ -51,8 +51,7 @@ prepare_clip_vp(struct brw_context *brw)
 
    drm_intel_bo_unreference(brw->clip.vp_bo);
    brw->clip.vp_bo = brw_cache_data(&brw->cache, BRW_CLIP_VP,
-                                   &vp, sizeof(vp),
-                                   NULL, 0);
+                                   &vp, sizeof(vp));
 }
 
 const struct brw_tracked_state gen6_clip_vp = {
@@ -95,8 +94,7 @@ prepare_sf_vp(struct brw_context *brw)
 
    drm_intel_bo_unreference(brw->sf.vp_bo);
    brw->sf.vp_bo = brw_cache_data(&brw->cache, BRW_SF_VP,
-                                 &sfv, sizeof(sfv),
-                                 NULL, 0);
+                                 &sfv, sizeof(sfv));
 }
 
 const struct brw_tracked_state gen6_sf_vp = {
@@ -125,8 +123,7 @@ prepare_cc_vp(struct brw_context *brw)
    }
 
    drm_intel_bo_unreference(brw->cc.vp_bo);
-   brw->cc.vp_bo = brw_cache_data(&brw->cache, BRW_CC_VP, &ccv, sizeof(ccv),
-                                 NULL, 0);
+   brw->cc.vp_bo = brw_cache_data(&brw->cache, BRW_CC_VP, &ccv, sizeof(ccv));
 }
 
 const struct brw_tracked_state gen6_cc_vp = {