summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/gen7_urb.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-04-02 21:11:50 -0700
committerKenneth Graunke <[email protected]>2013-04-04 15:38:19 -0700
commit8cdb2d32ecd636a6d68840a68504c1fe1b14426b (patch)
tree9877a5c626e3df35c62d09697def4ecc76f18f02 /src/mesa/drivers/dri/i965/gen7_urb.c
parentb99ad7f02c5561b179d59418a64c2756c1d77f16 (diff)
i965: Turn brw->urb.vs_size and gs_size into local variables.
These variables are only used within a single function, so we may as well make them local variables. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen7_urb.c')
-rw-r--r--src/mesa/drivers/dri/i965/gen7_urb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_urb.c b/src/mesa/drivers/dri/i965/gen7_urb.c
index 481497b7129..dafe1add51f 100644
--- a/src/mesa/drivers/dri/i965/gen7_urb.c
+++ b/src/mesa/drivers/dri/i965/gen7_urb.c
@@ -82,9 +82,9 @@ gen7_upload_urb(struct brw_context *brw)
int handle_region_size = (brw->urb.size - 16) * 1024; /* bytes */
/* CACHE_NEW_VS_PROG */
- brw->urb.vs_size = MAX2(brw->vs.prog_data->urb_entry_size, 1);
+ unsigned vs_size = MAX2(brw->vs.prog_data->urb_entry_size, 1);
- int nr_vs_entries = handle_region_size / (brw->urb.vs_size * 64);
+ int nr_vs_entries = handle_region_size / (vs_size * 64);
if (nr_vs_entries > brw->urb.max_vs_entries)
nr_vs_entries = brw->urb.max_vs_entries;
@@ -100,8 +100,7 @@ gen7_upload_urb(struct brw_context *brw)
assert(!brw->gs.prog_active);
gen7_emit_vs_workaround_flush(intel);
- gen7_emit_urb_state(brw, brw->urb.nr_vs_entries, brw->urb.vs_size,
- brw->urb.vs_start);
+ gen7_emit_urb_state(brw, brw->urb.nr_vs_entries, vs_size, brw->urb.vs_start);
}
void