summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-10-18 12:04:09 -0500
committerJason Ekstrand <[email protected]>2018-12-16 21:03:02 +0000
commit11dc1307794e811aa8cfa5c9dace713d82db09ec (patch)
tree88595d35198b3a5bc2e3c4e63c07cd68390281c6 /src/amd/vulkan/radv_pipeline.c
parent191a1dce92803a99dae774b47264ff32da7b6689 (diff)
nir: Add a bool to int32 lowering pass
We also enable it in all of the NIR drivers. Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Tested-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_pipeline.c')
-rw-r--r--src/amd/vulkan/radv_pipeline.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 92c35b2e509..3561d17aaba 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -2087,6 +2087,10 @@ void radv_create_shaders(struct radv_pipeline *pipeline,
radv_link_shaders(pipeline, nir);
for (int i = 0; i < MESA_SHADER_STAGES; ++i) {
+ if (nir[i]) {
+ NIR_PASS_V(nir[i], nir_lower_bool_to_int32);
+ }
+
if (radv_can_dump_shader(device, modules[i], false))
nir_print_shader(nir[i], stderr);
}