diff options
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 14552fa272..d97634c1c6 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -573,7 +573,18 @@ struct brw_context /** Offset within curbe_bo of space for next curbe entry */ GLuint curbe_next_offset; + /** + * Copy of the last set of CURBEs uploaded. Frequently we'll end up + * in brw_curbe.c with the same set of constant data to be uploaded, + * so we'd rather not upload new constants in that case (it can cause + * a pipeline bubble since only up to 4 can be pipelined at a time). + */ GLfloat *last_buf; + /** + * Allocation for where to calculate the next set of CURBEs. + * It's a hot enough path that malloc/free of that data matters. + */ + GLfloat *next_buf; GLuint last_bufsz; } curbe; |