[Mesa-dev] [PATCH shader-db 2/4] split-to-files.py: fix parsing compute shaders

Kenneth Graunke kenneth at whitecape.org
Thu Jun 30 21:16:04 UTC 2016


On Thursday, June 30, 2016 5:03:24 PM PDT Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
> 
> ---
>  split-to-files.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/split-to-files.py b/split-to-files.py
> index 7e14d89..0e1d729 100755
> --- a/split-to-files.py
> +++ b/split-to-files.py
> @@ -92,6 +92,8 @@ def write_shader_test(filename, shaders):
>              out.write("[tessellation control shader]\n")
>          elif stage == "tess eval" or stage == "tessellation evaluation":
>              out.write("[tessellation evaluation shader]\n")
> +        elif stage == "compute":
> +            out.write("[compute shader]\n")
>          else:
>              assert False, stage
>          out.write(shaders[(stage, num)])
> 

FWIW, I finally landed the MESA_SHADER_CAPTURE_PATH patch a while back,
which means you can just do:

    $ mkdir /tmp/mesa
    $ MESA_SHADER_CAPTURE_PATH=/tmp/mesa ./application

and it'll dump .shader_test files for you.

I'd be in favor of deleting split-to-files.py, personally, but if it's
still useful to you, feel free to land these two patches.
-------------- 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/20160630/463ce57e/attachment.sig>


More information about the mesa-dev mailing list