[Mesa-dev] [PATCH v3] i965: Add script to gen code for OA counter queries

Robert Bragg robert at sixbynine.org
Thu Mar 2 21:25:17 UTC 2017


On Mar 2, 2017 7:32 PM, "Emil Velikov" <emil.l.velikov at gmail.com> wrote:

On 2 March 2017 at 18:58, Robert Bragg <robert at sixbynine.org> wrote:
> Adds R/b from Dylan and Makefile fixups from Emil, including fixing race
with
> parallel make builds (thanks). Just holding fast on the use of #pragma
once
> though :-)
>
I think you want the "required=True" for all the fields, but feel free
to do at a later stage.


The header and code args are checked like:

> if args.header:
>        header_file = open(args.header, 'w')
>
> if args.code:
>        c_file = open(args.code, 'w')

and the c() and h() funcs are then be NOOPs when there's no open file to
write to.

I just double checked that's the case and it works as expected to omit
either arg.


As-is
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>


Thanks,
- Robert


-Emil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170302/b99dfc4d/attachment.html>


More information about the mesa-dev mailing list