diff options
author | Keith Whitwell <[email protected]> | 2009-11-06 10:19:39 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-11-06 10:19:39 +0000 |
commit | 1d6b5957c6be221feb836bc25686246f67769bce (patch) | |
tree | 28898afbdc8a45ab472d9ade945a11c1ad9af362 /src/gallium/drivers/i965/brw_urb.c | |
parent | 5d7c0cf563b65aeb83f3d2f2ec709a96cf0fbae2 (diff) |
i965g: add DEBUG_MIN_URB flag
Diffstat (limited to 'src/gallium/drivers/i965/brw_urb.c')
-rw-r--r-- | src/gallium/drivers/i965/brw_urb.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965/brw_urb.c b/src/gallium/drivers/i965/brw_urb.c index 57fd8f20b20..907ec56c6ca 100644 --- a/src/gallium/drivers/i965/brw_urb.c +++ b/src/gallium/drivers/i965/brw_urb.c @@ -84,7 +84,7 @@ * XXX: Verify min_nr_entries, esp for VS. * XXX: Verify SF min_entry_size. */ -static const struct { +static const struct urb_limits { GLuint min_nr_entries; GLuint preferred_nr_entries; GLuint min_entry_size; @@ -167,6 +167,15 @@ static int recalculate_urb_fence( struct brw_context *brw ) } } + if (BRW_DEBUG & DEBUG_MIN_URB) { + brw->urb.nr_vs_entries = limits[VS].min_nr_entries; + brw->urb.nr_gs_entries = limits[GS].min_nr_entries; + brw->urb.nr_clip_entries = limits[CLP].min_nr_entries; + brw->urb.nr_sf_entries = limits[SF].min_nr_entries; + brw->urb.nr_cs_entries = limits[CS].min_nr_entries; + brw->urb.constrained = 1; + } + if (!check_urb_layout(brw)) { brw->urb.nr_vs_entries = limits[VS].min_nr_entries; brw->urb.nr_gs_entries = limits[GS].min_nr_entries; |