[Mesa-dev] [v2] i965/blorp: State emission optimizations

Kenneth Graunke kenneth at whitecape.org
Fri Apr 22 18:43:21 UTC 2016


On Friday, April 22, 2016 9:05:22 PM PDT Topi Pohjolainen wrote:
> Ken came up with an idea to introduce new state flag for blorp and
> to use it instead of trashing all the other bits. This series
> introduces the flag and makes every atom to track it by default.
> Finally blorp is made to track base state address and urb setup
> allowing one to skip unnecessary re-emissions.
> 
> Kenneth Graunke (1):
>   i965: Make all atoms to track BRW_NEW_BLORP by default
> 
> Topi Pohjolainen (6):
>   i965: Remove pointers to non-existing atoms
>   i965/blorp/gen6: Use normal base state address setup
>   i965: Introduce state flag for blorp
>   i965/blorp: Use BRW_NEW_BLORP instead of trashing all state bits
>   i965/blorp: Reconfigure base state address only if needed
>   i965/blorp: Do not tricker re-emission of base state address

A few other atoms that could drop BRW_NEW_BLORP safely:

- brw_polygon_stipple
- brw_polygon_stipple_offset
- brw_line_stipple
- brw_aa_line_parameters

(these generate huge packets...)

- gen6_clip_vp
- gen6_sf_vp
- gen7_sf_clip_viewport
- gen8_sf_clip_viewport

- gen6_scissor_state

- gen7_push_constant_space - probably?

I think we might also be able to drop it on brw_*_pull_constants and
brw_*_surfaces.  But I haven't looked closely enough to tell for sure.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160422/22bd7dc4/attachment-0001.sig>


More information about the mesa-dev mailing list