radv/ac: add initial pre-pass for shader info gathering
authorDave Airlie <airlied@redhat.com>
Mon, 17 Apr 2017 03:01:52 +0000 (13:01 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 18 Apr 2017 23:00:42 +0000 (09:00 +1000)
commit224cf2906a8f38ce47411afc93a223ac0e41795f
tree936419d83d631b298a7a1e0fc20069de313d4c36
parent4299849ec7a873edf46a3a366749282fdec020fe
radv/ac: add initial pre-pass for shader info gathering

There is some radv specific info we need to gather from shaders
before we get into converting nir->llvm, so we can make
better decisions especially around user sgpr allocation.

This is just an initial placeholder to gather if sample positions
are required in the frag shader.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/Makefile.sources
src/amd/common/ac_nir_to_llvm.c
src/amd/common/ac_nir_to_llvm.h
src/amd/common/ac_shader_info.c [new file with mode: 0644]
src/amd/common/ac_shader_info.h [new file with mode: 0644]
src/amd/vulkan/radv_cmd_buffer.c