[Mesa-dev] [PATCH 2/7] i965: Move program cache printing to brw_program_cache.c.

Kenneth Graunke kenneth at whitecape.org
Tue Jan 17 08:52:16 UTC 2017


On Tuesday, January 17, 2017 8:43:28 AM PST Eduardo Lima Mitev wrote:
> If there is no plan to use brw_print_program_cache elsewhere, I would
> rather keep it a static method where it is used. In general, I prefer
> not polluting header files. Not a big deal anyway; feel free to ignore
> the comment.
> 
> Reviewed-by: Eduardo Lima Mitev <elima at igalia.com>

I would've been happy to leave it there, but it uses the brw_cache_item
structure.  So unless we move it, we can't do patch 4, and the struct
will remain exposed to the entire driver.

I'd much rather export a print function and gain the encapsulation of
having the data structures be local to the program cache code.

Thanks for reviewing!

--Ken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170117/16e88431/attachment.sig>


More information about the mesa-dev mailing list