diff options
author | Eric Anholt <eric@anholt.net> | 2014-05-06 16:37:05 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2014-10-24 23:17:14 -0700 |
commit | 08599f668c5d991ab19376a19cb2e14e5245db95 (patch) | |
tree | d1b915c451aaf4488968275ebfbc4d74d79214c9 /src/mesa/drivers/dri/i965/brw_context.h | |
parent | b0e0c26f0214739108dbf0d6ae9596caf13287ee (diff) |
i965: Skip recalculating URB allocations if the entry size didn't change.
We only get here if the VS/GS compiled programs change, but we can even
skip it if the VS/GS size didn't change.
Affects cairo runtime on glamor by -1.26471% +/- 0.674335% (n=234)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 45d72d2ced4..eb37e750f6d 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -1169,6 +1169,7 @@ struct brw_context */ struct { GLuint vsize; /* vertex size plus header in urb registers */ + GLuint gsize; /* GS output size in urb registers */ GLuint csize; /* constant buffer size in urb registers */ GLuint sfsize; /* setup data size in urb registers */ @@ -1191,10 +1192,10 @@ struct brw_context GLuint cs_start; GLuint size; /* Hardware URB size, in KB. */ - /* gen6: True if the most recently sent _3DSTATE_URB message allocated + /* True if the most recently sent _3DSTATE_URB message allocated * URB space for the GS. */ - bool gen6_gs_previously_active; + bool gs_present; } urb; |